{
ApiAdapter api = om.getApiAdapter();
if (api.isPersistable(value))
{
// Assign a StateManager to the serialised object if none present
StateManager embSM = om.findStateManager(value);
if (embSM == null || ObjectManagerHelper.getObjectManager(value) == null)
{
embSM = StateManagerFactory.newStateManagerForEmbedded(om, value, false);
embSM.addEmbeddedOwner(ownerSM, fieldNumber);
}
}
StateManager sm = null;
if (api.isPersistable(value))
{
// Find SM for serialised PC object
sm = om.findStateManager(value);
}
if (sm != null)
{
sm.setStoringPC();
}
getDataStoreMapping(0).setObject(preparedStatement, exprIndex[0], value);
if (sm != null)
{
sm.unsetStoringPC();
}
}