Class MigrateStore
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
- edu.uiuc.ncsa.security.storage.sql.SQLStore<MigrationEntry>
-
- org.oa4mp.server.admin.oauth2.tools.migrate.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
-
-
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcountFetchStatement()Counts the number of entries for the given component in the database.booleanexists()Does this store exist?edu.uiuc.ncsa.security.storage.sql.derby.DerbyConnectionPoolgetConnectionPool()StringgetCreationTSField()protected StringgetFetchStatement(int batchSize)Gets the first batchSize undone elements for this migration.protected StringgetIngestStatement()The statement that is used to ingest the source store.protected MigrateKeysgetKeys()protected StringgetUpdateStatement()Migration store entry after import.intresetImportCodes(String component)-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLStore
checkColumns, checkTable, clear, containsKey, containsValue, crappySQLParser, crappySQLParser, create, depopulate, doRegisterStatement, entrySet, get, getAll, getDerbyMostRecent, getMapConverter, getMostRecent, getMostRecentStatement, getTable, getXMLConverter, isEmpty, keySet, populate, put, putAll, register, remove, remove, removeByID, save, search, search, search, search, setUpdateValues, size, size, size, toString, update, update, update, values
-
Methods inherited from class edu.uiuc.ncsa.security.storage.sql.SQLDatabase
destroyConnection, getConnection, releaseConnection, rsToMap, setConnectionPool
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getKeys
protected MigrateKeys getKeys()
-
getCreationTSField
public String getCreationTSField()
- Specified by:
getCreationTSFieldin classedu.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:
getConnectionPoolin classedu.uiuc.ncsa.security.storage.sql.SQLDatabase
-
exists
public boolean exists()
Does this store exist?- Returns:
-
resetImportCodes
public int resetImportCodes(String component) throws SQLException
- Throws:
SQLException
-
-