com.konakart.app
Class Tag

java.lang.Object
  extended by com.konakart.app.Tag
All Implemented Interfaces:
TagIf

public class Tag
extends java.lang.Object
implements TagIf

An object that represents a tag used as metadata for products


Constructor Summary
Tag()
          Constructor
Tag(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Tag object from a Record object
 
Method Summary
 int getId()
           
 int getLanguageId()
           
 java.lang.String getName()
           
 int getNumProducts()
          The number of products for this tag
 int getSortOrder()
           
 boolean isSelected()
          This is set by the UI to determine whether a tag has been selected or not.
 void setId(int id)
           
 void setLanguageId(int languageId)
           
 void setName(java.lang.String name)
           
 void setNumProducts(int numProducts)
          The number of products for this tag
 void setSelected(boolean selected)
          This is set by the UI to determine whether a tag has been selected or not.
 void setSortOrder(int sortOrder)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tag

public Tag()
Constructor


Tag

public Tag(com.workingdogs.village.Record vr,
           org.apache.torque.util.Criteria c)
    throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Tag object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Tag object.

getId

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

setId

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

getLanguageId

public int getLanguageId()
Specified by:
getLanguageId in interface TagIf
Returns:
Returns the languageId.

setLanguageId

public void setLanguageId(int languageId)
Specified by:
setLanguageId in interface TagIf
Parameters:
languageId - The languageId to set.

getName

public java.lang.String getName()
Specified by:
getName in interface TagIf
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Specified by:
setName in interface TagIf
Parameters:
name - The name to set.

getSortOrder

public int getSortOrder()
Specified by:
getSortOrder in interface TagIf
Returns:
Returns the sortOrder.

setSortOrder

public void setSortOrder(int sortOrder)
Specified by:
setSortOrder in interface TagIf
Parameters:
sortOrder - The sortOrder to set.

isSelected

public boolean isSelected()
Description copied from interface: TagIf
This is set by the UI to determine whether a tag has been selected or not. It is not persisted in the database

Specified by:
isSelected in interface TagIf
Returns:
Returns the selected.

setSelected

public void setSelected(boolean selected)
Description copied from interface: TagIf
This is set by the UI to determine whether a tag has been selected or not. It is not persisted in the database

Specified by:
setSelected in interface TagIf
Parameters:
selected - The selected to set.

getNumProducts

public int getNumProducts()
Description copied from interface: TagIf
The number of products for this tag

Specified by:
getNumProducts in interface TagIf
Returns:
Returns the numProducts.

setNumProducts

public void setNumProducts(int numProducts)
Description copied from interface: TagIf
The number of products for this tag

Specified by:
setNumProducts in interface TagIf
Parameters:
numProducts - The numProducts to set.


Copyright © 2011 DS Data Systems UK Ltd.