public abstract class LibrarySessionAction extends AbstractUpgradeAction
 If not already started, a LibraryService is started by calling the getDefaultLibraryService method of UpgradeActionContext.
 
 A LibrarySession is created for the "system" user.  In creating
 the LibrarySession, schema upgrade mode is set.  The LibrarySession is initially in user execution
 mode.
 
Properties:
PreventSessionTimeouts:
     whether to prevent session timeouts, or null for true
 This class is thread-safe when the schema upgrade is performed through the
 UpgradeDriverManager interface.
| Modifier and Type | Field and Description | 
|---|---|
protected static String | 
PROPERTY_PREVENTSESSIONTIMEOUTS
The property whose boolean value is whether to  
prevent session timeouts, or null for true. | 
| Constructor and Description | 
|---|
LibrarySessionAction()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
abortTransaction(LibrarySession session,
                Transaction tx)
Aborts the specified transaction, logging any exception. 
 | 
void | 
analyze()
Subclasses should override  
analyze(LibrarySession). | 
protected void | 
analyze(LibrarySession session)
Called by  
analyze. | 
void | 
postUpgrade()
Subclasses should override  
postUpgrade(LibrarySession). | 
protected void | 
postUpgrade(LibrarySession session)
Called by  
postUpgrade. | 
void | 
preUpgrade()
Subclasses should override  
preUpgrade(LibrarySession). | 
protected void | 
preUpgrade(LibrarySession session)
Called by  
preUpgrade. | 
void | 
rollback(boolean downgrade)
Subclasses should override  
rollback(LibrarySession, boolean). | 
protected void | 
rollback(LibrarySession session,
        boolean downgrade)
Called by  
rollback. | 
void | 
upgrade()
Subclasses should override  
upgrade(LibrarySession). | 
protected void | 
upgrade(LibrarySession session)
Called by  
upgrade. | 
getName, getProperties, getProperty, getUpgradeActionContext, initializeprotected static final String PROPERTY_PREVENTSESSIONTIMEOUTS
prevent session timeouts, or null for true.public final void analyze()
                   throws IfsException
analyze(LibrarySession).analyze in interface UpgradeActionanalyze in class AbstractUpgradeActionIfsException - 82101: if the operation failspublic final void preUpgrade()
                      throws IfsException
preUpgrade(LibrarySession).preUpgrade in interface UpgradeActionpreUpgrade in class AbstractUpgradeActionIfsException - 82102: if the operation failspublic final void upgrade()
                   throws IfsException
upgrade(LibrarySession).upgrade in interface UpgradeActionupgrade in class AbstractUpgradeActionIfsException - 82103: if the operation failspublic final void postUpgrade()
                       throws IfsException
postUpgrade(LibrarySession).postUpgrade in interface UpgradeActionpostUpgrade in class AbstractUpgradeActionIfsException - 82104: if the operation failspublic final void rollback(boolean downgrade)
                    throws IfsException
rollback(LibrarySession, boolean).rollback in interface UpgradeActionrollback in class AbstractUpgradeActiondowngrade - whether the rollback is being performed as part of
                      a downgradeIfsException - 82105: if the operation failsprotected void analyze(LibrarySession session) throws IfsException
analyze.
 Subclasses should override this method to perform the analysis phase of the upgrade action.
session - the sessionIfsException - if the operation failsprotected void preUpgrade(LibrarySession session) throws IfsException
preUpgrade.
 Subclasses should override this method to perform the pre-upgrade phase of the upgrade action.
session - the sessionIfsException - if the operation failsprotected void upgrade(LibrarySession session) throws IfsException
upgrade.
 Subclasses should override this method to perform the upgrade phase of the upgrade action.
session - the sessionIfsException - if the operation failsprotected void postUpgrade(LibrarySession session) throws IfsException
postUpgrade.
 Subclasses should override this method to perform the post-upgrade phase of the upgrade action.
session - the sessionIfsException - if the operation failsprotected void rollback(LibrarySession session, boolean downgrade) throws IfsException
rollback.
 Subclasses should override this method to rollback the analysis and pre-upgrade phases of the upgrade action.
downgrade - whether the rollback is being performed as part of
                      a downgradesession - the sessionIfsException - if the operation failspublic static void abortTransaction(LibrarySession session, Transaction tx)
session - the session, or nulltx - the transaction, or nullCopyright © 2025. All rights reserved.