Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## oracle.ifs.admin.upgrade.common
Class FreeClassObjectAction

    java.lang.Object
      oracle.ifs.utils.action.AbstractAction
          oracle.ifs.admin.actions.LibrarySessionAction
              oracle.ifs.admin.upgrade.common.LibrarySessionUpgradeAction
                  oracle.ifs.admin.upgrade.common.FreeClassObjectAction

All Implemented Interfaces:
  Action, IfsParameters

    public class FreeClassObjectAction

extends LibrarySessionUpgradeAction

Frees a ClassObject.

Instead of using this class, new upgrade actions should use `FreeClassObjectAction`, which is more data driven (often eliminating the need for a subclass) and supports online upgrade.

Field Summary
`static int` | `SELECTOR_MAXITEM_COUNT`

Fields inherited from class oracle.ifs.admin.actions.LibrarySessionAction
`RESTART_SERVICE`

Fields inherited from class oracle.ifs.utils.action.AbstractAction
`CONTINUE_ON_ERROR, m_defaultOptions, m_options`

Fields inherited from interface oracle.ifs.utils.common.IfsParameters
`APPEND_LOG, 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 Summary
`FreeClassObjectAction()`

Method Summary
`protected void` | `clearClassNames(LibrarySession sess, ClassObject co)` Clear the attributes BeanClassPath, ServerClassPath, and SelectorClassPath for the specified ClassObject.
`void` | `execute(LibrarySession sess)` Frees the ClassObject with the name specified by the `ClassObject` property.
`protected void` | `freeAllInstancesOfClass(LibrarySession sess, java.lang.String className)` Frees all instances of a class.
`protected void` | `freeAttributeBundles(LibrarySession sess, Attribute attr)` Free the bundles associated with the attribute
`protected void` | `freeBundles(LibrarySession sess, ClassObject co)` Free the bundles associated with the class and its Attributes.
`protected void` | `freeClassObjectIfNecessary(LibrarySession sess, java.lang.String className)` Do the real work of freeing the ClassObject, after checking to see if the classobject exists already first.

Methods inherited from class oracle.ifs.admin.upgrade.common.LibrarySessionUpgradeAction
`failed, getTimestamp, log, log, printStackTrace, stop`

Methods inherited from class oracle.ifs.admin.actions.LibrarySessionAction
`perform, setDomain, setForSchemaUpgrade, setPassword, setRestartService, setSchemaPassword, setUser`

Methods inherited from class oracle.ifs.utils.action.AbstractAction
`getDescription, getName, getValue, isContinueOnError, putValue, setDefaultOptions, setDescription, setName, setOptions`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### SELECTOR_MAXITEM_COUNT

    public static final int SELECTOR_MAXITEM_COUNT

See Also:
  Constant Field Values

Constructor Detail

### FreeClassObjectAction

    public FreeClassObjectAction()

Method Detail

### execute

    public void execute(LibrarySession sess)
                 throws IfsException,
                        ActionFailedException

  Description copied from class: `FreeClassObjectAction`
  Frees the ClassObject with the name specified by the `ClassObject` property.

  If the `FreeInstances` property is true or omitted, all instances of that ClassObject are first freed; if false, the action will fail if any instances of the ClassObject exist.

  Specified by:
    `execute` in class `LibrarySessionAction`
  Parameters:
    `sess` - the connected LibrarySession (in admin mode if possible).
  Throws:
    `IfsException` - if a database error occurs.
    `ActionFailedException` - if any other error occurs.

### freeClassObjectIfNecessary

    protected void freeClassObjectIfNecessary(LibrarySession sess,
                                              java.lang.String className)
                                       throws IfsException,
                                              ActionFailedException

  Description copied from class: `FreeClassObjectAction`
  Do the real work of freeing the ClassObject, after checking to see if the classobject exists already first. This also frees all instances of the class prior to freeing it.

  Throws:
    `IfsException`
    `ActionFailedException`
  (Unpublished)

### clearClassNames

    protected void clearClassNames(LibrarySession sess,
                                   ClassObject co)
                            throws IfsException

  Description copied from class: `FreeClassObjectAction`
  Clear the attributes BeanClassPath, ServerClassPath, and SelectorClassPath for the specified ClassObject.

  Throws:
    `IfsException`
  (Unpublished)

### freeAllInstancesOfClass

    protected void freeAllInstancesOfClass(LibrarySession sess,
                                           java.lang.String className)
                                    throws IfsException

  Description copied from class: `FreeClassObjectAction`
  Frees all instances of a class. This throws if the class cannot be found.

  Throws:
    `IfsException`
  (Unpublished)

### freeBundles

    protected void freeBundles(LibrarySession sess,
                               ClassObject co)
                        throws IfsException

  Description copied from class: `FreeClassObjectAction`
  Free the bundles associated with the class and its Attributes.

  Throws:
    `IfsException`
  (Unpublished)

### freeAttributeBundles

    protected void freeAttributeBundles(LibrarySession sess,
                                        Attribute attr)
                                 throws IfsException

  Description copied from class: `FreeClassObjectAction`
  Free the bundles associated with the attribute

  Throws:
    `IfsException`
  (Unpublished)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD