public class IssFactory extends HibernateFactory
Modifier and Type | Method and Description |
---|---|
static void |
delete(java.lang.Object entity)
Delete an entity.
|
static IssMaster |
getCurrentMaster()
Return current default master for this slave
|
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<IssSlave> |
listAllIssSlaves()
List all IssSlaves for this Master
|
static java.util.List<IssMaster> |
listAllMasters()
List all IssMaster entries for this Slave
|
static IssMaster |
lookupMasterById(java.lang.Long id)
Lookup a IssMaster by its id
|
static IssMaster |
lookupMasterByLabel(java.lang.String label)
Lookup a IssMaster by its name
|
static IssSlave |
lookupSlaveById(java.lang.Long id)
Lookup a IssSlave by its id
|
static IssSlave |
lookupSlaveByName(java.lang.String inName)
Lookup a IssSlave by its name
|
static void |
remove(java.lang.Object entity)
Remove an entity from the DB
|
static void |
save(java.lang.Object entity)
Insert or Update an entity.
|
static void |
unmapLocalOrg(Org inOrg)
Remove a given local-org from being mapped to any master-orgs
|
static void |
unsetCurrentMaster()
Unset whatever the 'current' master is, no matter who holds it currently
|
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()
HibernateFactory
getLogger
in class HibernateFactory
public static IssSlave lookupSlaveById(java.lang.Long id)
id
- the id to search forpublic static IssSlave lookupSlaveByName(java.lang.String inName)
inName
- the slave to search forpublic static java.util.List<IssSlave> listAllIssSlaves()
public static IssMaster lookupMasterById(java.lang.Long id)
id
- the id to search forpublic static IssMaster lookupMasterByLabel(java.lang.String label)
label
- the label of the desired masterpublic static java.util.List<IssMaster> listAllMasters()
public static IssMaster getCurrentMaster()
public static void unsetCurrentMaster()
public static void unmapLocalOrg(Org inOrg)
inOrg
- the local-org we want to unmappublic static void delete(java.lang.Object entity)
entity
- to delete.public static void save(java.lang.Object entity)
entity
- to be stored in database.public static void remove(java.lang.Object entity)
entity
- to be removed from database.