Ontimize 5.2072EN

com.ontimize.gui.field
Class ReferenceFieldAttribute

java.lang.Object
  extended bycom.ontimize.gui.field.ReferenceFieldAttribute
All Implemented Interfaces:
java.io.Serializable

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

This class represents an attribute in a reference field.

Author:
Imatia Innovation
See Also:
Serialized Form

Field Summary
protected  java.lang.String attr
          The attribute name.
protected  java.lang.String cod
          The cod reference.
protected  java.util.Vector cols
          The cols reference.
protected  java.lang.String entityName
          The entity name.
 
Constructor Summary
ReferenceFieldAttribute(java.lang.String attr, java.lang.String entity, java.lang.String cod, java.util.Vector cols)
          The class constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAttr()
          Gets the name of attribute in the N-side of relation.
 java.lang.String getCod()
          Gets the name of column in the 1-side of relation.
 java.util.Vector getCols()
          Gets the columns to ask for the entity.
 java.lang.String getEntity()
          Gets the entity name.
 int hashCode()
           
static java.util.Hashtable processReferenceFieldAttribute(java.util.Hashtable keysValues)
          Processes the reference field attribute and returns a Hashtable where the ReferenceFieldAttribute keys will be replaced by their cods.
static java.util.Vector processReferenceFieldAttribute(java.util.Vector a)
          Processes the reference field attribute and returns a Vector where the getAttr()will be added.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cod

protected java.lang.String cod
The cod reference. By default, null.


entityName

protected java.lang.String entityName
The entity name. By default, null.


attr

protected java.lang.String attr
The attribute name. By default, null.


cols

protected java.util.Vector cols
The cols reference. By default, null.

Constructor Detail

ReferenceFieldAttribute

public ReferenceFieldAttribute(java.lang.String attr,
                               java.lang.String entity,
                               java.lang.String cod,
                               java.util.Vector cols)
The class constructor. Fixes the parameters.

Parameters:
attr - attribute name
entity - entity name
cod - cod reference
cols - column reference
Method Detail

getCod

public java.lang.String getCod()
Gets the name of column in the 1-side of relation.

Returns:
the cod

getEntity

public java.lang.String getEntity()
Gets the entity name.

Returns:
the entity name

getAttr

public java.lang.String getAttr()
Gets the name of attribute in the N-side of relation.

Returns:
the cod

getCols

public java.util.Vector getCols()
Gets the columns to ask for the entity.

Returns:
the cols

processReferenceFieldAttribute

public static java.util.Hashtable processReferenceFieldAttribute(java.util.Hashtable keysValues)
Processes the reference field attribute and returns a Hashtable where the ReferenceFieldAttribute keys will be replaced by their cods.

Parameters:
keysValues - the original Hashtable
Returns:
the replaced Hashtable

processReferenceFieldAttribute

public static java.util.Vector processReferenceFieldAttribute(java.util.Vector a)
Processes the reference field attribute and returns a Vector where the getAttr()will be added.

Parameters:
a - the original Vector
Returns:
the modified Vector

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

hashCode

public int hashCode()

Ontimize