public abstract class AbstractJdbcStorageDao extends BaseStorageDao
accessor| Constructor and Description |
|---|
AbstractJdbcStorageDao(DataSourceFactory dataSourceFactory,
java.util.Properties properties,
boolean usePool,
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupArchive() |
protected int |
cleanupArchive(int days)
Cleanup the archive
|
protected java.lang.String |
getDeleteAttributesSql() |
protected java.lang.String |
getInsertAttributesSql() |
protected java.lang.String |
intern(java.lang.String string) |
Event |
loadEvent(java.util.UUID id) |
protected void |
logSQLError(java.sql.SQLException e) |
protected void |
performStoreEvent(Event event,
ConnectionContext connectionContext) |
java.sql.ResultSet |
queryEvents(Filter filter)
Get an open result result for a filter
|
void |
storeEvent(Event event) |
protected void |
storeReplicationEvent(Event event,
java.sql.Connection con) |
boolean |
toEventList(java.sql.ResultSet rs,
java.util.Collection<Event> events,
boolean isBeforeFirst,
long count) |
clip, closeConnection, closeStatement, createConnection, dispose, getAccessor, getCleanupDays, getInstance, getMaxLength, getSchema, setInstance, setMaxLength, setSchema, updateCommentpublic AbstractJdbcStorageDao(DataSourceFactory dataSourceFactory,
java.util.Properties properties,
boolean usePool,
stringInterner)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void storeEvent(Event event) throws java.lang.Exception
java.lang.Exceptionprotected void storeReplicationEvent(Event event, java.sql.Connection con) throws java.lang.Exception
java.lang.Exceptionprotected void logSQLError(java.sql.SQLException e)
public Event loadEvent(java.util.UUID id) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.sql.ResultSet queryEvents(Filter filter)
throws java.sql.SQLException,
NotSupportedException
The caller has to close the result set and the connection
java.sql.SQLExceptionNotSupportedExceptionpublic boolean toEventList(java.sql.ResultSet rs,
java.util.Collection<Event> events,
boolean isBeforeFirst,
long count)
throws java.sql.SQLException
java.sql.SQLExceptionprotected java.lang.String intern(java.lang.String string)
protected java.lang.String getDeleteAttributesSql()
getDeleteAttributesSql in class BaseStorageDaoprotected java.lang.String getInsertAttributesSql()
getInsertAttributesSql in class BaseStorageDaopublic void cleanupArchive()
protected int cleanupArchive(int days)
throws java.lang.Exception
days - days in the past that should remain in the archivedayswas negative or zero.
java.lang.Exceptionprotected void performStoreEvent(Event event, ConnectionContext connectionContext) throws java.sql.SQLException, java.lang.Exception
java.sql.SQLExceptionjava.lang.Exception
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0