triggerInfo = constants.getTriggerInfo();
heapConglom = constants.conglomId;
baseRowReadList = constants.getBaseRowReadList();
ResultDescription resultDescription;
if(passedInRsd ==null)
resultDescription = activation.getResultDescription();
else
resultDescription = passedInRsd;
/*
** We NEED a result description when we are going to
** to have to kick off a trigger. In a replicated environment
** we don't get a result description when we are replaying
** source xacts on the target, which should never be the
** case for an UpdateResultSet.
*/
if (SanityManager.DEBUG)
{
if (resultDescription == null)
{
SanityManager.ASSERT(triggerInfo == null, "triggers need a result description to pass to result sets given to users");
}
}
if (fkInfoArray != null)
{
for (int i = 0; i < fkInfoArray.length; i++)
{
if (fkInfoArray[i].type == FKInfo.REFERENCED_KEY)
{
updatingReferencedKey = true;
if (SanityManager.DEBUG)
{
SanityManager.ASSERT(constants.deferred, "updating referenced key but update not deferred, wuzzup?");
}
}
else
{
updatingForeignKey = true;
}
}
}
/* Get the # of columns in the ResultSet */
resultWidth = resultDescription.getColumnCount();
/*
** Calculate the # of columns in the base table. The result set
** contains the before columns, the after columns, and the RowLocation,
** so the number of base columns is half of the number of result set