public class RhnSetFactory extends HibernateFactory
Modifier and Type | Method and Description |
---|---|
static void |
cleanup(RhnSet set)
Cleanup the set.
|
static RhnSet |
createRhnSet(java.lang.Long userid,
java.lang.String label,
SetCleanup cleanup)
Returns a new RhnSet.
|
protected org.apache.log4j.Logger |
getLogger()
Get the Logger for the derived class so log messages show up on the
correct class
|
static RhnSet |
lookupByLabel(java.lang.Long uid,
java.lang.String label,
SetCleanup cleanup)
Finds the RhnSet which matches the given uid and label.
|
static void |
remove(RhnSet set)
Remove a set
|
static void |
removeByLabel(java.lang.Long userId,
java.lang.String label)
Removes a set by label and userid.
|
static void |
save(RhnSet set)
Persists the given RhnSet to the database.
|
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 RhnSet lookupByLabel(java.lang.Long uid, java.lang.String label, SetCleanup cleanup)
uid
- Userid of RhnSetlabel
- Label of RhnSetcleanup
- TODOpublic static RhnSet createRhnSet(java.lang.Long userid, java.lang.String label, SetCleanup cleanup)
userid
- userid associated with this set.label
- set label.cleanup
- the cleanup that should be run when the set is storedpublic static void save(RhnSet set)
set
- RhnSet to be persisted.public static void cleanup(RhnSet set)
set
- RhnSet to cleanup.public static void removeByLabel(java.lang.Long userId, java.lang.String label)
userId
- The userid associated with the set.label
- The set's label.public static void remove(RhnSet set)
set
- the set to remove