public class LogReadDBHandler extends Object implements ReadDBHandler
Constructor and Description |
---|
LogReadDBHandler()
constructor does nothing
|
Modifier and Type | Method and Description |
---|---|
long |
getNumberOfRows(LogManager logMgr,
String fileName)
Return number of records in each table
|
String[][] |
getTableNames(LogManager logMgr)
Return table names for each logger
|
String[][] |
logRecRead(Set tableNames,
LogQuery logQuery,
LogManager logMgr,
boolean sourceData)
LogReader calls this method.
|
String[][] |
logRecRead(String tableName,
LogQuery logQuery,
LogManager logMgr,
boolean sourceData)
LogReader calls this method.
|
public String[][] logRecRead(String tableName, LogQuery logQuery, LogManager logMgr, boolean sourceData) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, SQLException, Exception
logRecRead
in interface ReadDBHandler
tableName
- db table namelogQuery
- is user specified qury chriteria with sorting requirementlogMgr
- the log manager associated with this handlersourceData
- it specifies whether return data should be original
data received by logger (source) or formatted data as in file.IOException
- if it fails to read log records.NoSuchFieldException
- if it fails to retrieve the name of field.IllegalArgumentException
- if query has wrong value.RuntimeException
- if it fails to retrieve log record.SQLException
- if it fails to process sql query.Exception
- if it fails any of operation.public String[][] logRecRead(Set tableNames, LogQuery logQuery, LogManager logMgr, boolean sourceData) throws IOException, NoSuchFieldException, IllegalArgumentException, RuntimeException, SQLException, Exception
logRecRead
in interface ReadDBHandler
tableNames
- db table nameslogQuery
- is user specified qury chriteria with sorting requirementlogMgr
- the log manager associated with this handlersourceData
- it specifies whether return data should be original
data received by logger (source) or formatted data as in file.IOException
- if it fails to read log records.NoSuchFieldException
- if it fails to retrieve the name of field.IllegalArgumentException
- if query has wrong value.RuntimeException
- if it fails to retrieve log record.SQLException
- if it fails to process sql query.Exception
- if it fails any of operation.public String[][] getTableNames(LogManager logMgr)
logMgr
- Log Manager that is maintaing table namespublic long getNumberOfRows(LogManager logMgr, String fileName)
logMgr
- Log Manager that is maintaing table namesCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.