Examples of StateManagerImpl


Examples of org.apache.openjpa.kernel.StateManagerImpl

            // this inverse field does not have corresponding classMapping
            // its value may be a collection/map etc.
            if (decMeta == null)
                return;
         
            StateManagerImpl owner = ((StateManagerImpl)sm).getObjectIdOwner();
            if (oid.equals(owner.getObjectId())) {
                mappedByValue = owner.getPersistenceCapable();
                res.setMappedByFieldMapping(mappedByFieldMapping);
                res.setMappedByValue(mappedByValue);
            } else if (coll instanceof Collection &&
                ((Collection) coll).size() > 0) {
                // Customer (1) <--> Orders(n)
View Full Code Here

Examples of org.apache.openjpa.kernel.StateManagerImpl

    if (obj == null)
      return null;
    PersistenceCapable pc = ImplHelper.toPersistenceCapable(obj, null);
    if (pc == null)
      return null;
    StateManagerImpl sm = (StateManagerImpl)pc.pcGetStateManager();
    if (sm == null)
      return null;
    Object slice = sm.getImplData();
    return (slice instanceof String) ? (String)slice : null;
  }
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.