it.eng.qbe.model.structure
Class DataMartField

java.lang.Object
  extended by it.eng.qbe.model.structure.DataMartField

public class DataMartField
extends java.lang.Object

The Class DataMartField.

Author:
Andrea Gioia

Constructor Summary
DataMartField(java.lang.String name, DataMartEntity parent)
          Instantiates a new data mart field.
 
Method Summary
 java.lang.String getDatamartName()
          Gets the datamart name.
 long getId()
          Gets the id.
 int getLength()
          Gets the length.
 java.lang.String getName()
          Gets the name.
 DataMartEntity getParent()
          Gets the parent.
 int getPrecision()
          Gets the precision.
 java.lang.String getQueryName()
          Gets the query name.
 java.lang.String getType()
          Gets the type.
 java.lang.String getUniqueName()
          Gets the unique name.
 boolean isKey()
          Checks if is key.
 void setDatamartName(java.lang.String datamartName)
          Sets the datamart name.
 void setId(long id)
          Sets the id.
 void setKey(boolean key)
          Sets the key.
 void setLength(int length)
          Sets the length.
 void setName(java.lang.String name)
          Sets the name.
 void setParent(DataMartEntity parent)
          Sets the parent.
 void setPrecision(int precision)
          Sets the precision.
 void setType(java.lang.String type)
          Sets the type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataMartField

public DataMartField(java.lang.String name,
                     DataMartEntity parent)
Instantiates a new data mart field.

Parameters:
name - the name
parent - the parent
Method Detail

getUniqueName

public java.lang.String getUniqueName()
Gets the unique name.

Returns:
the unique name

getQueryName

public java.lang.String getQueryName()
Gets the query name.

Returns:
the query name

toString

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

getId

public long getId()
Gets the id.

Returns:
the id

setId

public void setId(long id)
Sets the id.

Parameters:
id - the new id

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the name.

Parameters:
name - the new name

getDatamartName

public java.lang.String getDatamartName()
Gets the datamart name.

Returns:
the datamart name

setDatamartName

public void setDatamartName(java.lang.String datamartName)
Sets the datamart name.

Parameters:
datamartName - the new datamart name

getType

public java.lang.String getType()
Gets the type.

Returns:
the type

setType

public void setType(java.lang.String type)
Sets the type.

Parameters:
type - the new type

getLength

public int getLength()
Gets the length.

Returns:
the length

setLength

public void setLength(int length)
Sets the length.

Parameters:
length - the new length

getPrecision

public int getPrecision()
Gets the precision.

Returns:
the precision

setPrecision

public void setPrecision(int precision)
Sets the precision.

Parameters:
precision - the new precision

getParent

public DataMartEntity getParent()
Gets the parent.

Returns:
the parent

setParent

public void setParent(DataMartEntity parent)
Sets the parent.

Parameters:
parent - the new parent

isKey

public boolean isKey()
Checks if is key.

Returns:
true, if is key

setKey

public void setKey(boolean key)
Sets the key.

Parameters:
key - the new key