Package com.openindex.openestate.tool.db
Class DbLogHandlerImpl
- java.lang.Object
-
- com.openindex.openestate.tool.db.DbLogHandlerImpl
-
- All Implemented Interfaces:
DbLogHandler
- Direct Known Subclasses:
HSqlDbLogHandler
public abstract class DbLogHandlerImpl extends Object implements DbLogHandler
DbLogHandlerImpl.- Author:
- Andreas Rudolph
-
-
Constructor Summary
Constructors Constructor Description DbLogHandlerImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract DbLogcreateLog()DbLoggetLog(Connection c, long id)long[]getLogIds(Connection c)abstract long[]getLogIds(Connection c, long[] entryIds, String entryAction)long[]getLogIds(Connection c, long entryId, String entryAction)abstract DbLog[]getLogs(Connection c, long[] ids)abstract DbLog[]getLogs(Connection c, long[] entryIds, String entryAction)DbLog[]getLogs(Connection c, long entryId, String entryAction)voidloadChanges(Connection c, DbLog log)abstract voidloadChanges(Connection c, DbLog[] logs)voidremoveLog(Connection c, long id)abstract voidremoveLogs(Connection c, long[] ids)abstract voidsaveLog(Connection c, DbLog log)
-
-
-
Method Detail
-
createLog
protected abstract DbLog createLog()
-
getLog
public final DbLog getLog(Connection c, long id) throws SQLException
- Specified by:
getLogin interfaceDbLogHandler- Throws:
SQLException
-
getLogs
public abstract DbLog[] getLogs(Connection c, long[] ids) throws SQLException
- Specified by:
getLogsin interfaceDbLogHandler- Throws:
SQLException
-
getLogs
public final DbLog[] getLogs(Connection c, long entryId, String entryAction) throws SQLException
- Specified by:
getLogsin interfaceDbLogHandler- Throws:
SQLException
-
getLogs
public abstract DbLog[] getLogs(Connection c, long[] entryIds, String entryAction) throws SQLException
- Specified by:
getLogsin interfaceDbLogHandler- Throws:
SQLException
-
getLogIds
public final long[] getLogIds(Connection c) throws SQLException
- Specified by:
getLogIdsin interfaceDbLogHandler- Throws:
SQLException
-
getLogIds
public final long[] getLogIds(Connection c, long entryId, String entryAction) throws SQLException
- Specified by:
getLogIdsin interfaceDbLogHandler- Throws:
SQLException
-
getLogIds
public abstract long[] getLogIds(Connection c, long[] entryIds, String entryAction) throws SQLException
- Specified by:
getLogIdsin interfaceDbLogHandler- Throws:
SQLException
-
loadChanges
public final void loadChanges(Connection c, DbLog log) throws SQLException
- Specified by:
loadChangesin interfaceDbLogHandler- Throws:
SQLException
-
loadChanges
public abstract void loadChanges(Connection c, DbLog[] logs) throws SQLException
- Specified by:
loadChangesin interfaceDbLogHandler- Throws:
SQLException
-
removeLog
public final void removeLog(Connection c, long id) throws SQLException
- Specified by:
removeLogin interfaceDbLogHandler- Throws:
SQLException
-
removeLogs
public abstract void removeLogs(Connection c, long[] ids) throws SQLException
- Specified by:
removeLogsin interfaceDbLogHandler- Throws:
SQLException
-
saveLog
public abstract void saveLog(Connection c, DbLog log) throws SQLException
- Specified by:
saveLogin interfaceDbLogHandler- Throws:
SQLException
-
-