public interface IDResolver
All custom implementation classes of this interface should extend the out of box implementation class: IDResolverImpl.
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
boolean | checkId(java.lang.String tableName, java.util.List primaryKeyData)
Check to see if the primary key or unique-index key is in the database.
|
boolean | checkId(java.lang.String tableName, java.util.List primaryKeyData, java.lang.String schema)
Check ID for a specific schema to see if the primary key or unique-index key is in the database.
|
void | clearAllCache()
Clear cache for all tables.
|
void | clearAllSecondaryCache()
Clear the secondary cache for all tables.
|
long | getCacheSize()
Get the max cache size for the IDResolver.
|
com.ibm.commerce.foundation.dataload.idresolve.IDResolverForOneTable | getIDResolverInUseForCheckId(java.lang.String tableName)
Get the ID resolver in use for checkId.
|
java.util.List<com.ibm.commerce.foundation.dataload.idresolve.IDResolverForOneTable> | getIDResolversInUseForResolveId(java.lang.String tableName)
Get the ID resolvers in use for resolveId.
|
java.util.SortedSet<java.lang.String> | getIDResolverTableNames()
Get the ID resolver table names in sorted alphabetic order.
|
IDResolveResponse | resolveId(IDResolveRequest request)
Resolve ID to check if the unique index data exists in the database.
|
void | setCacheSize(long size)
Set max cache size for the IDResolver.
|
static final java.lang.String COPYRIGHT
IDResolveResponse resolveId(IDResolveRequest request) throws DataLoadException
boolean checkId(java.lang.String tableName, java.util.List primaryKeyData) throws DataLoadException
boolean checkId(java.lang.String tableName, java.util.List primaryKeyData, java.lang.String schema) throws DataLoadException
void setCacheSize(long size)
long getCacheSize()
void clearAllCache()
void clearAllSecondaryCache()
java.util.List<com.ibm.commerce.foundation.dataload.idresolve.IDResolverForOneTable> getIDResolversInUseForResolveId(java.lang.String tableName)
com.ibm.commerce.foundation.dataload.idresolve.IDResolverForOneTable getIDResolverInUseForCheckId(java.lang.String tableName) throws DataLoadException
java.util.SortedSet<java.lang.String> getIDResolverTableNames()