Class DBAppenderBase<E>

    • Field Detail

      • cnxSupportsGetGeneratedKeys

        protected boolean cnxSupportsGetGeneratedKeys
      • cnxSupportsBatchUpdates

        protected boolean cnxSupportsBatchUpdates
    • Constructor Detail

      • DBAppenderBase

        public DBAppenderBase()
    • Method Detail

      • getGeneratedKeysMethod

        protected abstract java.lang.reflect.Method getGeneratedKeysMethod()
      • getInsertSQL

        protected abstract java.lang.String getInsertSQL()
      • getConnectionSource

        public ConnectionSource getConnectionSource()
        Returns:
        Returns the connectionSource.
      • setConnectionSource

        public void setConnectionSource​(ConnectionSource connectionSource)
        Parameters:
        connectionSource - The connectionSource to set.
      • subAppend

        protected abstract void subAppend​(E eventObject,
                                          java.sql.Connection connection,
                                          java.sql.PreparedStatement statement)
                                   throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • secondarySubAppend

        protected abstract void secondarySubAppend​(E eventObject,
                                                   java.sql.Connection connection,
                                                   long eventId)
                                            throws java.lang.Throwable
        Throws:
        java.lang.Throwable
      • selectEventId

        protected long selectEventId​(java.sql.PreparedStatement insertStatement,
                                     java.sql.Connection connection)
                              throws java.sql.SQLException,
                                     java.lang.reflect.InvocationTargetException
        Throws:
        java.sql.SQLException
        java.lang.reflect.InvocationTargetException