{
if (((TableElementNode) elementAt(index)).getElementType() == TableElementNode.AT_DROP_COLUMN)
{
String columnName = ((TableElementNode) elementAt(index)).getName();
colInfos[index] = new ColumnInfo(
columnName,
td.getColumnDescriptor( columnName ).getType(),
null, null, null, null, null,
ColumnInfo.DROP, 0, 0, 0);
break;
}
if (! (elementAt(index) instanceof ColumnDefinitionNode))
{
if (SanityManager.DEBUG)
{
SanityManager.ASSERT( elementAt(index) instanceof ConstraintDefinitionNode,
"elementAt(index) expected to be instanceof " +
"ConstraintDefinitionNode");
}
/* Remember how many constraints we've seen */
numConstraints++;
continue;
}
ColumnDefinitionNode coldef = (ColumnDefinitionNode) elementAt(index);
//
// Generated columns may depend on functions mentioned in their
// generation clauses.
//
ProviderList apl = null;
ProviderInfo[] providerInfos = null;
if ( coldef.hasGenerationClause() )
{
apl = coldef.getGenerationClauseNode().getAuxiliaryProviderList();
}
if (apl != null && apl.size() > 0)
{
DependencyManager dm = getDataDictionary().getDependencyManager();
providerInfos = dm.getPersistentProviderInfos(apl);
}
colInfos[index - numConstraints] =
new ColumnInfo(coldef.getColumnName(),
coldef.getType(),
coldef.getDefaultValue(),
coldef.getDefaultInfo(),
providerInfos,
(UUID) null,