com.ibm.itim.adhocreport
Class ColumnWrapper

java.lang.Object
  |
  +--com.ibm.itim.adhocreport.ColumnWrapper
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class ColumnWrapper
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

This class is a wrapper around the columns the user has mapped for reporting. One use is to store the Schema Designer mappings in the session. Note: this class has a natural ordering that is inconsistent with equals.

See Also:
Serialized Form

Field Summary
 int LENGTH_LIMIT
           
 int ZERO
           
 
Constructor Summary
ColumnWrapper(java.lang.String tableName, java.lang.String columnName, java.lang.String attributeName, boolean multivalued)
          Constructor method for the class.
 
Method Summary
 int compareTo(java.lang.Object obj)
          This method will compare the values of 2 ColumnWrapper objects.
 boolean equals(java.lang.Object obj)
          This method will compare the equality of 2 ColumnWrapper objects.
 java.lang.String getAttributeName()
          This method gets the Attribute Name.
 java.lang.String getColumnName()
          This method gets the Column Name.
 java.lang.String getTableName()
           
 boolean isMultiValued()
           
 void setAttributeName(java.lang.String attributeName)
          This method sets the Attribute Name.
 void setColumnName(java.lang.String name)
          This method sets the Column Name.
 void setMultiValued(boolean multiValued)
           
 void setTableName(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LENGTH_LIMIT

public int LENGTH_LIMIT

ZERO

public int ZERO
Constructor Detail

ColumnWrapper

public ColumnWrapper(java.lang.String tableName,
                     java.lang.String columnName,
                     java.lang.String attributeName,
                     boolean multivalued)
Constructor method for the class.
Parameters:
tableName - - The value for the Table Name.
columnName - - The value for the Column Name.
attributeName - - The actual ITIM directory server attribute name.
multivalued - - Indicates whether the attribute is multivalued.
Method Detail

getColumnName

public java.lang.String getColumnName()
This method gets the Column Name.
Returns:
java.lang.String

getTableName

public java.lang.String getTableName()

setTableName

public void setTableName(java.lang.String name)

setColumnName

public void setColumnName(java.lang.String name)
This method sets the Column Name.
Parameters:
name - - The value for the Column Name.

getAttributeName

public java.lang.String getAttributeName()
This method gets the Attribute Name.
Returns:
java.lang.String

setAttributeName

public void setAttributeName(java.lang.String attributeName)
This method sets the Attribute Name.
Parameters:
attributeName - - The value for the Attribute Name.

isMultiValued

public boolean isMultiValued()
Returns:
java.lang.Boolean
Since:
1.0 Returns whether the attribute is multiValued or not.

setMultiValued

public void setMultiValued(boolean multiValued)
Parameters:
multiValued - - Set true or false depending on whether the attribute can hold multiple values.
Since:
1.0 Set multiValued property of the column

equals

public boolean equals(java.lang.Object obj)
This method will compare the equality of 2 ColumnWrapper objects.
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object obj)
This method will compare the values of 2 ColumnWrapper objects. This method is needed to be implemented as part of the Comparable interface.
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object