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 DbLog
createLog()
DbLog
getLog(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)
void
loadChanges(Connection c, DbLog log)
abstract void
loadChanges(Connection c, DbLog[] logs)
void
removeLog(Connection c, long id)
abstract void
removeLogs(Connection c, long[] ids)
abstract void
saveLog(Connection c, DbLog log)
-
-
-
Method Detail
-
createLog
protected abstract DbLog createLog()
-
getLog
public final DbLog getLog(Connection c, long id) throws SQLException
- Specified by:
getLog
in interfaceDbLogHandler
- Throws:
SQLException
-
getLogs
public abstract DbLog[] getLogs(Connection c, long[] ids) throws SQLException
- Specified by:
getLogs
in interfaceDbLogHandler
- Throws:
SQLException
-
getLogs
public final DbLog[] getLogs(Connection c, long entryId, String entryAction) throws SQLException
- Specified by:
getLogs
in interfaceDbLogHandler
- Throws:
SQLException
-
getLogs
public abstract DbLog[] getLogs(Connection c, long[] entryIds, String entryAction) throws SQLException
- Specified by:
getLogs
in interfaceDbLogHandler
- Throws:
SQLException
-
getLogIds
public final long[] getLogIds(Connection c) throws SQLException
- Specified by:
getLogIds
in interfaceDbLogHandler
- Throws:
SQLException
-
getLogIds
public final long[] getLogIds(Connection c, long entryId, String entryAction) throws SQLException
- Specified by:
getLogIds
in interfaceDbLogHandler
- Throws:
SQLException
-
getLogIds
public abstract long[] getLogIds(Connection c, long[] entryIds, String entryAction) throws SQLException
- Specified by:
getLogIds
in interfaceDbLogHandler
- Throws:
SQLException
-
loadChanges
public final void loadChanges(Connection c, DbLog log) throws SQLException
- Specified by:
loadChanges
in interfaceDbLogHandler
- Throws:
SQLException
-
loadChanges
public abstract void loadChanges(Connection c, DbLog[] logs) throws SQLException
- Specified by:
loadChanges
in interfaceDbLogHandler
- Throws:
SQLException
-
removeLog
public final void removeLog(Connection c, long id) throws SQLException
- Specified by:
removeLog
in interfaceDbLogHandler
- Throws:
SQLException
-
removeLogs
public abstract void removeLogs(Connection c, long[] ids) throws SQLException
- Specified by:
removeLogs
in interfaceDbLogHandler
- Throws:
SQLException
-
saveLog
public abstract void saveLog(Connection c, DbLog log) throws SQLException
- Specified by:
saveLog
in interfaceDbLogHandler
- Throws:
SQLException
-
-