{
primaryWork.setOID();
}
else
{
Component component = relMapping.getKeyGenerator();
if (component == RelationalMapping.KEY_GEN_IDENTITY)
{
primaryWork.setIdentity(true);
}
else if (component != null)
{
oid = ((OIDGenerator)component.getInstance(uow.getInvocationContext())).generateOID(instance, this);
Object[] values = oid.getValueArray();
Index pk = primaryTable.getPrimaryKey();
int nCount = pk.getIndexColumnCount();
if (nCount != values.length)
{
throw new PersistenceException("err.persistence.oidValueCount",
new Object[]{component.getName(), Primitive.createInteger(nCount),
Primitive.createInteger(values.length)});
}
for (int i = 0; i < nCount; ++i)
{