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
Fields Modifier and Type Field Description protected static org.slf4j.Loggerloggerprotected StatementMapstatementMap
-
Constructor Summary
Constructors Constructor Description PersistencePostgreSQL()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclean()protected voidcloseConnection()voidcommitAndClose()voidinsert(org.gcube.documentstore.records.Record record)booleanisConnectionActive()protected voidopenConnection()voidprepareConnection(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration)protected voidreallyAccount(org.gcube.documentstore.records.Record record)
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
statementMap
protected StatementMap statementMap
-
-
Method Detail
-
prepareConnection
public void prepareConnection(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration) throws Exception- Specified by:
prepareConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
openConnection
protected void openConnection() throws Exception- Specified by:
openConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
reallyAccount
protected void reallyAccount(org.gcube.documentstore.records.Record record) throws Exception- Specified by:
reallyAccountin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
insert
public void insert(org.gcube.documentstore.records.Record record) throws Exception- Throws:
Exception
-
clean
protected void clean() throws Exception- Specified by:
cleanin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
closeConnection
protected void closeConnection() throws Exception- Specified by:
closeConnectionin classorg.gcube.documentstore.persistence.PersistenceBackend- Throws:
Exception
-
-