|
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 | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.javatools.db.property.AbstractPropertyManager
public abstract class AbstractPropertyManager
Constructor Summary | |
---|---|
protected |
AbstractPropertyManager(DBObjectProvider pro)
|
Method Summary | |
---|---|
PropertyAction |
canChangeProperty(DBObject original,
DBObject update,
java.lang.Object propObj)
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.Object) 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(ResultSet rs)
Convenience method that uses PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.Object) on all the
differences in the given ResultSet 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()
|
protected DBObjectProvider |
getProvider()
|
protected java.lang.Class<? extends DBObjectProvider> |
getProviderClass()
|
boolean |
supportsProperty(java.lang.String type,
java.lang.Object propObj)
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()
protected DBObjectProvider getProvider()
protected java.lang.Class<? extends DBObjectProvider> getProviderClass()
public boolean supportsProperty(java.lang.String type, java.lang.Object propObj)
PropertyManager
supportsProperty
in interface PropertyManager
type
- the object type (e.g.
Table.TYPE
).propObj
- the property name (will use .toString())
protected boolean supportsProperty(java.lang.String type, java.lang.String prop, java.lang.Class<? extends DBObjectProvider> proClz)
public final PropertyAction canChangeProperty(DBObject original, DBObject update, java.lang.Object propObj)
PropertyManager
canChangeProperty
in interface PropertyManager
original
- the original object (null for a create query)update
- the updated (or new) objectpropObj
- the property to query (will use .toString())
protected 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.Object)
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) object
public final PropertyAction canUpdateObject(ResultSet rs)
PropertyManager
PropertyManager.canChangeProperty(oracle.javatools.db.DBObject, oracle.javatools.db.DBObject, java.lang.Object)
on all the
differences in the given ResultSet 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 Reference 11g Release 1 (11.1.1.1.0) E13403-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |