public class ChannelFamilyFactory extends HibernateFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROXY_CHANNEL_FAMILY_LABEL |
static java.lang.String |
SATELLITE_CHANNEL_FAMILY_LABEL |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.log4j.Logger |
getLogger()
Get the Logger for the derived class so log messages
show up on the correct class
|
static ChannelFamily |
lookupById(java.lang.Long id)
Lookup a ChannelFamily by its id
|
static ChannelFamily |
lookupByLabel(java.lang.String label,
Org org)
Lookup a ChannelFamily by its label
|
static java.util.List |
lookupByLabelLike(java.lang.String label,
Org orgIn)
Lookup the List of ChannelFamily objects that are labled starting
with the passed in label param
|
static ChannelFamily |
lookupByOrg(Org orgIn)
Lookup a ChannelFamily by org - this is the org's private
channel family, which has all of the org's custom channels in
it.
|
static ChannelFamily |
lookupOrCreatePrivateFamily(Org orgIn)
Checks that an org has a channel family associated with it.
|
static void |
remove(ChannelFamily cfam)
Remove a ChannelFamily from the DB
|
static void |
save(ChannelFamily cfam)
Insert or Update a ChannelFamily.
|
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, stringToByteArraypublic static final java.lang.String SATELLITE_CHANNEL_FAMILY_LABEL
public static final java.lang.String PROXY_CHANNEL_FAMILY_LABEL
protected org.apache.log4j.Logger getLogger()
getLogger in class HibernateFactorypublic static ChannelFamily lookupById(java.lang.Long id)
id - the id to search forpublic static ChannelFamily lookupByLabel(java.lang.String label, Org org)
label - the label to search fororg - the Org the Family belongs to, use null if looking for
official RedHat ChannelFamiliespublic static ChannelFamily lookupByOrg(Org orgIn)
orgIn - the org who's family this ispublic static ChannelFamily lookupOrCreatePrivateFamily(Org orgIn)
orgIn - the org to verifypublic static void save(ChannelFamily cfam)
cfam - ChannelFamily to be stored in database.public static void remove(ChannelFamily cfam)
cfam - ChannelFamily to be removed from database.public static java.util.List lookupByLabelLike(java.lang.String label,
Org orgIn)
label - to query againstorgIn - owning the Channel. Pass in NULL if you want a NULL org channel