Package org.apache.openjpa.util

Examples of org.apache.openjpa.util.StringId


        if (oid instanceof Long)
            return new LongId(cls, (Long) oid);
        if (oid instanceof Short)
            return new ShortId(cls, (Short) oid);
        if (oid instanceof String)
            return new StringId(cls, (String) oid);
        return new ObjectId(cls, oid);
    }
View Full Code Here


                if (pkType.equals(Long.class) || pkType.equals(long.class))
                    return new LongId(cls, (Long) oid);
                if (pkType.equals(Short.class) || pkType.equals(short.class))
                    return new ShortId(cls, (Short) oid);
                if (pkType.equals(String.class))
                    return new StringId(cls, (String) oid);
                if (pkType.equals(BigDecimal.class))
                    return new BigDecimalId(cls, (BigDecimal) oid);
                if (pkType.equals(BigInteger.class))
                    return new BigIntegerId(cls, (BigInteger) oid);
            } catch (ClassCastException cce) {
View Full Code Here

                if (pkType.equals(Long.class) || pkType.equals(long.class))
                    return new LongId(cls, (Long) oid);
                if (pkType.equals(Short.class) || pkType.equals(short.class))
                    return new ShortId(cls, (Short) oid);
                if (pkType.equals(String.class))
                    return new StringId(cls, (String) oid);
                if (pkType.equals(BigDecimal.class))
                    return new BigDecimalId(cls, (BigDecimal) oid);
                if (pkType.equals(BigInteger.class))
                    return new BigIntegerId(cls, (BigInteger) oid);
            } catch (ClassCastException cce) {
View Full Code Here

        if (oid instanceof Long)
            return new LongId(cls, (Long) oid);
        if (oid instanceof Short)
            return new ShortId(cls, (Short) oid);
        if (oid instanceof String)
            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

        if (oid instanceof Long)
            return new LongId(cls, (Long) oid);
        if (oid instanceof Short)
            return new ShortId(cls, (Short) oid);
        if (oid instanceof String)
            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

        if (oid instanceof Long)
            return new LongId(cls, (Long) oid);
        if (oid instanceof Short)
            return new ShortId(cls, (Short) oid);
        if (oid instanceof String)
            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

TOP

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

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.