Class AbstractDatasourceSink

    • Constructor Detail

      • AbstractDatasourceSink

        public AbstractDatasourceSink​(GatewayContext context,
                                      java.lang.String dataSource)
    • Method Detail

      • setDatasourceName

        public void setDatasourceName​(java.lang.String dataSource)
      • getDatasourceName

        public java.lang.String getDatasourceName()
      • getDatasource

        protected Datasource getDatasource()
      • useBatching

        protected boolean useBatching()
      • useGeneratedKeys

        protected boolean useGeneratedKeys()
      • getQueryCache

        protected QueryCache getQueryCache()
      • getDescriptionKey

        protected abstract java.lang.String getDescriptionKey()
      • getInfo

        public java.util.List<DataSinkInformation> getInfo()
        Description copied from interface: DataSink
        Gets the information for this sink, as well as any below it.
      • storeData

        public void storeData​(HistoricalData data)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • storeToDatasource

        protected void storeToDatasource​(Datasource ds,
                                         HistoricalData data)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • storeDataToDatasource

        protected abstract void storeDataToDatasource​(SRConnection conn,
                                                      HistoricalData data)
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • runFirstTimeChecks

        protected void runFirstTimeChecks​(SRConnection conn)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception