|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.shop.checkout.DispatchType
@Entity(name="checkout_DispatchType") public class DispatchType
The DispatchType.
| Constructor Summary | |
|---|---|
protected |
DispatchType()
Deprecated. |
|
DispatchType(DispatchType dt)
The copy constructor. |
|
DispatchType(java.lang.String n,
java.lang.String idc)
Creates a new DispatchType from the given name and id code. |
|
DispatchType(java.lang.String n,
java.lang.String idc, Price p)
Creates a new DispatchType from the given name, id code and
Price. |
| Method Summary | |
|---|---|
int |
compareTo(DispatchType dt)
Compares this DispatchType with the given
DispatchType for order. |
boolean |
equals(java.lang.Object o)
Determines whether the given Object is equal to this
DispatchType. |
java.lang.String |
getIdCode()
Returns the id code. |
java.lang.String |
getName()
Returns the name. |
Price |
getPrice()
Returns the Price. |
int |
hashCode()
Returns the hash code for this DispatchType. |
java.lang.String |
toString()
Returns the String representation of this
DispatchType. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, getFullQualifiedClassNameJAXB, getId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected DispatchType()
public DispatchType(DispatchType dt)
dt - the DispatchType to be copied.
java.lang.IllegalArgumentException - if the given DispatchType is null.
public DispatchType(java.lang.String n,
java.lang.String idc)
DispatchType from the given name and id code.
n - the name.idc - the id code.
java.lang.IllegalArgumentException - if the given name or id code is null.
public DispatchType(java.lang.String n,
java.lang.String idc, Price p)
DispatchType from the given name, id code and
Price.
n - the name.idc - the id code.p - the Price.
java.lang.IllegalArgumentException - if the given name or id code is null.| Method Detail |
|---|
public final java.lang.String getName()
public final java.lang.String getIdCode()
public final Price getPrice()
Price.
Price.public int compareTo(DispatchType dt)
this DispatchType with the given
DispatchType for order.
compareTo in interface java.lang.Comparable<DispatchType>dt - the DispatchType to be compared.
this
DispatchType is less than, equal to, or greater than the
given DispatchType.
java.lang.IllegalArgumentException - if the given DispatchType is null.public java.lang.String toString()
String representation of this
DispatchType.
toString in class java.lang.ObjectString representation.public boolean equals(java.lang.Object o)
Object is equal to this
DispatchType. Two DispatchTypes are considered equal, if
their names, id codes and Prices are equal.
equals in class AbstractBasicEntityo - the Object.
true, if the given Object is equal to
this DispatchType.public int hashCode()
DispatchType.
hashCode in class AbstractBasicEntityAbstractBasicEntity.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||