Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.db.property
Enum PropertyAction.Type

java.lang.Object
  extended by java.lang.Enum<PropertyAction.Type>
      extended by oracle.javatools.db.property.PropertyAction.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PropertyAction.Type>
Enclosing class:
PropertyAction

public static enum PropertyAction.Type
extends java.lang.Enum<PropertyAction.Type>

Defins the different types of property action.


Enum Constant Summary
ALTER
          Indicates that the supported action for changing the given property is an update - i.e.
CREATE
          The action for creating a new object from scratch.
DELETE
          The delete object action is never returns by #canChangeProperty, but is used by #supportsAction to query whether an object type can be deleted.
REPLACE
          The action for replacing an existing object.
UNDELETE
          Not available on a per-property basis, but used by the supportsAction method to test whether the given provider supports undeleting of objects.
 
Method Summary
static PropertyAction.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PropertyAction.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CREATE

public static final PropertyAction.Type CREATE
The action for creating a new object from scratch. Indicates that the expected action is a "create object" when returned by #canChangeProperty, this will only (and always) be the case when the original object passed in is null and the property supported.


ALTER

public static final PropertyAction.Type ALTER
Indicates that the supported action for changing the given property is an update - i.e. a drop/recreate is not necessary, we can alter. When used with #supportsAction this asks whether the given object type can be updated at all (i.e. whether update is supported for at least one property.


REPLACE

public static final PropertyAction.Type REPLACE
The action for replacing an existing object. When returned by #canChangeProperty this indicates that update is not possible for changing the given property, a drop/recreate is necessary - i.e. we cannot alter.


DELETE

public static final PropertyAction.Type DELETE
The delete object action is never returns by #canChangeProperty, but is used by #supportsAction to query whether an object type can be deleted.


UNDELETE

public static final PropertyAction.Type UNDELETE
Not available on a per-property basis, but used by the supportsAction method to test whether the given provider supports undeleting of objects.

Method Detail

values

public static PropertyAction.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PropertyAction.Type c : PropertyAction.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PropertyAction.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.