public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getMappedPCSuperclassMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getMappedPCSuperclassMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getMappedPCSuperclassMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getMappedPCSuperclassMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getMappedPCSuperclassMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getEmbeddingMapping().getFieldMapping(). getDefiningMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getEmbeddingMapping().getFieldMapping(). getDefiningMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getEmbeddingMapping().getFieldMapping(). getDefiningMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getEmbeddingMapping().getFieldMapping(). getDefiningMapping().isPrimaryKeyObjectId(hasAll); } }
public boolean isPrimaryKeyObjectId(boolean hasAll) { return cls.getEmbeddingMapping().getFieldMapping(). getDefiningMapping().isPrimaryKeyObjectId(hasAll); } }
public int orderByPrimaryKey(ClassMapping mapping, boolean asc, Joins joins, boolean select) { ClassMapping pks = mapping; while (!pks.isPrimaryKeyObjectId(true)) pks = pks.getJoinablePCSuperclassMapping(); Column[] cols = pks.getPrimaryKeyColumns(); recordOrderColumns(cols, asc); return sel.orderByPrimaryKey(mapping, asc, joins, select, isUnion()); }
public int orderByPrimaryKey(ClassMapping mapping, boolean asc, Joins joins, boolean select) { ClassMapping pks = mapping; while (!pks.isPrimaryKeyObjectId(true)) pks = pks.getJoinablePCSuperclassMapping(); Column[] cols = pks.getPrimaryKeyColumns(); recordOrderColumns(cols, asc); return sel.orderByPrimaryKey(mapping, asc, joins, select, isUnion()); }
public int orderByPrimaryKey(ClassMapping mapping, boolean asc, Joins joins, boolean select) { ClassMapping pks = mapping; while (!pks.isPrimaryKeyObjectId(true)) pks = pks.getJoinablePCSuperclassMapping(); Column[] cols = pks.getPrimaryKeyColumns(); recordOrderColumns(cols, asc); return sel.orderByPrimaryKey(mapping, asc, joins, select, isUnion()); }
public int orderByPrimaryKey(ClassMapping mapping, boolean asc, Joins joins, boolean select) { ClassMapping pks = mapping; while (!pks.isPrimaryKeyObjectId(true)) pks = pks.getJoinablePCSuperclassMapping(); Column[] cols = pks.getPrimaryKeyColumns(); recordOrderColumns(cols, asc); return sel.orderByPrimaryKey(mapping, asc, joins, select, isUnion()); }
public int orderByPrimaryKey(ClassMapping mapping, boolean asc, Joins joins, boolean select) { ClassMapping pks = mapping; while (!pks.isPrimaryKeyObjectId(true)) pks = pks.getJoinablePCSuperclassMapping(); Column[] cols = pks.getPrimaryKeyColumns(); recordOrderColumns(cols, asc); return sel.orderByPrimaryKey(mapping, asc, joins, select, isUnion()); }
/** * Extract the oid value from the given result. If the next oid is the * same as the given one, returns the given JVM instance. */ private Object getNextObjectId(ClassMapping owner, JDBCStore store, Result res, Object oid) throws SQLException { // if this is a datastore id class we can avoid creating a new oid // object for the common case if (oid != null && owner.getIdentityType() == ClassMapping.ID_DATASTORE && owner.isPrimaryKeyObjectId(true)) { long nid = res.getLong(owner.getPrimaryKeyColumns()[0]); long id = ((Id) oid).getId(); return (nid == id) ? oid : store.newDataStoreId(nid, owner, true); } Object noid = owner.getObjectId(store, res, null, true, null); if (noid == null) return null; return (noid.equals(oid)) ? oid : noid; }
/** * Extract the oid value from the given result. If the next oid is the * same as the given one, returns the given JVM instance. */ private Object getNextObjectId(ClassMapping owner, JDBCStore store, Result res, Object oid) throws SQLException { // if this is a datastore id class we can avoid creating a new oid // object for the common case if (oid != null && owner.getIdentityType() == ClassMapping.ID_DATASTORE && owner.isPrimaryKeyObjectId(true)) { long nid = res.getLong(owner.getPrimaryKeyColumns()[0]); long id = ((Id) oid).getId(); return (nid == id) ? oid : store.newDataStoreId(nid, owner, true); } Object noid = owner.getObjectId(store, res, null, true, null); if (noid == null) return null; return (noid.equals(oid)) ? oid : noid; }
/** * Extract the oid value from the given result. If the next oid is the * same as the given one, returns the given JVM instance. */ private Object getNextObjectId(ClassMapping owner, JDBCStore store, Result res, Object oid) throws SQLException { // if this is a datastore id class we can avoid creating a new oid // object for the common case if (oid != null && owner.getIdentityType() == ClassMapping.ID_DATASTORE && owner.isPrimaryKeyObjectId(true)) { long nid = res.getLong(owner.getPrimaryKeyColumns()[0]); long id = ((Id) oid).getId(); return (nid == id) ? oid : store.newDataStoreId(nid, owner, true); } Object noid = owner.getObjectId(store, res, null, true, null); if (noid == null) return null; return (noid.equals(oid)) ? oid : noid; }
/** * Extract the oid value from the given result. If the next oid is the * same as the given one, returns the given JVM instance. */ private Object getNextObjectId(ClassMapping owner, JDBCStore store, Result res, Object oid) throws SQLException { // if this is a datastore id class we can avoid creating a new oid // object for the common case if (oid != null && owner.getIdentityType() == ClassMapping.ID_DATASTORE && owner.isPrimaryKeyObjectId(true)) { long nid = res.getLong(owner.getPrimaryKeyColumns()[0]); long id = ((Id) oid).getId(); return (nid == id) ? oid : store.newDataStoreId(nid, owner, true); } Object noid = owner.getObjectId(store, res, null, true, null); if (noid == null) return null; return (noid.equals(oid)) ? oid : noid; }
/** * Add where conditions setting the mapping's primary key to the given * oid values. If the given mapping does not use oid values for its * primary key, we will recursively join to its superclass until we find * an ancestor that does. */ private void wherePrimaryKey(Object oid, ClassMapping mapping, Joins joins, JDBCStore store) { // if this mapping's identifiers include something other than // the pk values, join to super and recurse if (!mapping.isPrimaryKeyObjectId(false)) { ClassMapping sup = mapping.getJoinablePCSuperclassMapping(); if (joins == null) joins = newJoins(); joins = mapping.joinSuperclass(joins, false); wherePrimaryKey(oid, sup, joins, store); return; } Column[] cols = mapping.getPrimaryKeyColumns(); where(oid, mapping, cols, cols, null, null, getJoins(joins, true), store); }