|
||||||||||
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.TransportUnitType
public class TransportUnitType
A TransportUnitType is a type of a certain TransportUnit
s.
Typically to store some static attributes of TransportUnit
s,
such as the length, the height, or the weight of TransportUnit
s.
It is possible to group and characterize TransportUnit
s.
TransportUnit
,
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 description of the TransportUnitType . |
static String |
NQ_FIND_ALL
Query to find all TransportUnitType s. |
static String |
NQ_FIND_BY_NAME
Query to find one TransportUnitType by its
natural key. |
Fields inherited from class org.openwms.core.domain.AbstractEntity |
---|
FIND_ALL, FIND_BY_ID |
Constructor Summary | |
---|---|
TransportUnitType(String type)
Create a new TransportUnitType . |
Method Summary | |
---|---|
boolean |
addTypePlacingRule(TypePlacingRule typePlacingRule)
Add a rule to the TransportUnitType . |
String |
getCompatibility()
Returns the compatibility of the TransportUnitType . |
String |
getDescription()
Returns the description of the TransportUnitType . |
int |
getHeight()
Returns the height of the TransportUnitType . |
Long |
getId()
Return the technical key value. |
int |
getLength()
Get the length of the TransportUnitType . |
BigDecimal |
getPayload()
Returns the payload of the TransportUnitType . |
Set<TransportUnit> |
getTransportUnits()
Returns a Set of all TransportUnit s belonging to the
TransportUnitType . |
String |
getType()
Returns the type of the TransportUnitType . |
Set<TypePlacingRule> |
getTypePlacingRules()
Returns all TypePlacingRule s belonging to the
TransportUnitType . |
Set<TypeStackingRule> |
getTypeStackingRules()
Returns a Set of all TypeStackingRule s. |
long |
getVersion()
Return the value of the optimistic locking field. |
BigDecimal |
getWeightMax()
Get the weightMax. |
BigDecimal |
getWeightTare()
Get the weightTare. |
int |
getWidth()
Returns the width of the TransportUnitType . |
boolean |
isNew()
Check whether the instance is a transient or persisted one. |
boolean |
removeTypePlacingRule(TypePlacingRule typePlacingRule)
Remove a TypePlacingRule from the collection or rules. |
void |
setCompatibility(String compatibility)
Set the compatibility of the TransportUnitType . |
void |
setDescription(String description)
Set the description for the TransportUnitType . |
void |
setHeight(int height)
Set the height of the TransportUnitType . |
void |
setLength(int length)
Set the length of the TransportUnitType . |
void |
setPayload(BigDecimal payload)
Set the payload of the TransportUnitType . |
void |
setTransportUnits(Set<TransportUnit> transportUnits)
Assign a Set of TransportUnit s to the
TransportUnitType . |
void |
setType(String type)
Set the type of the TransportUnitType . |
void |
setTypePlacingRules(Set<TypePlacingRule> typePlacingRules)
Assign a Set of TypePlacingRule s to the
TransportUnitType . |
void |
setTypeStackingRules(Set<TypeStackingRule> typeStackingRules)
Assign a Set of TypeStackingRule s. |
void |
setWeightMax(BigDecimal weightMax)
Set the weightMax. |
void |
setWeightTare(BigDecimal weightTare)
Set the weightTare. |
void |
setWidth(int width)
Set the width of the TransportUnitType . |
String |
toString()
Returns the type. |
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
TransportUnitType
s.
public static final String NQ_FIND_BY_NAME
TransportUnitType
by its
natural key.
TransportUnitType
to search for.
public static final String DEF_TYPE_DESCRIPTION
TransportUnitType
. Default
value}.
Constructor Detail |
---|
public TransportUnitType(String type)
TransportUnitType
.
type
- Unique nameMethod Detail |
---|
public String getType()
TransportUnitType
.
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 void setType(String type)
TransportUnitType
.
type
- The type to setpublic int getWidth()
TransportUnitType
.
public void setWidth(int width)
TransportUnitType
.
width
- The width to setpublic String getDescription()
TransportUnitType
.
public void setDescription(String description)
TransportUnitType
.
description
- The description to setpublic int getHeight()
TransportUnitType
.
public void setHeight(int height)
TransportUnitType
.
height
- The height to setpublic BigDecimal getPayload()
TransportUnitType
.
public void setPayload(BigDecimal payload)
TransportUnitType
.
payload
- The payload to setpublic String getCompatibility()
TransportUnitType
.
public void setCompatibility(String compatibility)
TransportUnitType
.
compatibility
- The compatibility to setpublic int getLength()
TransportUnitType
.
public void setLength(int length)
TransportUnitType
.
length
- The length to setpublic Set<TransportUnit> getTransportUnits()
TransportUnit
s belonging to the
TransportUnitType
.
TransportUnit
s belonging to the
TransportUnitType
public void setTransportUnits(Set<TransportUnit> transportUnits)
TransportUnit
s to the
TransportUnitType
. Already existing TransportUnit
s
will be removed.
transportUnits
- A Set of TransportUnit
s.public boolean addTypePlacingRule(TypePlacingRule typePlacingRule)
TransportUnitType
. A
TypePlacingRule
determines what TransportUnitType
s
can be placed on which locations.
typePlacingRule
- The rule to set
true
when the rule was added gracefully, otherwise
false
public boolean removeTypePlacingRule(TypePlacingRule typePlacingRule)
TypePlacingRule
from the collection or rules.
typePlacingRule
- The rule to be removed
true
when the rule was removed gracefully, otherwise
false
public Set<TypePlacingRule> getTypePlacingRules()
TypePlacingRule
s belonging to the
TransportUnitType
.
public void setTypePlacingRules(Set<TypePlacingRule> typePlacingRules)
TypePlacingRule
s to the
TransportUnitType
. Already existing TypePlacingRule
s
will be removed.
typePlacingRules
- The rules to setpublic Set<TypeStackingRule> getTypeStackingRules()
TypeStackingRule
s. A
TypeStackingRule
determines which other
TransportUnitType
s can be placed on the
TransportUnitType
.
public void setTypeStackingRules(Set<TypeStackingRule> typeStackingRules)
TypeStackingRule
s. A TypeStackingRule
determines which TransportUnitType
s can be placed on the
TransportUnitType
. Already existing TypeStackingRule
s will be removed.
typeStackingRules
- The rules to setpublic BigDecimal getWeightTare()
public void setWeightTare(BigDecimal weightTare)
weightTare
- The weightTare to set.public BigDecimal getWeightMax()
public void setWeightMax(BigDecimal weightMax)
weightMax
- The weightMax to set.public 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 |