|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.db.property.AbstractPropertyManager
public abstract class AbstractPropertyManager
Constructor Summary | |
---|---|
protected |
AbstractPropertyManager(DBObjectProvider pro) |
Method Summary | |
---|---|
boolean |
canAlterProperty(DBObject original, DBObject update, java.lang.String prop) Convenience method to call PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String) and check the return value is a PropertyAction with a type of ALTER. |
PropertyAction |
canChangeProperty(DBObject original, DBObject update, java.lang.String prop) Queries the support for setting or changing the given property for a create or update. |
protected boolean |
canChangeWithAlter(DBObject orig, DBObject update, java.lang.String prop) Returns true if the given property can be changed using an alter on the given original and updated objects. |
protected boolean |
canChangeWithReplace(DBObject orig, DBObject update, java.lang.String prop) Returns true if the given property can be changed using a drop/recreate on the given original and updated objects. |
protected boolean |
canCreate(DBObject newObj, java.lang.String prop) Return true if the given property can be set on the given new object. |
protected boolean |
canCreate(java.lang.String type, java.lang.String prop) Tests whether the given property is supported for create on the given object type. |
PropertyAction |
canUpdateObject(DBObject orig, DBObject update) Convenience method that uses PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String) on all the differences in the given object to tell whether the update on the given objects can be done using a CREATE, ALTER or REPLACE as appropriate. |
PropertyAction |
canUpdateObject(Difference rs) Convenience method that uses PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String) on all the differences in the given Difference to tell whether the update on the given objects can be done using a CREATE, ALTER or REPLACE as appropriate. |
protected java.util.logging.Logger |
getLogger() Returns a DBLog initialised Logger class for logging messages. |
protected DBObjectProvider |
getProvider() |
protected java.lang.Class<? extends DBObjectProvider> |
getProviderClass() Gets the provider class for the property support to test properties against. |
boolean |
supportsProperty(java.lang.String type, java.lang.String prop) Tests whether the given property is supported for the given object type. |
protected boolean |
supportsProperty(java.lang.String type, java.lang.String prop, java.lang.Class<? extends DBObjectProvider> proClz) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.javatools.db.property.PropertyManager |
---|
supportsAction |
Constructor Detail |
---|
protected AbstractPropertyManager(DBObjectProvider pro)
Method Detail |
---|
protected java.util.logging.Logger getLogger()
DBLog
initialised Logger class for logging messages.protected DBObjectProvider getProvider()
protected java.lang.Class<? extends DBObjectProvider> getProviderClass()
public boolean supportsProperty(java.lang.String type, java.lang.String prop)
PropertyManager
supportsProperty
in interface PropertyManager
type
- the object type (e.g. Table.TYPE
).prop
- the property name / path.protected boolean supportsProperty(java.lang.String type, java.lang.String prop, java.lang.Class<? extends DBObjectProvider> proClz)
public final boolean canAlterProperty(DBObject original, DBObject update, java.lang.String prop)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String)
and check the return value is a PropertyAction with a type of ALTER.canAlterProperty
in interface PropertyManager
original
- the original object (null for a create query)update
- the updated (or new) objectprop
- the property name / path to querypublic final PropertyAction canChangeProperty(DBObject original, DBObject update, java.lang.String prop)
PropertyManager
canChangeProperty
in interface PropertyManager
original
- the original object (null for a create query)update
- the updated (or new) objectprop
- the property name / path to queryprotected boolean canCreate(DBObject newObj, java.lang.String prop)
canCreate(String,String)
with the object type.protected boolean canCreate(java.lang.String type, java.lang.String prop)
protected boolean canChangeWithAlter(DBObject orig, DBObject update, java.lang.String prop)
protected boolean canChangeWithReplace(DBObject orig, DBObject update, java.lang.String prop)
public final PropertyAction canUpdateObject(DBObject orig, DBObject update)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String)
on all the differences in the given object to tell whether the update on the given objects can be done using a CREATE, ALTER or REPLACE as appropriate.canUpdateObject
in interface PropertyManager
orig
- the original object (null for a create query)update
- the updated (or new) objectpublic final PropertyAction canUpdateObject(Difference rs)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.String)
on all the differences in the given Difference to tell whether the update on the given objects can be done using a CREATE, ALTER or REPLACE as appropriate.canUpdateObject
in interface PropertyManager
rs
- the changes to test
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.3.0) E17493-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |