public static enum PropertyAction.Type extends java.lang.Enum<PropertyAction.Type>
Enum Constant and Description |
---|
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
PropertyManager.canChangeProperty(oracle.javatools.db.SystemObject, oracle.javatools.db.SystemObject, java.lang.String) , but is used by
PropertyManager.supportsAction(java.lang.String, oracle.javatools.db.property.PropertyAction.Type) 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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final PropertyAction.Type CREATE
PropertyManager.canChangeProperty(oracle.javatools.db.SystemObject, oracle.javatools.db.SystemObject, java.lang.String)
, this will only (and
always) be the case when the original object passed in is null and
the property supported.public static final PropertyAction.Type ALTER
PropertyManager.supportsAction(java.lang.String, oracle.javatools.db.property.PropertyAction.Type)
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.Type REPLACE
PropertyManager.canChangeProperty(oracle.javatools.db.SystemObject, oracle.javatools.db.SystemObject, java.lang.String)
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.Type DELETE
PropertyManager.canChangeProperty(oracle.javatools.db.SystemObject, oracle.javatools.db.SystemObject, java.lang.String)
, but is used by
PropertyManager.supportsAction(java.lang.String, oracle.javatools.db.property.PropertyAction.Type)
to query
whether an object type can be deleted.public static final PropertyAction.Type UNDELETE
public static PropertyAction.Type[] values()
for (PropertyAction.Type c : PropertyAction.Type.values()) System.out.println(c);
public static PropertyAction.Type 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 namejava.lang.NullPointerException
- if the argument is null