Class StatementMap

java.lang.Object
org.gcube.documentstore.persistence.StatementMap

public class StatementMap extends Object
  • Constructor Details

    • StatementMap

      public StatementMap(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration)
  • Method Details

    • createSchema

      public void createSchema() throws Exception
      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

      public Statement getStatement(org.gcube.documentstore.records.Record record) throws Exception
      Throws:
      Exception
    • close

      public void close() throws Exception
      Throws:
      Exception