|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PropertyAction>
oracle.javatools.db.property.PropertyAction
public enum PropertyAction
Used by the PropertyManager to indicate actions available on an
object basis and a per-property basis.
PropertyManager.supportsAction(java.lang.String, oracle.javatools.db.property.PropertyAction),
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.Object)| 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 | |
|---|---|
void |
addProperty(java.lang.String propPath)
|
java.util.Collection<java.lang.String> |
getProperties()
|
static PropertyAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PropertyAction[] |
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 |
|---|
public static final PropertyAction CREATE
#canChangeProperty, this will only (and always) be the case when
the original object passed in is null and the property supported.
public static final PropertyAction ALTER
#supportsAction this asks whether the given object
type can be updated at all (i.e. whether update is supported for at least
one property.
public static final PropertyAction REPLACE
#canChangeProperty this indicates that update is not possible for
changing the given property, a drop/recreate is necessary - i.e. we
cannot alter.
public static final PropertyAction DELETE
#canChangeProperty,
but is used by #supportsAction to query whether an object type
can be deleted.
public static final PropertyAction UNDELETE
| Method Detail |
|---|
public static PropertyAction[] values()
for (PropertyAction c : PropertyAction.values()) System.out.println(c);
public static PropertyAction valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic java.util.Collection<java.lang.String> getProperties()
public void addProperty(java.lang.String propPath)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||