|
|
|
|
|
||||||||||
| 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.PaymentMethod
@Entity(name="checkout_PaymentMethod") public class PaymentMethod
The PaymentMethod.
| Constructor Summary | |
|---|---|
protected |
PaymentMethod()
Deprecated. |
|
PaymentMethod(PaymentMethod pm)
The copy constructor. |
|
PaymentMethod(java.lang.String n,
java.lang.String idc)
Creates a new PaymentMethod from the given name and id code. |
|
PaymentMethod(java.lang.String n,
java.lang.String idc, Price p)
Creates a new PaymentMethod from the given name, id code and
Price. |
| Method Summary | |
|---|---|
int |
compareTo(PaymentMethod pm)
Compares this PaymentMethod with the given
PaymentMethod for order. |
boolean |
equals(java.lang.Object o)
Determines whether the given Object is equal to this
PaymentMethod. |
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 PaymentMethod. |
java.lang.String |
toString()
Returns the String representation of this PaymentMethod. |
| 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 PaymentMethod()
public PaymentMethod(PaymentMethod pm)
pm - the PaymentMethod to be copied.
java.lang.IllegalArgumentException - if the given PaymentMethod is null.
public PaymentMethod(java.lang.String n,
java.lang.String idc)
PaymentMethod 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 PaymentMethod(java.lang.String n,
java.lang.String idc, Price p)
PaymentMethod 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(PaymentMethod pm)
this PaymentMethod with the given
PaymentMethod for order.
compareTo in interface java.lang.Comparable<PaymentMethod>pm - the PaymentMethod to be compared.
this
PaymentMethod is less than, equal to, or greater than the
given PaymentMethod.
java.lang.IllegalArgumentException - if the given PaymentMethod is null.public java.lang.String toString()
String representation of this PaymentMethod.
toString in class java.lang.ObjectString representation.public boolean equals(java.lang.Object o)
Object is equal to this
PaymentMethod. Two PaymentMethods 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 PaymentMethod.public int hashCode()
PaymentMethod.
hashCode in class AbstractBasicEntityAbstractBasicEntity.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||