public abstract class TokenGenerator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TokenGenerator.CascadeGenerator
{generate} |
static class |
TokenGenerator.CommentGenerator
{quotedComment} |
static class |
TokenGenerator.NameGenerator
{schema.name} |
static class |
TokenGenerator.ReplaceGenerator
{replace} |
Constructor and Description |
---|
TokenGenerator() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<PropertyAction.ChildAction,java.util.Collection<java.lang.String>> |
createPropertyMap(java.util.Collection<java.lang.String> alterModifyProps,
java.util.Collection<java.lang.String> alterAddProps,
java.util.Collection<java.lang.String> alterRemoveProps)
Creates a Map suitable for returning from
getAlterPropertiesProcessed(java.lang.String, oracle.javatools.db.DBObjectProvider) with the given property sets. |
abstract java.lang.Object |
evaluateToken(TokenContext context)
Evaluates the token as an Object - used by [{token} PRINT THIS] type
syntax where the returned result will be used to evaulate an if or for
construct.
|
abstract void |
generateToken(TokenContext context)
Generates the token in to the context - i.e.
|
java.util.Map<PropertyAction.ChildAction,java.util.Collection<java.lang.String>> |
getAlterPropertiesProcessed(java.lang.String type,
DBObjectProvider pro)
Gets all the properites that this TokenGenerator will generate.
|
protected oracle.javatools.db.ddl.TokenProcessor |
getProcessor() |
java.util.Collection<java.lang.String> |
getPropertiesAltered(java.lang.String type,
DBObjectProvider pro)
Deprecated.
|
java.util.Collection<java.lang.String> |
getPropertiesProcessed(java.lang.String type,
DBObjectProvider pro)
Returns the property names that are processed by this TokenGenerator.
|
public abstract void generateToken(TokenContext context)
public abstract java.lang.Object evaluateToken(TokenContext context)
public java.util.Collection<java.lang.String> getPropertiesProcessed(java.lang.String type, DBObjectProvider pro)
@Deprecated public java.util.Collection<java.lang.String> getPropertiesAltered(java.lang.String type, DBObjectProvider pro)
getAlterPropertiesProcessed(java.lang.String, oracle.javatools.db.DBObjectProvider)
public java.util.Map<PropertyAction.ChildAction,java.util.Collection<java.lang.String>> getAlterPropertiesProcessed(java.lang.String type, DBObjectProvider pro)
type
- the object typepro
- the containing providerprotected final java.util.Map<PropertyAction.ChildAction,java.util.Collection<java.lang.String>> createPropertyMap(java.util.Collection<java.lang.String> alterModifyProps, java.util.Collection<java.lang.String> alterAddProps, java.util.Collection<java.lang.String> alterRemoveProps)
getAlterPropertiesProcessed(java.lang.String, oracle.javatools.db.DBObjectProvider)
with the given property sets.protected final oracle.javatools.db.ddl.TokenProcessor getProcessor()