Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

oracle.javatools.db.property
Interface PropertyManager

All Known Subinterfaces:
DDLGenerator<T>
All Known Implementing Classes:
AbstractDDLGenerator, AbstractPropertyManager, BundleDDLGenerator, 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
 PropertyAction canChangeProperty(DBObject original, DBObject update, java.lang.Object 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.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 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.
 boolean supportsAction(java.lang.String type, PropertyAction action)
          Asks whether a given action is supported for the specified object type in this provider.
 boolean supportsProperty(java.lang.String type, java.lang.Object prop)
          Tests whether the given property is supported for the given object type.
 

Method Detail

supportsAction

boolean supportsAction(java.lang.String type,
                       PropertyAction 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.Object 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 (will use .toString())
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.Object 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 to query (will use .toString())
Returns:
an appropriate property action indicating the level of support for that property if supported, or null if the property is not supported.

canUpdateObject

PropertyAction canUpdateObject(DBObject orig,
                               DBObject update)
Convenience method that uses 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.

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(ResultSet rs)
Convenience method that uses 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.

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.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.1.0)

E13403-02

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