Class PersistencePostgreSQL
java.lang.Object
org.gcube.documentstore.persistence.PersistenceBackend
org.gcube.documentstore.persistence.PersistencePostgreSQL
public class PersistencePostgreSQL
extends org.gcube.documentstore.persistence.PersistenceBackend
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsFields inherited from class org.gcube.documentstore.persistence.PersistenceBackend
aggregationScheduler, fallbackPersistence, fallbackUseCounter, fallbackUseStartTime, forceFallbackUse, MAX_FALLBACK_RETRY, MAX_TIME_TO_FALLBACK, persistenceBackendMonitor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclean()protected voidvoidvoidinsert(org.gcube.documentstore.records.Record record) booleanprotected voidvoidprepareConnection(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration) protected voidreallyAccount(org.gcube.documentstore.records.Record record) Methods inherited from class org.gcube.documentstore.persistence.PersistenceBackend
account, accountValidateAggregate, accountWithFallback, close, flush, flush, getAggregationScheduler, getFallbackPersistence, setAggregationScheduler, setFallback
-
Field Details
-
logger
protected static final org.slf4j.Logger logger -
statementMap
-
-
Constructor Details
-
PersistencePostgreSQL
public PersistencePostgreSQL()
-
-
Method Details
-
prepareConnection
public void prepareConnection(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration) throws Exception - Specified by:
prepareConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
openConnection
- Specified by:
openConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
reallyAccount
- Specified by:
reallyAccountin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
insert
- Throws:
Exception
-
clean
- Specified by:
cleanin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
closeConnection
- Specified by:
closeConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
commitAndClose
- Throws:
Exception
-
isConnectionActive
- Specified by:
isConnectionActivein classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-