pt.moredata.dao
Class DataMetaField

java.lang.Object
  extended bypt.moredata.dao.core.GenericMetaField
      extended bypt.moredata.dao.core.PublicGenericMetaField
          extended bypt.moredata.dao.DataMetaField
All Implemented Interfaces:
MetaField
Direct Known Subclasses:
DDataMetaField

Deprecated. This class was replaced by MetaField interface and GenericMetaField class.

public class DataMetaField
extends PublicGenericMetaField

This is the interface used for representing one column of the DataAccessObject. Company MoreData

Version:
$Revision: 1.7 $
Author:
pcarmo

Field Summary
 
Fields inherited from class pt.moredata.dao.core.PublicGenericMetaField
_tableAlias, _tableName, specialTypesNames
 
Fields inherited from interface pt.moredata.dao.MetaField
NONE, SERIAL
 
Constructor Summary
DataMetaField(MetaField metaField)
          Deprecated.  
DataMetaField(java.lang.String columnName)
          Deprecated. Cria uma novoa representação de uma coluna de uma tabela.
DataMetaField(java.lang.String tableName, java.lang.String columnName)
          Deprecated. Cria uma novoa representação de uma coluna de uma tabela.
 
Method Summary
 void dump(java.lang.String _prefix)
          Deprecated.  
 boolean getAcceptNulls()
          Deprecated. Use method isAcceptNull() instead.
 int getDataSetIndex()
          Deprecated. Use method getDAOIndex() instead.
 java.lang.Object getFixedValue()
          Deprecated. Use the method getDefaultValue() instead.
 boolean getIsUpdateable()
          Deprecated. Use method isUpdateable() instead.
 int getNumChars()
          Deprecated. Use method getLength() instead.
 java.lang.Object getQueryValue()
          Deprecated. This method will be removed and will not have a replacment.
 void setAcceptNulls(boolean acceptNulls)
          Deprecated. Use method setAcceptNull(boolean acceptNull) instead.
 void setDataSetIndex(int dataSetIndex)
          Deprecated. Use method setDAOIndex(int index) instead.
 void setFixedValue(java.lang.Object value)
          Deprecated. Use the method setDefaultValue(Object value) instead.
 void setIsUpdateable(boolean isUpdateable)
          Deprecated. Use method setUpdateable(boolean isUpdateable) instead.
 void setNumChars(int numChars)
          Deprecated. Use method setLength(int numChars) instead.
 void setQueryValue(java.lang.Object queryValue)
          Deprecated. This method will be removed and will not have a replacment.
 
Methods inherited from class pt.moredata.dao.core.PublicGenericMetaField
equals, getColumnName, getDAOIndex, getDataType, getDataTypeInfo, getDefaultValue, getLabel, getLength, getQueryPolicy, getSpecialType, getTableAlias, getTableName, getTableNameOrAlias, isAcceptNull, isCounter, isDefaultValueEngineProcessed, isFK, isIncludeInQuery, isPK, isRepositoryField, isUpdateable, setAcceptNull, setCounter, setDAOIndex, setDataType, setDataTypeInfo, setDefaultValue, setDefaultValueEngineProcessed, setFK, setIncludeInQuery, setLabel, setLength, setPK, setQueryPolicy, setRepositoryField, setSpecialType, setUpdateable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataMetaField

public DataMetaField(java.lang.String tableName,
                     java.lang.String columnName)
              throws java.lang.NullPointerException
Deprecated. 
Cria uma novoa representação de uma coluna de uma tabela.

Parameters:
tableName - Nome da tabela.
columnName - Nome da coluna.
Throws:
java.lang.NullPointerException - If the columnNAme is null.

DataMetaField

public DataMetaField(java.lang.String columnName)
              throws java.lang.NullPointerException
Deprecated. 
Cria uma novoa representação de uma coluna de uma tabela.

Parameters:
columnName - Nome da coluna.
Throws:
java.lang.NullPointerException - If the columnNAme is null.

DataMetaField

public DataMetaField(MetaField metaField)
Deprecated.  

Cria uma novoa representação de uma coluna de uma tabela.

Method Detail

getAcceptNulls

public boolean getAcceptNulls()
Deprecated. Use method isAcceptNull() instead.

Indica se a coluna aceita ou não valores nulos.

Returns:
o valor da flag.

getDataSetIndex

public int getDataSetIndex()
Deprecated. Use method getDAOIndex() instead.

Devolve o índice associado ao conjunto de dados


getFixedValue

public java.lang.Object getFixedValue()
Deprecated. Use the method getDefaultValue() instead.

Return the fixed value to use in the column represented by the meta field.

Returns:
The fixed value to use in the column represented by the meta field.

getIsUpdateable

public boolean getIsUpdateable()
Deprecated. Use method isUpdateable() instead.

Check if the field could be update or not.


getNumChars

public int getNumChars()
Deprecated. Use method getLength() instead.

Devolve o numero de caracteres ocupados

Returns:
Número de caracteres ocupados

getQueryValue

public java.lang.Object getQueryValue()
Deprecated. This method will be removed and will not have a replacment.

Devolve o valor da query


setAcceptNulls

public void setAcceptNulls(boolean acceptNulls)
Deprecated. Use method setAcceptNull(boolean acceptNull) instead.

Change the acceptNulls property for the column represented by the meta field.

Parameters:
acceptNulls - True if the column accepts null, false otherwise.

setDataSetIndex

public void setDataSetIndex(int dataSetIndex)
Deprecated. Use method setDAOIndex(int index) instead.

Afecta o índice associado ao conjunto de dados


setFixedValue

public void setFixedValue(java.lang.Object value)
                   throws DAORuntimeException
Deprecated. Use the method setDefaultValue(Object value) instead.

Change the fixed value of the column represented by the meta field.

Parameters:
value - The new fixed value of the column.
Throws:
DAORuntimeException - se o campo for contador ou se o campo for do tipo serial

setIsUpdateable

public void setIsUpdateable(boolean isUpdateable)
Deprecated. Use method setUpdateable(boolean isUpdateable) instead.

Check if the field could be updated.


setNumChars

public void setNumChars(int numChars)
Deprecated. Use method setLength(int numChars) instead.

Afecta a propriedade numChars (Número de caracteres ocupados)

Parameters:
numChars - Número de caracteres

setQueryValue

public void setQueryValue(java.lang.Object queryValue)
Deprecated. This method will be removed and will not have a replacment.

Afecta o valor de query do campo (para QBE)

Parameters:
queryValue - Valor de query

dump

public void dump(java.lang.String _prefix)
Deprecated.