com.konakartadmin.app
Class AdminProductOption

java.lang.Object
  extended by com.konakartadmin.app.AdminProductOption
All Implemented Interfaces:
AdminObjectIf

public class AdminProductOption
extends java.lang.Object
implements AdminObjectIf

Product Option object for the Admin App


Field Summary
private  java.lang.String custom1
          custom field
private  java.lang.String custom2
          custom field
private  int id
          id
private  int languageId
          languageId
private  java.lang.String name
          name
private  int type
          type of option
static int TYPE_SIMPLE
          Constant to define the Option type
static int TYPE_VARIABLE_QUANTITY
          Constant to define the Option type.
private  AdminProductOptionValue[] values
          Array of values
 
Constructor Summary
AdminProductOption()
          Constructor
AdminProductOption(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
           
 
Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 int getId()
           
 int getLanguageId()
           
 java.lang.String getName()
           
 int getType()
          The type of option.
 AdminProductOptionValue[] getValues()
           
 void setCustom1(java.lang.String custom1)
           
 void setCustom2(java.lang.String custom2)
           
 void setId(int id)
           
 void setLanguageId(int languageId)
           
 void setName(java.lang.String name)
           
 void setType(int type)
          The type of option.
 void setValues(AdminProductOptionValue[] values)
           
 java.lang.String toString()
           
 java.lang.String toStringBrief()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_SIMPLE

public static final int TYPE_SIMPLE
Constant to define the Option type

See Also:
Constant Field Values

TYPE_VARIABLE_QUANTITY

public static final int TYPE_VARIABLE_QUANTITY
Constant to define the Option type. In this case a quantity may be defined for the option. (i.e. Number of megabytes)

See Also:
Constant Field Values

id

private int id
id


languageId

private int languageId
languageId


name

private java.lang.String name
name


type

private int type
type of option


custom1

private java.lang.String custom1
custom field


custom2

private java.lang.String custom2
custom field


values

private AdminProductOptionValue[] values
Array of values

Constructor Detail

AdminProductOption

public AdminProductOption()
Constructor


AdminProductOption

public AdminProductOption(com.workingdogs.village.Record vr,
                          org.apache.torque.util.Criteria c)
                   throws com.workingdogs.village.DataSetException
Parameters:
vr -
c -
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Specified by:
toString in interface AdminObjectIf
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Option object.

toStringBrief

public java.lang.String toStringBrief()
Returns:
Returns a brief string containing the attributes of the Option object.

getId

public int getId()
Specified by:
getId in interface AdminObjectIf
Returns:
Returns the id.

setId

public void setId(int id)
Specified by:
setId in interface AdminObjectIf
Parameters:
id - The id to set.

getLanguageId

public int getLanguageId()
Returns:
Returns the languageId.

setLanguageId

public void setLanguageId(int languageId)
Parameters:
languageId - The languageId to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getValues

public AdminProductOptionValue[] getValues()
Returns:
Returns the values.

setValues

public void setValues(AdminProductOptionValue[] values)
Parameters:
values - The values to set.

getType

public int getType()
The type of option. Valid types are

Returns:
the type

setType

public void setType(int type)
The type of option. Valid types are

Parameters:
type - the type to set

getCustom1

public java.lang.String getCustom1()
Returns:
the custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Parameters:
custom1 - the custom1 to set

getCustom2

public java.lang.String getCustom2()
Returns:
the custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Parameters:
custom2 - the custom2 to set


Copyright © 2011 DS Data Systems UK Ltd.