gov.nih.nci.caarray.services.util
Class DBUtils
java.lang.Object
gov.nih.nci.caarray.services.util.DBUtils
public final class DBUtils
- extends java.lang.Object
- Author:
- TranP
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getIdentityAsLong
public static final long getIdentityAsLong(org.apache.ojb.broker.Identity identity)
matchOntologyEntry
public static final OntologyEntry matchOntologyEntry(OntologyEntry entry,
org.apache.ojb.broker.PersistenceBroker broker)
matchDatabase
public static final Database matchDatabase(Database db,
org.apache.ojb.broker.PersistenceBroker broker)
syncOntologyEntryOneToOneAssociation
public static void syncOntologyEntryOneToOneAssociation(java.lang.Object object,
java.lang.String attributeName)
throws ObjectNotExistException,
DBException
- Throws:
ObjectNotExistException
DBException
insertObjectsInBatch
public static void insertObjectsInBatch(java.util.List objects,
int batchSize,
org.apache.ojb.broker.PersistenceBroker broker)
- Inserts the specified list of objects in batch mode.
- Parameters:
objects
-
resetAttributes
public static void resetAttributes(Describable obj)
- Resets the ID and identifying attributes including audit trail,
property set, and security typically useful for duplication
- Parameters:
identifiable
-