public class SystemMigrationFactory extends HibernateFactory
Modifier and Type | Method and Description |
---|---|
static SystemMigration |
createSystemMigration()
Create a new SystemMigration
|
protected org.apache.log4j.Logger |
getLogger()
Get the Logger for the derived class so log messages
show up on the correct class
|
static java.util.List<SystemMigration> |
lookupByFromOrg(Org fromOrg)
Find the system migrations that were initiated from the org provided.
|
static java.util.List<SystemMigration> |
lookupByServer(Server server)
Find the system migrations associated with the server provided.
|
static java.util.List<SystemMigration> |
lookupByToOrg(Org toOrg)
Find the system migrations where the systems were migrated to the org
provided.
|
static void |
removeSystemMigration(SystemMigration migration)
Delete the system migration.
|
static void |
save(SystemMigration migration)
Commit the SystemMigration
|
addConfigurator, blobToByteArray, byteArrayToBlob, closeSession, closeSessionFactory, commitTransaction, createSessionFactory, createSessionFactory, executeCallableMode, executeSelectMode, getBlobContents, getByteArrayContents, getObject, getSession, initialize, inTransaction, isClosed, isInitialized, listObjectsByNamedQuery, listObjectsByNamedQuery, listObjectsByNamedQuery, lockObject, lookupObjectByNamedQuery, lookupObjectByNamedQuery, reload, removeObject, rollbackTransaction, saveObject, saveObject, stringToByteArray
protected org.apache.log4j.Logger getLogger()
getLogger
in class HibernateFactory
public static SystemMigration createSystemMigration()
public static void removeSystemMigration(SystemMigration migration)
migration
- the system migration to removepublic static java.util.List<SystemMigration> lookupByFromOrg(Org fromOrg)
fromOrg
- the org that the systems were migrated frompublic static java.util.List<SystemMigration> lookupByToOrg(Org toOrg)
toOrg
- the org that the systems were migrated topublic static java.util.List<SystemMigration> lookupByServer(Server server)
server
- the server migratedpublic static void save(SystemMigration migration)
migration
- SystemMigration object we want to commit.