org.openwms.common.domain.system
Class UnitError

java.lang.Object
  extended by org.openwms.core.domain.AbstractEntity
      extended by org.openwms.common.domain.system.UnitError
All Implemented Interfaces:
Serializable, DomainObject<Long>

public class UnitError
extends AbstractEntity
implements DomainObject<Long>

An UnitError represents an error occurring on TransportUnits, on LoadUnits or others.

Since:
0.1
Version:
$Revision: 1587 $
Author:
Heiko Scherrer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openwms.core.domain.AbstractEntity
AbstractEntity.AbstractEntityListener
 
Field Summary
 
Fields inherited from class org.openwms.core.domain.AbstractEntity
FIND_ALL, FIND_BY_ID
 
Constructor Summary
UnitError()
          Create a new UnitError.
UnitError(String errorNo)
          Create a new UnitError with an error number.
 
Method Summary
 String getErrorNo()
          Return the error number.
 String getErrorText()
          Return the error text.
 Long getId()
          Return the technical key value.
 long getVersion()
          Return the value of the optimistic locking field.
 boolean isNew()
          Check whether the instance is a transient or persisted one.
 void setErrorNo(String errorNo)
          Set the error number.
 void setErrorText(String errorText)
          Set the error text.
 
Methods inherited from class org.openwms.core.domain.AbstractEntity
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitError

public UnitError()
Create a new UnitError.


UnitError

public UnitError(String errorNo)
Create a new UnitError with an error number.

Parameters:
errorNo - The error number
Method Detail

getId

public Long getId()
Return the technical key value.

Specified by:
getId in interface DomainObject<Long>
Returns:
The technical, unique key

isNew

public boolean isNew()
Check whether the instance is a transient or persisted one.

Specified by:
isNew in interface DomainObject<Long>
Returns:
true if transient (not persisted before), otherwise false

getErrorNo

public String getErrorNo()
Return the error number.

Returns:
The error number

setErrorNo

public void setErrorNo(String errorNo)
Set the error number.

Parameters:
errorNo - The errorNo to set.

getErrorText

public String getErrorText()
Return the error text.

Returns:
The error text

setErrorText

public void setErrorText(String errorText)
Set the error text.

Parameters:
errorText - The errorText to set.

getVersion

public long getVersion()
Return the value of the optimistic locking field.

Specified by:
getVersion in interface DomainObject<Long>
Returns:
the version number


Copyright © 2005-2011 openwms.org. All Rights Reserved.