@Override public TCObject createTCObject(final ObjectID id, final Object pojo, final boolean isNew) { if (pojo instanceof TCObjectSelf) { TCObjectSelf self = (TCObjectSelf) pojo; self.initializeTCObject(id, this, isNew); return self; } return new TCObjectLogical(id, pojo, this, isNew); }
@Override public TCObject createTCObject(final ObjectID id, final Object pojo, final boolean isNew) { if (pojo instanceof TCObjectSelf) { TCObjectSelf self = (TCObjectSelf) pojo; self.initializeTCObject(id, this, isNew); return self; } else if (this.isLogical) { return new TCObjectLogical(id, pojo, this, isNew); } else { return new TCObjectPhysical(id, pojo, this, isNew); } }
@Override public TCObject createTCObject(final ObjectID id, final Object pojo, final boolean isNew) { if (pojo instanceof TCObjectSelf) { TCObjectSelf self = (TCObjectSelf) pojo; self.initializeTCObject(id, this, isNew); return self; } else if (this.isLogical) { return new TCObjectLogical(id, pojo, this, isNew); } else { return new TCObjectPhysical(id, pojo, this, isNew); } }