public class TemplateExpander extends UpdateProcessor
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TEMPLATE_OBJECTID |
Constructor and Description |
---|
TemplateExpander() |
Modifier and Type | Method and Description |
---|---|
static void |
applySourceFromTemplate(PlSqlSourceObject object)
Deprecated.
Source is copied directly from the template with no
modifications other than that defined by changes in the dialog.
|
static void |
applySourceFromTemplate(PlSqlSourceObject template,
PlSqlSourceObject object)
Deprecated.
Source is copied directly from the template with no
modifications other than that defined by changes in the dialog.
|
java.util.Collection<java.lang.String> |
getProcessorProperties(DBObjectProvider provider)
Gets a list of the properties that exist only for this processor.
|
static java.lang.String |
getTemplateObjectName(DBObject object) |
static <T extends DBObject> |
initialiseObject(T template) |
static boolean |
isPendingObject(DBObject object) |
boolean |
onlyProcessesPrimaryUpdates()
A "primary only" processor is only interested in primary updates.
|
void |
processUpdate(DBObjectTransaction txn,
Difference objDiff)
Called by a DBObjectProvider during a create or update process.
|
static void |
registerInitialiser(TemplateExpander.Initialiser ini) |
static void |
registerPropertiesToClear(java.lang.Class clearFromClass,
java.util.ArrayList<java.lang.String> clearPropsList,
boolean append)
Deprecated.
use registerPropertyToClear
|
static void |
registerPropertyToClear(java.lang.Class clearFromClass,
java.lang.String clearProperty) |
getLogger
public static final java.lang.String TEMPLATE_OBJECTID
public boolean onlyProcessesPrimaryUpdates()
UpdateProcessor
onlyProcessesPrimaryUpdates
in class UpdateProcessor
public void processUpdate(DBObjectTransaction txn, Difference objDiff)
UpdateProcessor
processUpdate
in class UpdateProcessor
txn
- the overall transaction that is being performedobjDiff
- the Difference of two SystemObjects to be processedpublic static final <T extends DBObject> T initialiseObject(T template)
public static final boolean isPendingObject(DBObject object)
public static void registerInitialiser(TemplateExpander.Initialiser ini)
public static void registerPropertyToClear(java.lang.Class clearFromClass, java.lang.String clearProperty)
@Deprecated public static void registerPropertiesToClear(java.lang.Class clearFromClass, java.util.ArrayList<java.lang.String> clearPropsList, boolean append)
public static java.lang.String getTemplateObjectName(DBObject object)
@Deprecated public static void applySourceFromTemplate(PlSqlSourceObject object)
@Deprecated public static void applySourceFromTemplate(PlSqlSourceObject template, PlSqlSourceObject object)
public java.util.Collection<java.lang.String> getProcessorProperties(DBObjectProvider provider)
UpdateProcessor
getProcessorProperties
in class UpdateProcessor