|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deltava.dao.DAO
org.deltava.dao.GetSystemLog
public class GetSystemLog
A Data Access Object to read System Log entries.
| Field Summary |
|---|
| Fields inherited from class org.deltava.dao.DAO |
|---|
_ps, _queryMax, _queryStart, _queryTimeout |
| Constructor Summary | |
|---|---|
GetSystemLog(Connection c)
Initialize the Data Access Object. |
|
| Method Summary | |
|---|---|
List<LogEntry> |
getAll()
Gets all Log Entries from a particular System Log table. |
List<LogEntry> |
getByType(String className)
Gets all Log Entries from a particular logger or package. |
void |
setDateRange(Date sd,
Date ed)
Sets the date range to query. |
void |
setName(String name)
Sets the log name to query. |
void |
setPriority(int p)
Sets the log priority to query. |
| Methods inherited from class org.deltava.dao.DAO |
|---|
commitTransaction, createTimestamp, executeUpdate, expandDate, formatDBName, getNewID, getQueryCount, prepareStatement, prepareStatementWithoutLimits, rollbackTransaction, setManualCommit, setQueryMax, setQueryStart, setQueryTimeout, startTransaction |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GetSystemLog(Connection c)
c - the JDBC connection to use| Method Detail |
|---|
public void setName(String name)
name - the log name
public void setDateRange(Date sd,
Date ed)
sd - the start date/timeed - the end date/timepublic void setPriority(int p)
p - the priority code
public List<LogEntry> getAll()
throws DAOException
DAOException - if a JDBC error occurs
public List<LogEntry> getByType(String className)
throws DAOException
className - the logger class name or portion thereof
DAOException - if a JDBC error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||