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 String
FIELD_CHANGE_KEY
static String
FIELD_CHANGE_VALUE_NEW
static String
FIELD_CHANGE_VALUE_OLD
static String
FIELD_LOG_ENTRY_ACTION
static String
FIELD_LOG_ENTRY_TYPE
static String
FIELD_LOG_ID
static String
FIELD_LOG_NOTES
static String
FIELD_LOG_TEXT
static String
PROC_REMOVE_LOGS
static String
PROC_REMOVE_LOGS_CHANGES
static String
PROC_SAVE_LOGS
static String
PROC_SAVE_LOGS_CHANGES
static String
VIEW_LOGS_CHANGES
-
Constructor Summary
Constructors Constructor Description HSqlDbLogHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DbLog
buildLog(ResultSet result)
protected DbLogChange
buildLogChange(ResultSet result)
void
loadChanges(Connection c, DbLog[] logs)
void
removeLogs(Connection c, long[] ids)
void
saveLog(Connection c, DbLog log)
protected void
saveLogAdditionally(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:
loadChanges
in interfaceDbLogHandler
- Specified by:
loadChanges
in classDbLogHandlerImpl
- Throws:
SQLException
-
removeLogs
public void removeLogs(Connection c, long[] ids) throws SQLException
- Specified by:
removeLogs
in interfaceDbLogHandler
- Specified by:
removeLogs
in classDbLogHandlerImpl
- Throws:
SQLException
-
saveLog
public void saveLog(Connection c, DbLog log) throws SQLException
- Specified by:
saveLog
in interfaceDbLogHandler
- Specified by:
saveLog
in classDbLogHandlerImpl
- Throws:
SQLException
-
saveLogAdditionally
protected void saveLogAdditionally(Connection c, DbLog log, long logId, List<Statement> statements) throws SQLException
- Throws:
SQLException
-
-