/* Build the row to insert */
row = getExecutionFactory().getValueRow(SYSCONGLOMERATES_COLUMN_COUNT);
/* 1st column is SCHEMAID (UUID - char(36)) */
row.setColumn(1, new SQLChar(schemaID));
/* 2nd column is TABLEID (UUID - char(36)) */
row.setColumn(2, new SQLChar(tabID));
/* 3rd column is CONGLOMERATENUMBER (long) */
row.setColumn(3, dvf.getDataValue(conglomNumber));
/* 4th column is CONGLOMERATENAME (varchar(128))
** If null, use the tableid so we always
** have a unique column
*/
row.setColumn(4, (conglomName == null) ?
new SQLVarchar(tabID): new SQLVarchar(conglomName));
/* 5th column is ISINDEX (boolean) */
row.setColumn(5, dvf.getDataValue(supportsIndex));
/* 6th column is DESCRIPTOR
* (user type org.apache.derby.catalog.IndexDescriptor)
*/
row.setColumn(6,
dvf.getDataValue(
(indexRowGenerator == null ?
(IndexDescriptor) null :
indexRowGenerator.getIndexDescriptor()
)
)
);
/* 7th column is ISCONSTRAINT (boolean) */
row.setColumn(7, dvf.getDataValue(supportsConstraint));
/* 8th column is CONGLOMERATEID (UUID - char(36)) */
row.setColumn(8, new SQLChar(conglomUUIDString));
return row;
}