|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.domain.AbstractEntity
org.openwms.core.domain.Module
public class Module
A Module represents an Adobe Flex Module and is used to store some basic information about that module, i.e. a name, an URL where the module from, or whether the Adobe Flex Module should be loaded on application startup.
AbstractEntity
,
DomainObject
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity |
---|
AbstractEntity.AbstractEntityListener |
Field Summary | |
---|---|
static String |
NQ_FIND_ALL
Query to find all Module s. |
static String |
NQ_FIND_BY_UNIQUE_QUERY
Query to find one Module by its natural
key. |
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
protected |
Module()
Create a new Module. |
|
Module(String moduleName,
String url)
Create a new Module . |
Method Summary | |
---|---|
String |
getDescription()
Get the description . |
Long |
getId()
Get the id . |
String |
getModuleName()
Get the moduleName . |
int |
getStartupOrder()
Get the startupOrder . |
String |
getUrl()
Get the url . |
long |
getVersion()
Return the value of the optimistic locking field. |
boolean |
isLoaded()
Is the Module currently loaded. |
boolean |
isLoadOnStartup()
Should the Module be loaded on application startup. |
boolean |
isNew()
Check whether the instance is a transient or persisted one. |
void |
setDescription(String description)
Set the description . |
void |
setLoaded(boolean loaded)
Set the loaded flag. |
void |
setLoadOnStartup(boolean loadOnStartup)
Set the loadOnStartup flag. |
void |
setModuleName(String moduleName)
Set the moduleName . |
void |
setStartupOrder(int startupOrder)
Set the startupOrder . |
void |
setUrl(String url)
Set the url . |
String |
toString()
Returns the moduleName . |
Methods inherited from class org.openwms.core.domain.AbstractEntity |
---|
equals, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NQ_FIND_ALL
Module
s. Name is "Module.findAll" .
public static final String NQ_FIND_BY_UNIQUE_QUERY
Module
by its natural
key. moduleName
of
the Module
to search for
Constructor Detail |
---|
protected Module()
public Module(String moduleName, String url)
Module
.
moduleName
- The unique Module
nameurl
- The unique URL
IllegalArgumentException
- in case the new moduleName is null
or emptyMethod Detail |
---|
public boolean isNew()
isNew
in interface DomainObject<Long>
true
if transient (not persisted before), otherwise
false
public String getModuleName()
moduleName
.
public void setModuleName(String moduleName)
moduleName
.
moduleName
- The moduleName to set
IllegalArgumentException
- in case the new moduleName is null
or emptypublic String getUrl()
url
.
public void setUrl(String url)
url
.
url
- The url to set
IllegalArgumentException
- in case the new url is null
or emptypublic Long getId()
id
.
getId
in interface DomainObject<Long>
public boolean isLoaded()
Module
currently loaded.
true
if loaded, otherwise false
public void setLoaded(boolean loaded)
loaded
flag.
loaded
- The loaded to setpublic String getDescription()
description
.
public void setDescription(String description)
description
.
description
- The description to setpublic boolean isLoadOnStartup()
Module
be loaded on application startup.
true
if the Module
should be loaded on
application startup, otherwise false
public void setLoadOnStartup(boolean loadOnStartup)
loadOnStartup
flag.
loadOnStartup
- The loadOnStartup to setpublic int getStartupOrder()
startupOrder
.
public void setStartupOrder(int startupOrder)
startupOrder
.
startupOrder
- The startupOrder to setpublic long getVersion()
getVersion
in interface DomainObject<Long>
public String toString()
moduleName
.
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |