|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.data.DataField
public class DataField
Encapsulates the meta information describing a data entity.
| Constructor Summary | |
|---|---|
DataField(FieldName name)
|
|
DataField(FieldName name,
DataType type)
Builds a data entity of the given name |
|
| Method Summary | |
|---|---|
Object |
getDefault()
Get the default value of this data entity. |
FieldName |
getName()
Gets the name of the data entity. |
DataType |
getType()
Get the java.sql.Types type of this entity. |
boolean |
isAuto()
Is this data entity automatic (autonumeric, "magic" date fields)? |
boolean |
isForeignKey()
Is this data entity a DB foreign key or not? |
boolean |
isKey()
Is this data entity a DB key or not? |
boolean |
isNullable()
Is this data entity nullable or not? |
void |
setAuto()
Set this data entity to be automatic. |
void |
setAuto(boolean b)
Set this data entity to be automatic (or not). |
void |
setDefault(Object def)
Sets the default value of this data entity. |
void |
setNullable()
Equivalent of setNullable(true); |
void |
setNullable(boolean b)
Sets this data entity to be nullable or not according to argument. |
void |
setType(DataType type)
Sets the java.sql.Types data type of this entity. |
String |
toString()
Gets the description of the data entity. |
Object |
validate(Object value)
Validates the value. |
Object |
validate(Object value,
Object helper)
validates the value according to requirements of the Data
Dictionary / Metadata, and using a helper object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataField(FieldName name)
public DataField(FieldName name,
DataType type)
| Method Detail |
|---|
public final FieldName getName()
public String toString()
toString in class Objectpublic void setDefault(Object def)
def - the default value.public void setType(DataType type)
type - the type of this entity.public void setNullable(boolean b)
b - true if you want the data entity to be nullable, false if
cannot be null.public void setNullable()
public void setAuto()
public void setAuto(boolean b)
b - true to set it to auto, false otherwise.public Object getDefault()
public boolean isNullable()
public boolean isKey()
public boolean isForeignKey()
public boolean isAuto()
public DataType getType()
public Object validate(Object value)
throws DataException
Validablevalue.
validate in interface Validablevalue - the value to be verified/validated
value argument).
DataException - TODO
public Object validate(Object value,
Object helper)
throws DataException
value according to requirements of the Data
Dictionary / Metadata, and using a helper object.
This method typically performs a heavier validation of the value, even when the helper object is null.
validate in interface Validablevalue - the value to be verified.helper - the helper object.
value argument).
DataException - TODO
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||