Examples of toKeyDataStoreValue()


Examples of org.apache.openjpa.jdbc.meta.FieldMapping.toKeyDataStoreValue()

            : pstate.field;
        if (isXPath())
            return val;
        if (field != null) {
            if (_key)
                return field.toKeyDataStoreValue(val, ctx.store);
            if (field.getElement().getDeclaredTypeCode() != JavaTypes.OBJECT)
                return field.toDataStoreValue(val, ctx.store);

            val = field.getExternalValue(val, ctx.store.getContext());
            return field.toDataStoreValue(val, ctx.store);
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.strats.LRSMapFieldStrategy.toKeyDataStoreValue()

        // add in the joins
        ContainerFieldStrategy.appendUnaliasedJoin(sql, sel, null,
            ctx.store.getDBDictionary(), field, fk);
        sql.append(" AND ");

        key = strat.toKeyDataStoreValue(key, ctx.store);
        Column[] cols = strat.getKeyColumns(cls);
        Object[] vals = (cols.length == 1) ? null : (Object[]) key;

        for (int i = 0; i < cols.length; i++) {
            sql.append(cols[i].getFullName());
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.strats.LRSMapFieldStrategy.toKeyDataStoreValue()

        // add in the joins
        ContainerFieldStrategy.appendUnaliasedJoin(sql, sel, null,
            ctx.store.getDBDictionary(), field, fk);
        sql.append(" AND ");

        key = strat.toKeyDataStoreValue(key, ctx.store);
        Column[] cols = strat.getKeyColumns(cls);
        Object[] vals = (cols.length == 1) ? null : (Object[]) key;

        for (int i = 0; i < cols.length; i++) {
            sql.append(cols[i].getTable()).append(".").append(cols[i]);
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.strats.LRSMapFieldStrategy.toKeyDataStoreValue()

        // add in the joins
        ContainerFieldStrategy.appendUnaliasedJoin(sql, sel, null,
            ctx.store.getDBDictionary(), field, fk);
        sql.append(" AND ");

        key = strat.toKeyDataStoreValue(key, ctx.store);
        Column[] cols = strat.getKeyColumns(cls);
        Object[] vals = (cols.length == 1) ? null : (Object[]) key;

        for (int i = 0; i < cols.length; i++) {
            sql.append(cols[i].getFullName());
View Full Code Here

Examples of org.apache.openjpa.jdbc.meta.strats.LRSMapFieldStrategy.toKeyDataStoreValue()

        // add in the joins
        ContainerFieldStrategy.appendUnaliasedJoin(sql, sel, null,
            ctx.store.getDBDictionary(), field, fk);
        sql.append(" AND ");

        key = strat.toKeyDataStoreValue(key, ctx.store);
        Column[] cols = strat.getKeyColumns(cls);
        Object[] vals = (cols.length == 1) ? null : (Object[]) key;

        for (int i = 0; i < cols.length; i++) {
            sql.append(cols[i].getTable()).append(".").append(cols[i]);
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.