Class HSqlDbLogHandler
- java.lang.Object
-
- com.openindex.openestate.tool.db.DbLogHandlerImpl
-
- com.openindex.openestate.tool.db.hsql.HSqlDbLogHandler
-
- All Implemented Interfaces:
DbLogHandler
- Direct Known Subclasses:
HSqlDbAgencyObjectLogsHandler,HSqlDbCalendarEntryLogHandler,HSqlDbContactsEntryLogHandler
public abstract class HSqlDbLogHandler extends DbLogHandlerImpl
HSqlDbLogHandler.- Author:
- Andreas Rudolph
-
-
Field Summary
Fields Modifier and Type Field Description static StringFIELD_CHANGE_KEYstatic StringFIELD_CHANGE_VALUE_NEWstatic StringFIELD_CHANGE_VALUE_OLDstatic StringFIELD_LOG_ENTRY_ACTIONstatic StringFIELD_LOG_ENTRY_TYPEstatic StringFIELD_LOG_IDstatic StringFIELD_LOG_NOTESstatic StringFIELD_LOG_TEXTstatic StringPROC_REMOVE_LOGSstatic StringPROC_REMOVE_LOGS_CHANGESstatic StringPROC_SAVE_LOGSstatic StringPROC_SAVE_LOGS_CHANGESstatic StringVIEW_LOGS_CHANGES
-
Constructor Summary
Constructors Constructor Description HSqlDbLogHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DbLogbuildLog(ResultSet result)protected DbLogChangebuildLogChange(ResultSet result)voidloadChanges(Connection c, DbLog[] logs)voidremoveLogs(Connection c, long[] ids)voidsaveLog(Connection c, DbLog log)protected voidsaveLogAdditionally(Connection c, DbLog log, long logId, List<Statement> statements)
-
-
-
Field Detail
-
PROC_REMOVE_LOGS
public static final String PROC_REMOVE_LOGS
- See Also:
- Constant Field Values
-
PROC_REMOVE_LOGS_CHANGES
public static final String PROC_REMOVE_LOGS_CHANGES
- See Also:
- Constant Field Values
-
PROC_SAVE_LOGS
public static final String PROC_SAVE_LOGS
- See Also:
- Constant Field Values
-
PROC_SAVE_LOGS_CHANGES
public static final String PROC_SAVE_LOGS_CHANGES
- See Also:
- Constant Field Values
-
VIEW_LOGS_CHANGES
public static final String VIEW_LOGS_CHANGES
- See Also:
- Constant Field Values
-
FIELD_LOG_ID
public static final String FIELD_LOG_ID
- See Also:
- Constant Field Values
-
FIELD_LOG_ENTRY_TYPE
public static final String FIELD_LOG_ENTRY_TYPE
- See Also:
- Constant Field Values
-
FIELD_LOG_ENTRY_ACTION
public static final String FIELD_LOG_ENTRY_ACTION
- See Also:
- Constant Field Values
-
FIELD_LOG_TEXT
public static final String FIELD_LOG_TEXT
- See Also:
- Constant Field Values
-
FIELD_LOG_NOTES
public static final String FIELD_LOG_NOTES
- See Also:
- Constant Field Values
-
FIELD_CHANGE_KEY
public static final String FIELD_CHANGE_KEY
- See Also:
- Constant Field Values
-
FIELD_CHANGE_VALUE_OLD
public static final String FIELD_CHANGE_VALUE_OLD
- See Also:
- Constant Field Values
-
FIELD_CHANGE_VALUE_NEW
public static final String FIELD_CHANGE_VALUE_NEW
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildLog
protected DbLog buildLog(ResultSet result) throws SQLException
- Throws:
SQLException
-
buildLogChange
protected DbLogChange buildLogChange(ResultSet result) throws SQLException
- Throws:
SQLException
-
loadChanges
public void loadChanges(Connection c, DbLog[] logs) throws SQLException
- Specified by:
loadChangesin interfaceDbLogHandler- Specified by:
loadChangesin classDbLogHandlerImpl- Throws:
SQLException
-
removeLogs
public void removeLogs(Connection c, long[] ids) throws SQLException
- Specified by:
removeLogsin interfaceDbLogHandler- Specified by:
removeLogsin classDbLogHandlerImpl- Throws:
SQLException
-
saveLog
public void saveLog(Connection c, DbLog log) throws SQLException
- Specified by:
saveLogin interfaceDbLogHandler- Specified by:
saveLogin classDbLogHandlerImpl- Throws:
SQLException
-
saveLogAdditionally
protected void saveLogAdditionally(Connection c, DbLog log, long logId, List<Statement> statements) throws SQLException
- Throws:
SQLException
-
-