if (mfactory == null || !(mfactory instanceof ConglomerateFactory))
{
throw StandardException.newException(
SQLState.AM_NO_SUCH_CONGLOMERATE_TYPE, implementation);
}
ConglomerateFactory cfactory = (ConglomerateFactory) mfactory;
// Create the conglomerate
// RESOLVE (mikem) - eventually segmentid's will be passed into here
// in the properties. For now just use 0.]
int segment;
long conglomid;
if ((temporaryFlag & TransactionController.IS_TEMPORARY)
== TransactionController.IS_TEMPORARY)
{
segment = ContainerHandle.TEMPORARY_SEGMENT;
conglomid = ContainerHandle.DEFAULT_ASSIGN_ID;
}
else
{
segment = 0; // RESOLVE - only using segment 0
conglomid =
accessmanager.getNextConglomId(
cfactory.getConglomerateFactoryId());
}
// call the factory to actually create the conglomerate.
Conglomerate conglom =
cfactory.createConglomerate(
this, segment, conglomid, template,
columnOrder, collationIds, properties, temporaryFlag);
long conglomId;
if ((temporaryFlag & TransactionController.IS_TEMPORARY)