java.lang.Object
org.objectstyle.cayenne.access.util.BatchQueryUtils
- public class BatchQueryUtils
- extends java.lang.Object
Collection of utility methods to work with BatchQueries.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchQueryUtils
private BatchQueryUtils()
updatesLOBColumns
public static boolean updatesLOBColumns(org.objectstyle.cayenne.query.BatchQuery query)
- Utility method that returns
true if
the query will update at least one BLOB or CLOB DbAttribute.
buildSnapshotForUpdate
public static java.util.Map buildSnapshotForUpdate(org.objectstyle.cayenne.DataObject o)
hashCode
public static int hashCode(java.util.Collection c)
buildFlattenedSnapshot
public static java.util.Map buildFlattenedSnapshot(java.util.Map sourceId,
java.util.Map destinationId,
org.objectstyle.cayenne.map.DbRelationship firstRelationship,
org.objectstyle.cayenne.map.DbRelationship secondRelationship)
buildSnapshotForInsert
public static java.util.Map buildSnapshotForInsert(org.objectstyle.cayenne.map.ObjEntity ent,
org.objectstyle.cayenne.DataObject o,
org.objectstyle.cayenne.map.DbRelationship masterDependentRel)
valueChanged
private static boolean valueChanged(java.lang.Object oldValue,
java.lang.Object newValue)
getTargetDbAttributeName
private static java.lang.String getTargetDbAttributeName(java.lang.String srcDbAttributeName,
org.objectstyle.cayenne.map.DbRelationship masterDependentRel)
buildSnapshotForUpdate
public static java.util.Map buildSnapshotForUpdate(org.objectstyle.cayenne.map.ObjEntity entity,
org.objectstyle.cayenne.DataObject o,
org.objectstyle.cayenne.map.DbRelationship masterDependentRel)