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 final org.slf4j.Logger
     
    protected StatementMap
     

    Fields inherited from class org.gcube.documentstore.persistence.PersistenceBackend

    aggregationScheduler, fallbackPersistence, fallbackUseCounter, fallbackUseStartTime, forceFallbackUse, MAX_FALLBACK_RETRY, MAX_TIME_TO_FALLBACK, persistenceBackendMonitor
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    void
     
    void
    insert(org.gcube.documentstore.records.Record record)
     
    boolean
     
    protected void
     
    void
    prepareConnection(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration)
     
    protected void
    reallyAccount(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
    • statementMap

      protected StatementMap statementMap
  • Constructor Details

    • PersistencePostgreSQL

      public PersistencePostgreSQL()
  • Method Details

    • prepareConnection

      public void prepareConnection(org.gcube.documentstore.persistence.PersistenceBackendConfiguration configuration) throws Exception
      Specified by:
      prepareConnection in class org.gcube.documentstore.persistence.PersistenceBackend
      Throws:
      Exception
    • openConnection

      protected void openConnection() throws Exception
      Specified by:
      openConnection in class org.gcube.documentstore.persistence.PersistenceBackend
      Throws:
      Exception
    • reallyAccount

      protected void reallyAccount(org.gcube.documentstore.records.Record record) throws Exception
      Specified by:
      reallyAccount in class org.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:
      clean in class org.gcube.documentstore.persistence.PersistenceBackend
      Throws:
      Exception
    • closeConnection

      protected void closeConnection() throws Exception
      Specified by:
      closeConnection in class org.gcube.documentstore.persistence.PersistenceBackend
      Throws:
      Exception
    • commitAndClose

      public void commitAndClose() throws Exception
      Throws:
      Exception
    • isConnectionActive

      public boolean isConnectionActive() throws Exception
      Specified by:
      isConnectionActive in class org.gcube.documentstore.persistence.PersistenceBackend
      Throws:
      Exception