atg.commerce.order
Class RelationshipTypes

java.lang.Object
  extended by atg.commerce.order.RelationshipTypes
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
B2BRelationshipTypes

public class RelationshipTypes
extends java.lang.Object
implements java.io.Serializable

This class contains the Relationship type constants for all the different types of relationships. Assigning different values to all the relationship types is a requirement because we need to be sure that we don't mistakingly assign an invalid type to a given Relationship object.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static int ORDERAMOUNT
           
static java.lang.String ORDERAMOUNT_STR
           
static int ORDERAMOUNTREMAINING
           
static java.lang.String ORDERAMOUNTREMAINING_STR
           
static int PAYMENTAMOUNT
           
static java.lang.String PAYMENTAMOUNT_STR
           
static int PAYMENTAMOUNTREMAINING
           
static java.lang.String PAYMENTAMOUNTREMAINING_STR
           
static int SHIPPINGAMOUNT
           
static java.lang.String SHIPPINGAMOUNT_STR
           
static int SHIPPINGAMOUNTREMAINING
           
static java.lang.String SHIPPINGAMOUNTREMAINING_STR
           
static int SHIPPINGQUANTITY
           
static java.lang.String SHIPPINGQUANTITY_STR
           
static int SHIPPINGQUANTITYREMAINING
           
static java.lang.String SHIPPINGQUANTITYREMAINING_STR
           
static int TAXAMOUNT
           
static java.lang.String TAXAMOUNT_STR
           
static int TAXAMOUNTREMAINING
           
static java.lang.String TAXAMOUNTREMAINING_STR
           
 
Constructor Summary
RelationshipTypes()
           
 
Method Summary
static int stringToType(java.lang.String pType)
          Given a RelationshipType String, this method will return the corresponding integer for that type
static java.lang.String typeToString(int pType)
          Given a RelationshipType state, this method will return a textual String name for that type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


SHIPPINGQUANTITY

public static final int SHIPPINGQUANTITY
See Also:
Constant Field Values

SHIPPINGQUANTITYREMAINING

public static final int SHIPPINGQUANTITYREMAINING
See Also:
Constant Field Values

PAYMENTAMOUNT

public static final int PAYMENTAMOUNT
See Also:
Constant Field Values

PAYMENTAMOUNTREMAINING

public static final int PAYMENTAMOUNTREMAINING
See Also:
Constant Field Values

SHIPPINGAMOUNT

public static final int SHIPPINGAMOUNT
See Also:
Constant Field Values

SHIPPINGAMOUNTREMAINING

public static final int SHIPPINGAMOUNTREMAINING
See Also:
Constant Field Values

ORDERAMOUNT

public static final int ORDERAMOUNT
See Also:
Constant Field Values

TAXAMOUNT

public static final int TAXAMOUNT
See Also:
Constant Field Values

ORDERAMOUNTREMAINING

public static final int ORDERAMOUNTREMAINING
See Also:
Constant Field Values

TAXAMOUNTREMAINING

public static final int TAXAMOUNTREMAINING
See Also:
Constant Field Values

SHIPPINGQUANTITY_STR

public static final java.lang.String SHIPPINGQUANTITY_STR
See Also:
Constant Field Values

SHIPPINGQUANTITYREMAINING_STR

public static final java.lang.String SHIPPINGQUANTITYREMAINING_STR
See Also:
Constant Field Values

PAYMENTAMOUNT_STR

public static final java.lang.String PAYMENTAMOUNT_STR
See Also:
Constant Field Values

PAYMENTAMOUNTREMAINING_STR

public static final java.lang.String PAYMENTAMOUNTREMAINING_STR
See Also:
Constant Field Values

SHIPPINGAMOUNT_STR

public static final java.lang.String SHIPPINGAMOUNT_STR
See Also:
Constant Field Values

SHIPPINGAMOUNTREMAINING_STR

public static final java.lang.String SHIPPINGAMOUNTREMAINING_STR
See Also:
Constant Field Values

ORDERAMOUNT_STR

public static final java.lang.String ORDERAMOUNT_STR
See Also:
Constant Field Values

TAXAMOUNT_STR

public static final java.lang.String TAXAMOUNT_STR
See Also:
Constant Field Values

ORDERAMOUNTREMAINING_STR

public static final java.lang.String ORDERAMOUNTREMAINING_STR
See Also:
Constant Field Values

TAXAMOUNTREMAINING_STR

public static final java.lang.String TAXAMOUNTREMAINING_STR
See Also:
Constant Field Values
Constructor Detail

RelationshipTypes

public RelationshipTypes()
Method Detail

typeToString

public static java.lang.String typeToString(int pType)
Given a RelationshipType state, this method will return a textual String name for that type.

Parameters:
pType - the relationship type to convert to a String
Returns:
a String representation of the type

stringToType

public static int stringToType(java.lang.String pType)
Given a RelationshipType String, this method will return the corresponding integer for that type

Parameters:
pType - the String to convert to a type
Returns:
the type which the String represents