public class TokenFactory extends HibernateFactory
Constructor and Description |
---|
TokenFactory() |
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 java.util.List<Token> |
listByServer(Server server)
Lookup a Token for the given Server
|
static Token |
lookup(java.lang.Long id,
Org org)
Lookup an token by id
You probably want ActivationKeyFactory.lookupById() instead.
|
static Token |
lookupById(java.lang.Long id)
Lookup an token by id
You probably want ActivationKeyFactory.lookupById() instead.
|
static void |
removeToken(Token token)
Delete a regtoken
|
static void |
save(Token tokenIn)
Saves a token 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
public static Token lookupById(java.lang.Long id)
id
- the id to search forpublic static Token lookup(java.lang.Long id, Org org)
id
- the id to search fororg
- the org to whom the token belongs topublic static java.util.List<Token> listByServer(Server server)
server
- to lookup the Token forpublic static void save(Token tokenIn)
tokenIn
- The Token to save.protected org.apache.log4j.Logger getLogger()
getLogger
in class HibernateFactory
public static void removeToken(Token token)
token
- to delete