Class PostgresStorageDelegate

  • All Implemented Interfaces:
    PostgresQueries, io.vlingo.symbio.store.state.StateStore.StorageDelegate

    public class PostgresStorageDelegate
    extends JDBCStorageDelegate<java.lang.Object>
    implements io.vlingo.symbio.store.state.StateStore.StorageDelegate, PostgresQueries
    • Constructor Detail

      • PostgresStorageDelegate

        public PostgresStorageDelegate​(Configuration configuration,
                                       io.vlingo.actors.Logger logger)
    • Method Detail

      • copy

        public io.vlingo.symbio.store.state.StateStore.StorageDelegate copy()
        Specified by:
        copy in interface io.vlingo.symbio.store.state.StateStore.StorageDelegate
      • entryReaderAdvice

        public io.vlingo.symbio.store.EntryReader.Advice entryReaderAdvice()
        Specified by:
        entryReaderAdvice in interface io.vlingo.symbio.store.state.StateStore.StorageDelegate
      • binaryDataFrom

        protected byte[] binaryDataFrom​(java.sql.ResultSet resultSet,
                                        int columnIndex)
                                 throws java.lang.Exception
        Specified by:
        binaryDataFrom in class JDBCStorageDelegate<java.lang.Object>
        Throws:
        java.lang.Exception
      • binaryDataTypeObject

        protected <D> D binaryDataTypeObject()
                                      throws java.lang.Exception
        Specified by:
        binaryDataTypeObject in class JDBCStorageDelegate<java.lang.Object>
        Throws:
        java.lang.Exception
      • readExpression

        protected java.lang.String readExpression​(java.lang.String storeName,
                                                  java.lang.String id)
        Specified by:
        readExpression in class JDBCStorageDelegate<java.lang.Object>
      • setBinaryObject

        protected <E> void setBinaryObject​(CachedStatement<java.lang.Object> cached,
                                           int columnIndex,
                                           io.vlingo.symbio.Entry<E> entry)
                                    throws java.lang.Exception
        Specified by:
        setBinaryObject in class JDBCStorageDelegate<java.lang.Object>
        Throws:
        java.lang.Exception
      • setBinaryObject

        protected <S> void setBinaryObject​(CachedStatement<java.lang.Object> cached,
                                           int columnIndex,
                                           io.vlingo.symbio.State<S> state)
                                    throws java.lang.Exception
        Specified by:
        setBinaryObject in class JDBCStorageDelegate<java.lang.Object>
        Throws:
        java.lang.Exception
      • setTextObject

        protected <E> void setTextObject​(CachedStatement<java.lang.Object> cached,
                                         int columnIndex,
                                         io.vlingo.symbio.Entry<E> entry)
                                  throws java.lang.Exception
        Specified by:
        setTextObject in class JDBCStorageDelegate<java.lang.Object>
        Throws:
        java.lang.Exception
      • setTextObject

        protected <S> void setTextObject​(CachedStatement<java.lang.Object> cached,
                                         int columnIndex,
                                         io.vlingo.symbio.State<S> state)
                                  throws java.lang.Exception
        Specified by:
        setTextObject in class JDBCStorageDelegate<java.lang.Object>
        Throws:
        java.lang.Exception
      • tableNameFor

        protected java.lang.String tableNameFor​(java.lang.String storeName)
        Specified by:
        tableNameFor in class JDBCStorageDelegate<java.lang.Object>
      • textDataFrom

        protected java.lang.String textDataFrom​(java.sql.ResultSet resultSet,
                                                int columnIndex)
                                         throws java.lang.Exception
        Specified by:
        textDataFrom in class JDBCStorageDelegate<java.lang.Object>
        Throws:
        java.lang.Exception
      • writeExpression

        protected java.lang.String writeExpression​(java.lang.String storeName)
        Specified by:
        writeExpression in class JDBCStorageDelegate<java.lang.Object>