Skip navigation links 
 
oracle.javatools.db
Class TemplateExpander
java.lang.Object
  
oracle.javatools.db.TemplateExpander
- All Implemented Interfaces:
 
- SchemaObjectExpander
 
- 
public class TemplateExpander
 
- extends java.lang.Object
 
- implements SchemaObjectExpander
 
An expander of schema objects that provides the Template support for a DBObjectProvider. Templates allow all new objects that are created to have a default set of properties and child objects based on an existing template object.
 
| Nested Class Summary | 
static interface | 
TemplateExpander.Initialiser 
          The template mechanism can be extended by Initialiser objects that can perform extra template work on newly templated objects before they're commited to the provider. | 
  
 
  
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
TemplateExpander
public TemplateExpander(DBObjectProvider pro)
expand
public void expand(Difference rs)
- Description copied from interface: 
SchemaObjectExpander 
- Called by a DBObjectProvider during a create or update process. The given Difference contains new and updated objects which can be "expanded" to provide their full definitions before being "saved" in the underlying database etc.
 
- 
- Specified by:
 
expand in interface SchemaObjectExpander 
 
- 
- Parameters:
 
rs - the Difference which contains the objects to expand. For an update "a" is the old version, for a create "a" will be null. 
 
initialiseObject
public static final <T extends DBObject> T initialiseObject(T template)
isPendingObject
public static final boolean isPendingObject(DBObject object)
registerInitialiser
public static void registerInitialiser(TemplateExpander.Initialiser ini)
registerPropertyToClear
public static void registerPropertyToClear(java.lang.Class clearFromClass,
                                           java.lang.String clearProperty)
registerPropertiesToClear
@Deprecated
public static void registerPropertiesToClear(java.lang.Class clearFromClass,
                                                        java.util.ArrayList<java.lang.String> clearPropsList,
                                                        boolean append)
- Deprecated. use registerPropertyToClear
 
getTemplateObjectName
public static java.lang.String getTemplateObjectName(DBObject object)
applySourceFromTemplate
public static void applySourceFromTemplate(SourceObject object)
applySourceFromTemplate
public static void applySourceFromTemplate(SourceObject template,
                                           SourceObject object)
Skip navigation links 
 
Copyright © 1997, 2012, Oracle. All rights reserved.