Examples of JavaTypeMapping


Examples of org.jpox.store.mapped.mapping.JavaTypeMapping

        }
        DatastoreAdapter dba = qs.getStoreManager().getDatastoreAdapter();
        this.exprs = new ScalarExpression[Array.getLength(value)];
        for( int i=0; i<Array.getLength(value); i++ )
        {
            JavaTypeMapping m = dba.getMapping(Array.get(value, i).getClass(), qs.getStoreManager(), qs.getClassLoaderResolver());
            this.exprs[i] = m.newLiteral(qs, Array.get(value, i));
        }
    }   
View Full Code Here

Examples of org.jpox.store.mapped.mapping.JavaTypeMapping

        if (!(expr instanceof NumericExpression))
        {
            // JDO2 spec [14.6.9] : SUM is invalid on non-numeric types
            throw new JPOXUserException(LOCALISER.msg("037011", "SUM"));
        }
        JavaTypeMapping sumMapping = expr.getMapping();
        if (sumMapping instanceof IntegerMapping || sumMapping instanceof ShortMapping)
        {
            // Integral types return Long
            sumMapping = qs.getStoreManager().getDatastoreAdapter().getMapping(Long.class,
                qs.getStoreManager(), qs.getClassLoaderResolver());
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.