Class StatementMap
java.lang.Object
org.gcube.documentstore.persistence.StatementMap
-
Constructor Summary
ConstructorsConstructorDescriptionStatementMap(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidCreates what is missing of the schema of the database, before any record is written.protected ConnectiongetConnection(Class<? extends org.gcube.documentstore.records.AggregatedRecord<?, ?>> clz) getStatement(org.gcube.documentstore.records.Record record)
-
Constructor Details
-
StatementMap
public StatementMap(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration)
-
-
Method Details
-
createSchema
Creates what is missing of the schema of the database, before any record is written.- Throws:
Exception- if the database cannot be reached or refuses the schema
-
getConnection
protected Connection getConnection(Class<? extends org.gcube.documentstore.records.AggregatedRecord<?, ?>> clz) throws Exception- Throws:
Exception
-
getStatement
- Throws:
Exception
-
close
- Throws:
Exception
-