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 RemoveAttributeAction

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

All Implemented Interfaces:
  Action, IfsParameters

    public class RemoveAttributeAction

extends LibrarySessionUpgradeAction

Removes an Attribute from a ClassObject.

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

Field Summary

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
`RemoveAttributeAction()`

Method Summary
`void` | `execute(LibrarySession sess)` Removes the attribute specified by the `ClassObject` and `Attribute` properties.
`protected void` | `removeAttributeIfNecessary(LibrarySession sess, java.lang.String className, java.lang.String attrName)` Do the real work of adding the attribute, after checking to see if the attribute exists already first.
`protected void` | `removeAttributeIfNecessary(LibrarySession sess, java.lang.String className, java.lang.String attrName, boolean dropColumn)` Do the real work of adding the attribute, after checking to see if the attribute 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`

Constructor Detail

### RemoveAttributeAction

    public RemoveAttributeAction()

Method Detail

### execute

    public void execute(LibrarySession sess)
                 throws IfsException,
                        ActionFailedException

  Description copied from class: `RemoveAttributeAction`
  Removes the attribute specified by the `ClassObject` and `Attribute` properties.

  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.

### removeAttributeIfNecessary

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

  Description copied from class: `RemoveAttributeAction`
  Do the real work of adding the attribute, after checking to see if the attribute exists already first.

  Throws:
    `IfsException`

### removeAttributeIfNecessary

    protected void removeAttributeIfNecessary(LibrarySession sess,
                                              java.lang.String className,
                                              java.lang.String attrName,
                                              boolean dropColumn)
                                       throws IfsException

  Description copied from class: `RemoveAttributeAction`
  Do the real work of adding the attribute, after checking to see if the attribute exists already first.

  Throws:
    `IfsException`

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