Examples of serviceBrokerHelper()


Examples of org.apache.ojb.broker.PersistenceBroker.serviceBrokerHelper()

            final PersistenceBroker pb = getBroker();
            if(cld == null)
            {
                cld = pb.getClassDescriptor(obj.getClass());
            }
            isNew = pb.serviceBrokerHelper().hasNullPKField(cld, obj);
            if(!isNew)
            {
                if(oid == null)
                {
                    oid = pb.serviceIdentity().buildIdentity(cld, obj);
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceBrokerHelper()

                else
                {
                    // if object was found cache, assume it's old
                    // else make costly check against the DB
                    isNew = pb.serviceObjectCache().lookup(oid) == null
                            && !pb.serviceBrokerHelper().doesExist(cld, oid, obj);
                }
            }
        }
        return isNew;
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceBrokerHelper()

        a. check if the object has nullified PK field
        b. check if the object is already registered
        c. lookup from cache and if not found, last option select on DB
        */
        final PersistenceBroker pb = tx.getBroker();
        boolean isNew = pb.serviceBrokerHelper().hasNullPKField(cld, obj);
        if(!isNew)
        {
            // use method call to guaratee creation of oid
            final Identity oid = getIdentity();
            final ObjectEnvelope mod = tx.objectEnvelopeTable.getByIdentity(oid);
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceBrokerHelper()

            else
            {
                // if object was found cache, assume it's old
                // else make costly check against the DB
                isNew = pb.serviceObjectCache().lookup(oid) == null
                        && !pb.serviceBrokerHelper().doesExist(cld, oid, obj);
            }
        }
        this.isNew = isNew ? Boolean.TRUE : Boolean.FALSE;
    }
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceBrokerHelper()

        a. check if the object has nullified PK field
        b. check if the object is already registered
        c. lookup from cache and if not found, last option select on DB
        */
        final PersistenceBroker pb = tx.getBroker();
        boolean isNew = pb.serviceBrokerHelper().hasNullPKField(cld, obj);
        if(!isNew)
        {
            // use method call to guaratee creation of oid
            final Identity oid = getIdentity();
            final ObjectEnvelope mod = tx.objectEnvelopeTable.getByIdentity(oid);
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.serviceBrokerHelper()

            else
            {
                // if object was found cache, assume it's old
                // else make costly check against the DB
                isNew = pb.serviceObjectCache().lookup(oid) == null
                        && !pb.serviceBrokerHelper().doesExist(cld, oid, obj);
            }
        }
        this.isNew = isNew ? Boolean.TRUE : Boolean.FALSE;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.