|
||||||||||
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.common.domain.LocationType
public class LocationType
A LocationType is the type of Location
s with same
characteristics.
Location
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity |
---|
AbstractEntity.AbstractEntityListener |
Field Summary | |
---|---|
static String |
DEF_TYPE_DESCRIPTION
Default value of the description, by default * "--" . |
static String |
NQ_FIND_ALL
Query to find all LocationType s. |
static String |
NQ_FIND_BY_UNIQUE_QUERY
Query to find one LocationType by its
natural key. |
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
LocationType(String type)
Create a new LocationType with an unique natural key. |
Method Summary | |
---|---|
String |
getDescription()
Returns the description of this LocationType . |
int |
getHeight()
Returns the height of the LocationType . |
Long |
getId()
Return the technical key value. |
int |
getLength()
Returns the length of the LocationType . |
String |
getType()
Returns the unique identifier of the LocationType . |
long |
getVersion()
Return the value of the optimistic locking field. |
int |
getWidth()
Returns the width of this LocationType . |
boolean |
isNew()
Check whether the instance is a transient or persisted one. |
void |
setDescription(String description)
Set the description of the LocationType . |
void |
setHeight(int height)
Set the height of this LocationType . |
void |
setLength(int length)
Set the length of this LocationType . |
void |
setWidth(int width)
Set the width of this LocationType . |
String |
toString()
Return the type as String. |
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
LocationType
s.
public static final String NQ_FIND_BY_UNIQUE_QUERY
LocationType
by its
natural key.
LocationType
to search for.
public static final String DEF_TYPE_DESCRIPTION
Constructor Detail |
---|
public LocationType(String type)
LocationType
with an unique natural key.
type
- Unique typeMethod Detail |
---|
public Long getId()
getId
in interface DomainObject<Long>
public boolean isNew()
isNew
in interface DomainObject<Long>
true
if transient (not persisted before), otherwise
false
public String getType()
LocationType
.
public int getLength()
LocationType
.
public void setLength(int length)
LocationType
.
length
- The length of this typepublic int getWidth()
LocationType
.
public void setWidth(int width)
LocationType
.
width
- The width of this typepublic String getDescription()
LocationType
.
public void setDescription(String description)
LocationType
.
description
- The description text of this typepublic int getHeight()
LocationType
.
public void setHeight(int height)
LocationType
.
height
- The height of this typepublic long getVersion()
getVersion
in interface DomainObject<Long>
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |