public class Persister extends DbPersister
This class is a stub class for the main DB persister. To implement the main DB persister, override this class, override and implement all desired methods (no need to invoke the corresponding methods in this class since they are all no-op methods) and bind DbPersister to your concrete implementation so Guice instantiates your class instead of this one.
DbPersister.RetentionPolicy_identityInfoProvider, _influxDbName, _influxEnabled, _influxMpstatsInjectFreq, _influxPassword, _influxUrl, _influxUsername, _rdbmsConnection, _rdbmsCreateIndexes, _rdbmsCreateTables, _rdbmsDriver, _rdbmsEnabled, _rdbmsNumReaderThreads, _rdbmsPassword, _rdbmsReconnectAttemptDuration, _rdbmsReconnectFrequency, _rdbmsUrl, _rdbmsUsername, _tableNames, MAX_DATE, MIN_DATE, TECHSTATS_RP, TECHSTATS_RP_DURATION| Modifier and Type | Method and Description |
|---|---|
protected void |
doClose()
Method invoked to close the concrete persister
This method is called just before the database connection is closed.
|
protected void |
doDelete(com.eaio.uuid.UUID id)
Delete an object from the database
|
protected void |
doOpen()
Method invoked to open the concrete persister
This method is called after the database connection is opened.
|
protected void |
doUpdate(Object object)
Add or update an object in the database
|
void |
read(com.eaio.uuid.UUID parentId,
IDbReaderCallback cb)
Read all objects from the database
|
close, commit, delete, doGetAdditionalRetentionPolicies, getAgentName, getAppName, getAppPartition, getInlfuxMpstatsInjectFrequency, getRDBMSConnection, getServerName, getTableNames, indexExists, isValidDate, open, sequenceExists, tableExists, tracePrefix, tracer, update@Inject public Persister(IDbTracer dbTracer)
protected void doOpen()
throws Exception
DbPersisterThis method is called after the database connection is opened.
doOpen in class DbPersisterExceptionpublic void read(com.eaio.uuid.UUID parentId,
IDbReaderCallback cb)
throws Exception
DbPersisterread in class DbPersisterparentId - The id of the parent of the root object in the databaseExceptionprotected void doUpdate(Object object) throws Exception
DbPersisterdoUpdate in class DbPersisterExceptionprotected void doDelete(com.eaio.uuid.UUID id)
throws Exception
DbPersisterdoDelete in class DbPersisterExceptionprotected void doClose()
DbPersisterThis method is called just before the database connection is closed.
doClose in class DbPersisterCopyright © 2016 Neeve Research, LLC. All Rights Reserved.