public class CommonFactory extends HibernateFactory
Modifier and Type | Method and Description |
---|---|
static FileList |
createFileList()
Create a new FileList
|
static TinyUrl |
createTinyUrl(java.lang.String urlIn,
java.util.Date expires)
Create a TinyUrl
|
protected org.apache.log4j.Logger |
getLogger()
Get the Logger for the derived class so log messages
show up on the correct class
|
static FileList |
lookupFileList(java.lang.Long idIn,
Org org)
Lookup a FileList from the DB.
|
static FileList |
lookupFileList(java.lang.String labelIn,
Org org)
Lookup a FileList from the DB.
|
static TinyUrl |
lookupTinyUrl(java.lang.String tokenIn)
Lookup a TinyUrl by its "token"
|
static int |
removeFileList(FileList fIn)
Remove a FileList from the DB.
|
static void |
saveFileList(FileList fIn)
Save a FileList to the DB.
|
static void |
saveTinyUrl(TinyUrl urlIn)
Save a TinyUrl to the DB
|
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 void saveFileList(FileList fIn)
fIn
- FileList to savepublic static FileList createFileList()
public static int removeFileList(FileList fIn)
fIn
- FileLIst to removepublic static FileList lookupFileList(java.lang.Long idIn, Org org)
idIn
- to lookuporg
- to lookup inpublic static FileList lookupFileList(java.lang.String labelIn, Org org)
labelIn
- to lookuporg
- to lookup inpublic static TinyUrl createTinyUrl(java.lang.String urlIn, java.util.Date expires)
urlIn
- to tinyfyexpires
- the date we *ADD* 6 hours to to set the expiration on the URLpublic static void saveTinyUrl(TinyUrl urlIn)
urlIn
- to save.public static TinyUrl lookupTinyUrl(java.lang.String tokenIn)
tokenIn
- to lookup by