Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.cayenne.access.util
Class BatchQueryUtils  view BatchQueryUtils download BatchQueryUtils.java

java.lang.Object
  extended byorg.objectstyle.cayenne.access.util.BatchQueryUtils

public class BatchQueryUtils
extends java.lang.Object

Collection of utility methods to work with BatchQueries.


Constructor Summary
private BatchQueryUtils()
           
 
Method Summary
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)
           
static java.util.Map buildSnapshotForInsert(org.objectstyle.cayenne.map.ObjEntity ent, org.objectstyle.cayenne.DataObject o, org.objectstyle.cayenne.map.DbRelationship masterDependentRel)
           
static java.util.Map buildSnapshotForUpdate(org.objectstyle.cayenne.DataObject o)
           
static java.util.Map buildSnapshotForUpdate(org.objectstyle.cayenne.map.ObjEntity entity, org.objectstyle.cayenne.DataObject o, org.objectstyle.cayenne.map.DbRelationship masterDependentRel)
           
private static java.lang.String getTargetDbAttributeName(java.lang.String srcDbAttributeName, org.objectstyle.cayenne.map.DbRelationship masterDependentRel)
           
static int hashCode(java.util.Collection c)
           
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.
private static boolean valueChanged(java.lang.Object oldValue, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchQueryUtils

private BatchQueryUtils()
Method Detail

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)