Class MigrateStore

  • All Implemented Interfaces:
    edu.uiuc.ncsa.security.core.Store<MigrationEntry>, Map<edu.uiuc.ncsa.security.core.Identifier,​MigrationEntry>

    public class MigrateStore
    extends edu.uiuc.ncsa.security.storage.sql.SQLStore<MigrationEntry>

    Created by Jeff Gaynor
    on 2/25/24 at 7:44 AM

    • Field Summary

      • Fields inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore

        converter, identifiableProvider
      • Fields inherited from interface edu.uiuc.ncsa.security.core.Store

        VERSION_TAG
    • Constructor Summary

      Constructors 
      Constructor Description
      MigrateStore​(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool, edu.uiuc.ncsa.security.storage.sql.internals.Table table, javax.inject.Provider identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter converter)  
    • Constructor Detail

      • MigrateStore

        public MigrateStore​(edu.uiuc.ncsa.security.storage.sql.ConnectionPool connectionPool,
                            edu.uiuc.ncsa.security.storage.sql.internals.Table table,
                            javax.inject.Provider identifiableProvider,
                            edu.uiuc.ncsa.security.storage.data.MapConverter converter)
    • Method Detail

      • getCreationTSField

        public String getCreationTSField()
        Specified by:
        getCreationTSField in class edu.uiuc.ncsa.security.storage.sql.SQLStore<MigrationEntry>
      • getFetchStatement

        protected String getFetchStatement​(int batchSize)
        Gets the first batchSize undone elements for this migration.
        Parameters:
        batchSize -
        Returns:
      • countFetchStatement

        protected String countFetchStatement()
        Counts the number of entries for the given component in the database.
        Returns:
      • getIngestStatement

        protected String getIngestStatement()
        The statement that is used to ingest the source store.
        Returns:
      • getUpdateStatement

        protected String getUpdateStatement()
        Migration store entry after import. This reports the result of trying to import the item to the store.
        Returns:
      • getConnectionPool

        public edu.uiuc.ncsa.security.storage.sql.derby.DerbyConnectionPool getConnectionPool()
        Overrides:
        getConnectionPool in class edu.uiuc.ncsa.security.storage.sql.SQLDatabase
      • exists

        public boolean exists()
        Does this store exist?
        Returns: