Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.db.property
Interface PropertyManager

All Known Subinterfaces:
DDLGenerator<T>
All Known Implementing Classes:
AbstractPropertyManager, BundleDDLGenerator, DelegateDDLGenerator, TokenDDLGenerator

public interface PropertyManager

A DBObjectProvider has an associated PropertyManager that can be queried to ask for the level of support a given property has.

Since:
11

Method Summary
 boolean canAlterProperty(DBObject original, DBObject update, java.lang.String prop)
          Convenience method to call 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.
 PropertyAction canUpdateObject(DBObject orig, DBObject update)
          Convenience method that uses 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 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.
 boolean supportsAction(java.lang.String type, PropertyAction.Type action)
          Asks whether a given action is supported for the specified object type in this provider.
 boolean supportsProperty(java.lang.String type, java.lang.String prop)
          Tests whether the given property is supported for the given object type.

 

Method Detail

supportsAction

boolean supportsAction(java.lang.String type,
                       PropertyAction.Type action)
Asks whether a given action is supported for the specified object type in this provider.

supportsProperty

boolean supportsProperty(java.lang.String type,
                         java.lang.String prop)
Tests whether the given property is supported for the given object type.
Parameters:
type - the object type (e.g. Table.TYPE ).
prop - the property name / path.
Returns:
true if the property is valid for the given object type in the provider for this property manager

canChangeProperty

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. If the original object is null then the request is to test whether the given property is settable on a new object. If the original object is not null the request is to test whether the given property can be changed, and if so whether the change can be applied by an update/alter or whether a replace/recreate is needed.
Parameters:
original - the original object (null for a create query)
update - the updated (or new) object
prop - the property name / path to query
Returns:
an appropriate property action indicating the level of support for that property if supported, or null if the property is not supported.

canAlterProperty

boolean canAlterProperty(DBObject original,
                         DBObject update,
                         java.lang.String prop)
Convenience method to call 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.
Parameters:
original - the original object (null for a create query)
update - the updated (or new) object
prop - the property name / path to query
Returns:
true if the given property can be changed using ALTER.

canUpdateObject

PropertyAction canUpdateObject(DBObject orig,
                               DBObject update)
Convenience method that uses 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.
Parameters:
orig - the original object (null for a create query)
update - the updated (or new) object
Returns:
an appropriate property action indicating the level support if the update is supported, or null if the update is not supported.

canUpdateObject

PropertyAction canUpdateObject(Difference rs)
Convenience method that uses 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.
Parameters:
rs - the changes to test
Returns:
an appropriate property action indicating the level support if the update is supported, or null if the update is not supported.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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