|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.StatementNode
org.apache.derby.impl.sql.compile.DDLStatementNode
A DDLStatementNode represents any type of DDL statement: CREATE TABLE, CREATE INDEX, ALTER TABLE, etc.
Field Summary | |
static int |
ADD_TYPE
|
static int |
DROP_TYPE
|
(package private) boolean |
implicitCreateSchema
sub-classes can set this to be true to allow implicit creation of the main object's schema at execution time. |
private boolean |
initOk
|
static int |
LOCKING_TYPE
|
static int |
MODIFY_TYPE
|
private TableName |
objectName
|
static int |
UNKNOWN_TYPE
|
Fields inherited from class org.apache.derby.impl.sql.compile.StatementNode |
NEED_CURSOR_ACTIVATION, NEED_DDL_ACTIVATION, NEED_NOTHING_ACTIVATION, NEED_PARAM_ACTIVATION, NEED_ROW_ACTIVATION |
Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, beginOffset, endOffset |
Constructor Summary | |
DDLStatementNode()
|
Method Summary | |
(package private) int |
activationKind()
|
void |
bindName(DataDictionary dataDictionary)
Bind the object Name. |
private TableDescriptor |
checkTableDescriptor(TableDescriptor td)
|
void |
generate(ActivationClassBuilder acb,
MethodBuilder mb)
Generic generate code for all DDL statements. |
java.lang.String |
getFullName()
Return the full dot expression name of the object being dropped. |
TableName |
getObjectName()
|
java.lang.String |
getRelativeName()
Return the name of the table being dropped. |
protected SchemaDescriptor |
getSchemaDescriptor()
Get a schema descriptor for this DDL object. |
protected TableDescriptor |
getTableDescriptor()
|
protected TableDescriptor |
getTableDescriptor(TableName tableName)
Validate that the table is ok for DDL -- e.g. |
protected TableDescriptor |
getTableDescriptor(UUID tableId)
|
void |
init(java.lang.Object objectName)
Initialize a query tree node. |
protected void |
initAndCheck(java.lang.Object objectName)
Initialize the object name we will be performing the DDL on and check that we are not in the system schema and that DDL is allowed. |
boolean |
isAtomic()
A DDL statement is always atomic |
java.lang.String |
toString()
Convert this object to a String. |
Methods inherited from class org.apache.derby.impl.sql.compile.StatementNode |
generate, lockTableForCompilation, statementToString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int UNKNOWN_TYPE
public static final int ADD_TYPE
public static final int DROP_TYPE
public static final int MODIFY_TYPE
public static final int LOCKING_TYPE
private TableName objectName
private boolean initOk
boolean implicitCreateSchema
Constructor Detail |
public DDLStatementNode()
Method Detail |
public void init(java.lang.Object objectName) throws StandardException
QueryTreeNode
init
in class QueryTreeNode
StandardException
- Thrown on errorprotected void initAndCheck(java.lang.Object objectName) throws StandardException
StandardException
public boolean isAtomic()
isAtomic
in class StatementNode
public java.lang.String getRelativeName()
public java.lang.String getFullName()
public final TableName getObjectName()
public java.lang.String toString()
toString
in class StatementNode
int activationKind()
activationKind
in class StatementNode
public final void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException
generate
in class QueryTreeNode
acb
- The ActivationClassBuilder for the class being builtmb
- The execute() method to be built
StandardException
- Thrown on errorprotected final SchemaDescriptor getSchemaDescriptor() throws StandardException
StandardException
- throws on schema name
that doesn't existprotected final TableDescriptor getTableDescriptor() throws StandardException
StandardException
protected final TableDescriptor getTableDescriptor(UUID tableId) throws StandardException
StandardException
protected final TableDescriptor getTableDescriptor(TableName tableName) throws StandardException
StandardException
- on errorprivate TableDescriptor checkTableDescriptor(TableDescriptor td) throws StandardException
StandardException
public void bindName(DataDictionary dataDictionary) throws StandardException
dataDictionary
- Data dictionary to bind against.
StandardException
- Thrown on error
|
Built on Mon 2007-06-04 09:58:47+0400, from revision ??? | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |