Package org.apache.openjpa.util

Examples of org.apache.openjpa.util.ObjectId


            createEmployee3(em, eId3++);
        tran.begin();
        em.flush();
        tran.commit();
        for (Dependent3 d: deps3) {
            ObjectId did = (ObjectId)((StateManagerImpl)((PersistenceCapable)d)
                  .pcGetStateManager()).getObjectId();
          dids3.add(did.getId());
          depMap3.put(did.getId(), d);
        }
       
        em.close();
    }
View Full Code Here


            return new StringId(cls, (String) oid);
        if (oid instanceof BigDecimal)
            return new BigDecimalId(cls, (BigDecimal) oid);
        if (oid instanceof BigInteger)
            return new BigIntegerId(cls, (BigInteger) oid);
        return new ObjectId(cls, oid);
    }
View Full Code Here

            case ClassMetaData.ID_APPLICATION:
                if (ImplHelper.isAssignable(meta.getObjectIdType(),
                    val.getClass())) {
                    if (!meta.isOpenJPAIdentity()
                        && meta.isObjectIdTypeShared())
                        return new ObjectId(cls, val);
                    return val;
                }

                // stringified app id?
                if (val instanceof String
View Full Code Here

            case ClassMetaData.ID_APPLICATION:
                if (ImplHelper.isAssignable(meta.getObjectIdType(),
                    val.getClass())) {
                    if (!meta.isOpenJPAIdentity()
                        && meta.isObjectIdTypeShared())
                        return new ObjectId(cls, val);
                    return val;
                }

                // stringified app id?
                if (val instanceof String
View Full Code Here

            case ClassMetaData.ID_APPLICATION:
                if (ImplHelper.isAssignable(meta.getObjectIdType(),
                    val.getClass())) {
                    if (!meta.isOpenJPAIdentity()
                        && meta.isObjectIdTypeShared())
                        return new ObjectId(cls, val);
                    return val;
                }

                // stringified app id?
                if (val instanceof String
View Full Code Here

            createEmployee3(em, eId3++);
        tran.begin();
        em.flush();
        tran.commit();
        for (Dependent3 d: deps3) {
            ObjectId did = (ObjectId)((StateManagerImpl)((PersistenceCapable)d)
                  .pcGetStateManager()).getObjectId();
          dids3.add(did.getId());
          depMap3.put(did.getId(), d);
        }
       
        em.close();
    }
View Full Code Here

            case ClassMetaData.ID_APPLICATION:
                if (ImplHelper.isAssignable(meta.getObjectIdType(),
                    val.getClass())) {
                    if (!meta.isOpenJPAIdentity()
                        && meta.isObjectIdTypeShared())
                        return new ObjectId(cls, val);
                    return val;
                }

                // stringified app id?
                if (val instanceof String
View Full Code Here

            case ClassMetaData.ID_APPLICATION:
                if (ImplHelper.isAssignable(meta.getObjectIdType(),
                    val.getClass())) {
                    if (!meta.isOpenJPAIdentity()
                        && meta.isObjectIdTypeShared())
                        return new ObjectId(cls, val);
                    return val;
                }

                // stringified app id?
                if (val instanceof String
View Full Code Here

            return new StringId(cls, (String) oid);
        if (oid instanceof BigDecimal)
            return new BigDecimalId(cls, (BigDecimal) oid);
        if (oid instanceof BigInteger)
            return new BigIntegerId(cls, (BigInteger) oid);
        return new ObjectId(cls, oid);
    }
View Full Code Here

            case ClassMetaData.ID_APPLICATION:
                if (ImplHelper.isAssignable(meta.getObjectIdType(),
                    val.getClass())) {
                    if (!meta.isOpenJPAIdentity()
                        && meta.isObjectIdTypeShared())
                        return new ObjectId(cls, val);
                    return val;
                }

                // stringified app id?
                if (val instanceof String
View Full Code Here

TOP

Related Classes of org.apache.openjpa.util.ObjectId

Copyright © 2018 www.massapicom. 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.