|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This is the interface used for representing one column of the DataAccessObject. Company MoreData
| Field Summary | |
static int |
NONE
Ordinary column type. |
static int |
SERIAL
SERIAL columnm yype. |
| Method Summary | |
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()
Return the table alias of the column represented by the meta field. |
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 numChars)
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. |
| Field Detail |
public static final int NONE
public static final int SERIAL
| Method Detail |
public java.lang.String getColumnName()
public int getDAOIndex()
public int getDataType()
public DataType getDataTypeInfo()
public java.lang.Object getDefaultValue()
public java.lang.String getLabel()
public int getLength()
public int getQueryPolicy()
public int getSpecialType()
public java.lang.String getTableName()
public java.lang.String getTableNameOrAlias()
public java.lang.String getTableAlias()
public boolean isAcceptNull()
public boolean isDefaultValueEngineProcessed()
public boolean isCounter()
public boolean isFK()
public boolean isPK()
public boolean isRepositoryField()
public boolean isUpdateable()
public void setAcceptNull(boolean acceptNull)
acceptNull - True if the column accepts null, false otherwise.
public void setCounter(boolean counter)
throws DAORuntimeException
counter - 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)
index - The DAO index of the column represented by this MetaField.public void setDataType(int dataType)
dataType - The data type code value from java.sql.Types.public void setDataTypeInfo(DataType dataType)
dataType - The DataType object.public void setDefaultValue(java.lang.Object value)
value - The new default value of the column.public void setDefaultValueEngineProcessed(boolean defaultValueEngineProcessed)
defaultValueEngineProcessed - New value of property defaultValueEngineProcessed,
true if the default value should be processed
by the data base engine, false otherwise.public void setFK(boolean isFk)
isFk - True if the metafield represents a foreign key column,
false otherwise.public void setLabel(java.lang.String label)
label - The new column label.public void setLength(int numChars)
numChars - The new column length (characters number).public void setPK(boolean isPk)
isPk - True if the metafield represents a primary key column,
false otherwise.public void setQueryPolicy(int queryPolicy)
queryPolicy - New value of property queryPolicy.pt.moredata.dao.DAOView.SNAPSHOT,
pt.moredata.dao.DAOView.DYNASETpublic void setRepositoryField(boolean repositoryField)
repositoryField - True if the fiels is a repository field,
false otherwise.
public void setSpecialType(int specialType)
throws DAORuntimeException
specialType - The column new special type.
DAORuntimeException - se o campo for contador ou se o campo
tiver um valor fixo.public void setUpdateable(boolean updateable)
updateable - True if the column represented by the meta
field could be updated, false otherwise.public boolean isIncludeInQuery()
public void setIncludeInQuery(boolean includeInQuery)
includeInQuery - 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 | ||||||||||