true
289290291292293294295296297298299
{ FieldDescriptor[] fields = cld.getPkFields(); boolean hasNull = false; // an unmaterialized proxy object can never have nullified PK's IndirectionHandler handler = ProxyHelper.getIndirectionHandler(obj); if(handler == null || handler.alreadyMaterialized()) { if(handler != null) obj = handler.getRealSubject(); FieldDescriptor fld; for(int i = 0; i < fields.length; i++) {
337338339340341342343344345346347
*/ IndirectionHandler handler = ProxyHelper.getIndirectionHandler(referenceObject); // if it is a not materialized proxy, use the Identity if(handler != null) { erh = handler.alreadyMaterialized() ? new EqualsRefHelper(handler.getRealSubject()) : new EqualsRefHelper(handler.getIdentity()); } else {
8788899091929394959697
if(handler != null) { this.handler = handler; isNew = Boolean.FALSE; identity = handler.getIdentity(); if(handler.alreadyMaterialized()) { cld = tx.getBroker().getClassDescriptor(handler.getRealSubject().getClass()); } else {
858859860861862863864865866867868
IndirectionHandler handler = rtObject.getHandler(); if(handler == null) { throw new OJBRuntimeException("Unexpected error, expect an proxy object as indicated: " + rtObject); } if (handler.alreadyMaterialized()) { objectToRegister = handler.getRealSubject(); } else {
973974975976977978979980981982983
item = colIterator.next(); RuntimeObject rt = new RuntimeObject(item, this); if (rt.isProxy()) { IndirectionHandler handler = ProxyHelper.getIndirectionHandler(item); if (!handler.alreadyMaterialized()) { handler.addListener(this); continue; } else
576577578579580581582583584585586
// in any case we have to link the source object when the object is insert source.addLinkOneToOne(ord, false); IndirectionHandler handler = ProxyHelper.getIndirectionHandler(depObj); // if the object is not materialized, nothing has changed if(handler == null || handler.alreadyMaterialized()) { RuntimeObject rt; // if materialized if(handler != null) {