public class ApplyCategoryFlag extends LibrarySessionUpgradeAction
Modifier and Type | Class and Description |
---|---|
static class |
ApplyCategoryFlag.CategoryInfo
Represents info for a Category object.
|
RESTART_SERVICE
CONTINUE_ON_ERROR, m_defaultOptions, m_options
APPEND_LOG, DATABASE_TYPE, DATABASE_URL, DB_USER_NAME, DB_USER_PASSWORD, DOMAIN_TYPE, ENABLE_SSL_SUPPORT, FOR_SCHEMA_UPGRADE, IFS_DOMAIN_DISPLAY_NAME, IFS_DOMAIN_NAME, IFS_SCHEMA_NAME, IFS_SCHEMA_PASSWORD, IFS_SERVICE_NAME, IFS_USER_NAME, IFS_USER_PASSWORD, INCLUDE_PATH, INITIAL_CONTEXT_FACTORY, LDAP_URL_DAS_LOOKUP, LDAP_USER_NAME, LDAP_USER_PASSWORD, OUTPUT_FILE, PARAMETER_FILE, REGISTRY, SCHEMA_VERSION_KEY, SECURITY_PROTOCOL_NAME, SERVICE_CONFIGURATION_NAME
Constructor and Description |
---|
ApplyCategoryFlag() |
Modifier and Type | Method and Description |
---|---|
void |
applyCategoryFlag(LibrarySession session,
String className,
int bitNumber,
int batchSize)
Set a Category FLAGS bit for PublicObjects that have at least one instance
of the specified Category class, and currently do not have that bit set.
|
void |
execute(LibrarySession sess)
Execute the action.
|
protected String |
getSelectSql(String catView)
Return the SQL used to select a batch of rows.
|
protected ApplyCategoryFlag.CategoryInfo[] |
selectIdBatch(LibrarySession session,
ClassObject co,
long lastId,
int batchSize)
Select a batch of IDs for Category objects that need to be processed,
for the specified class.
|
failed, getTimestamp, log, log, printStackTrace, stop
perform, setDomain, setForSchemaUpgrade, setPassword, setRestartService, setSchemaPassword, setUser
getDescription, getName, getValue, isContinueOnError, isPostgres, putValue, setDefaultOptions, setDescription, setName, setOptions
public void execute(LibrarySession sess) throws IfsException, ActionFailedException
execute
in class LibrarySessionAction
sess
- LibrarySession context.IfsException
- if the operation failsActionFailedException
- if the operation failspublic void applyCategoryFlag(LibrarySession session, String className, int bitNumber, int batchSize) throws IfsException
session
- LibrarySession contextclassName
- the name of the Category classbitNumber
- the FLAGS bit number to setbatchSize
- the maximum number of rows to select in each batchSQLException
- if the operation failsIfsException
protected ApplyCategoryFlag.CategoryInfo[] selectIdBatch(LibrarySession session, ClassObject co, long lastId, int batchSize) throws IfsException
session
- session contextco
- the Category class to processlastId
- the last ID processed, included in the query
to only process IDs greater than this valuebatchSize
- the maximum number of rows to be selectedSQLException
- if the operation failsIfsException
Copyright © 2023. All rights reserved.