|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dao.core.GenericMetaField
pt.moredata.dao.core.PublicGenericMetaField
Public GenericMetaField to be used by DataMetaField class. Company MoreData
| Field Summary | |
protected java.lang.String |
_tableAlias
Table alias. |
protected java.lang.String |
_tableName
Table Name. |
static java.lang.String[] |
specialTypesNames
Nomes dos tipos especiais. |
| Fields inherited from interface pt.moredata.dao.MetaField |
NONE, SERIAL |
| Constructor Summary | |
PublicGenericMetaField(java.lang.String columnName)
Deprecated. Cria uma novoa representação de uma coluna de uma tabela. |
|
PublicGenericMetaField(java.lang.String tableName,
java.lang.String columnName)
Deprecated. Cria uma novoa representação de uma coluna de uma tabela. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Check if this metafield is equal to another one. |
java.lang.String |
getColumnName()
Return the meta field column name. |
int |
getDAOIndex()
Return the DAO index of the column represented by the meta field. |
int |
getDataType()
Return the data type of the column represented by the meta field. |
DataType |
getDataTypeInfo()
Deprecated. Use method getDataType() instead. |
java.lang.Object |
getDefaultValue()
Return the default value of the column represented by the meta fields. |
java.lang.String |
getLabel()
Return string with a label that identifies the column. |
int |
getLength()
Return the length of the column represented by the meta field. |
int |
getQueryPolicy()
Returns the policy used by DataAccessObject query method for this column. |
int |
getSpecialType()
Return the special type of the column represented by this meta field or NONE if the column has no special type. |
java.lang.String |
getTableAlias()
Getter for property tableAlias. |
java.lang.String |
getTableName()
Return the table name of the column represented by the meta field. |
java.lang.String |
getTableNameOrAlias()
Return the table alias or the table name if the alias is null. |
boolean |
isAcceptNull()
Check if the column represented by the meta field accepts null as value. |
boolean |
isCounter()
Check if the column is a counter type column. |
boolean |
isDefaultValueEngineProcessed()
Indicate if the default value is engine processed or not. |
boolean |
isFK()
Check if the column is a foreign key column. |
boolean |
isIncludeInQuery()
Check if the field should be include in a database selected. |
boolean |
isPK()
Check if the column is a primary key column. |
boolean |
isRepositoryField()
Check if the field is a repository field. |
boolean |
isUpdateable()
Check if the field could be update or not. |
void |
setAcceptNull(boolean acceptNull)
Change the acceptNull property for the column represented by the meta field. |
void |
setCounter(boolean counter)
Change the counter property of the column represented by the metafield. |
void |
setDAOIndex(int index)
Change the DAO index of the column represented by this MetaField |
void |
setDataType(int dataType)
Change the DataType object of the column represented by the meta field. |
void |
setDataTypeInfo(DataType dataType)
Deprecated. Use method setDataType instead. |
void |
setDefaultValue(java.lang.Object value)
Change the default value of the column represented by the meta field. |
void |
setDefaultValueEngineProcessed(boolean defaultValueEngineProcessed)
Change the value of the defaultValueEngineProcessed property. |
void |
setFK(boolean isFk)
Change the FK property of the metafield. |
void |
setIncludeInQuery(boolean includeInQuery)
Change the includeInQuery property of the metafield. |
void |
setLabel(java.lang.String label)
Change the label of the column represented by the meta field. |
void |
setLength(int length)
Change the length of the column. |
void |
setPK(boolean isPk)
Change the PK property of the metafield. |
void |
setQueryPolicy(int queryPolicy)
Changes the query policy for this column. |
void |
setRepositoryField(boolean repositoryField)
Setter for property repositoryField. |
void |
setSpecialType(int specialType)
Change the specialType property of the column represented by the meta field. |
void |
setUpdateable(boolean updateable)
Change the updateable property of the metafield. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String[] specialTypesNames
protected java.lang.String _tableName
protected java.lang.String _tableAlias
| Constructor Detail |
public PublicGenericMetaField(java.lang.String tableName,
java.lang.String columnName)
throws java.lang.NullPointerException
tableName - Nome da tabela.columnName - Nome da coluna.
java.lang.NullPointerException - If the columnNAme is null.
public PublicGenericMetaField(java.lang.String columnName)
throws java.lang.NullPointerException
columnName - Nome da coluna.
java.lang.NullPointerException - If the columnNAme is null.| Method Detail |
public boolean equals(java.lang.Object obj)
obj - A MetaField object.
public java.lang.String getColumnName()
getColumnName in interface MetaFieldpublic int getDAOIndex()
getDAOIndex in interface MetaFieldpublic int getDataType()
getDataType in interface MetaFieldpublic DataType getDataTypeInfo()
getDataTypeInfo in interface MetaFieldpublic java.lang.Object getDefaultValue()
getDefaultValue in interface MetaFieldpublic java.lang.String getLabel()
getLabel in interface MetaFieldpublic int getLength()
getLength in interface MetaFieldpublic int getQueryPolicy()
getQueryPolicy in interface MetaFieldpublic int getSpecialType()
getSpecialType in interface MetaFieldpublic java.lang.String getTableName()
getTableName in interface MetaFieldpublic java.lang.String getTableNameOrAlias()
getTableNameOrAlias in interface MetaFieldpublic java.lang.String getTableAlias()
getTableAlias in interface MetaFieldpublic boolean isAcceptNull()
isAcceptNull in interface MetaFieldpublic boolean isCounter()
isCounter in interface MetaFieldpublic boolean isFK()
isFK in interface MetaFieldpublic boolean isPK()
isPK in interface MetaFieldpublic boolean isUpdateable()
isUpdateable in interface MetaFieldpublic void setAcceptNull(boolean acceptNull)
setAcceptNull in interface MetaFieldacceptNull - True if the column accepts null, false otherwise.
public void setCounter(boolean counter)
throws DAORuntimeException
setCounter in interface MetaFieldcounter - True if the column if of counter type, false otherwise.
DAORuntimeException - se o campo for do tipo serial ou se o campo
tiver um valor fixo.public void setDAOIndex(int index)
setDAOIndex in interface MetaFieldindex - The repository index of the column.public void setDataType(int dataType)
setDataType in interface MetaFielddataType - The data type code value from java.sql.Types.public void setDataTypeInfo(DataType dataType)
setDataTypeInfo in interface MetaFielddataType - The DataType object.public void setDefaultValue(java.lang.Object value)
setDefaultValue in interface MetaFieldvalue - The new default value of the column.public void setFK(boolean isFk)
setFK in interface MetaFieldisFk - True if the metafield represents a foreign key column,
false otherwise.public void setLabel(java.lang.String label)
setLabel in interface MetaFieldlabel - The new column label.public void setLength(int length)
setLength in interface MetaFieldlength - The new column length (characters number).public void setPK(boolean isPk)
setPK in interface MetaFieldisPk - True if the metafield represents a primary key column,
false otherwise.public void setQueryPolicy(int queryPolicy)
setQueryPolicy in interface MetaFieldqueryPolicy - New value of property queryPolicy.pt.moredata.dao.DAOView.SNAPSHOT,
pt.moredata.dao.DAOView.DYNASET
public void setSpecialType(int specialType)
throws DAORuntimeException
setSpecialType in interface MetaFieldspecialType - The column new special type.
DAORuntimeException - se o campo for contador ou se o campo
tiver um valor fixo.public void setUpdateable(boolean updateable)
setUpdateable in interface MetaFieldupdateable - True if the column represented by the meta
field could be updated, false otherwise.public boolean isRepositoryField()
isRepositoryField in interface MetaFieldpublic void setRepositoryField(boolean repositoryField)
setRepositoryField in interface MetaFieldrepositoryField - True if the fiels is a repository field,
false otherwise.public boolean isDefaultValueEngineProcessed()
isDefaultValueEngineProcessed in interface MetaFieldpublic void setDefaultValueEngineProcessed(boolean defaultValueEngineProcessed)
setDefaultValueEngineProcessed in interface MetaFielddefaultValueEngineProcessed - New value of property defaultValueEngineProcessed,
true if the default value should be processed
by the data base engine, false otherwise.public boolean isIncludeInQuery()
isIncludeInQuery in interface MetaFieldpublic void setIncludeInQuery(boolean includeInQuery)
setIncludeInQuery in interface MetaFieldincludeInQuery - true if the metafield should be incluede in the
select, false if not.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||