}
}
private FieldState getFieldState(EntityEnterpriseContext ctx)
{
PersistentContext pctx = (PersistentContext)ctx.getPersistenceContext();
FieldState state = pctx.getCMRState(cmrIndex);
if(state == null)
{
if(isSingleValued())
{
state = new SingleValuedFieldState();
}
else
{
state = new CollectionValuedFieldState();
}
pctx.setCMRState(cmrIndex, state);
}
return state;
}