public final class RecordAttribute
extends java.lang.Object
implements java.lang.Cloneable
| Constructor and Description |
|---|
RecordAttribute()
Default constructor.
|
RecordAttribute(java.lang.String nameOf)
This constructor sets the name.
|
RecordAttribute(java.lang.String nameOf,
java.math.BigDecimal value)
This constructor sets the name and value.
|
RecordAttribute(java.lang.String nameOf,
boolean value)
This constructor sets the name and value.
|
RecordAttribute(java.lang.String nameOf,
byte[] value)
This constructor sets the name and value.
|
RecordAttribute(java.lang.String nameOf,
Bytedata value)
This constructor sets the name and value.
|
RecordAttribute(java.lang.String nameOf,
java.util.Date value)
This constructor sets the name and value.
|
RecordAttribute(java.lang.String nameOf,
double value)
This constructor sets the name and value.
|
RecordAttribute(java.lang.String nameOf,
long value)
This constructor sets the name and value.
|
RecordAttribute(java.lang.String nameOf,
java.lang.String value)
This constructor sets the name and value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearDirty()
Clears the attribute's dirty flag.
|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
void |
excludeQueryResult()
Excludes this attribute from a query result.
|
ifs.fnd.buffer.Item |
formatToItem()
Formats the RecordAttribute to an ifs.fnd.buffer.Item object.
|
Record |
getAggregate()
Returns the attribute's value if it's set and it's an aggregate.
|
RecordCollection |
getArray()
Returns the attribute's value if it's an array.
|
java.math.BigDecimal |
getBigDecimal()
Returns the attribute's value as a BigDecimal.
|
Bytedata |
getBinary()
Returns the attribute's value as Bytedata.
|
BindVariableDirection |
getBindVariableDirection()
Returns the bind varible direction set.
|
boolean |
getBoolean()
Returns the attribute's value as a boolean.
|
DataType |
getDataType()
Returns the RecordAttribute's data type.
|
java.util.Date |
getDate()
Returns the attribute's value as a Date.
|
java.lang.String |
getDomain()
Returns the domain for this attribute.
|
double |
getDouble()
Returns the attribute's value as a double.
|
java.lang.String |
getIdentity()
Returns the attribute's identity.
|
long |
getLong()
Returns the attribute's value as a long.
|
java.lang.String |
getNameOf()
Returns the name of the RecordAttribute.
|
java.lang.Object |
getQueryValue()
Returns the value for this attribute if its status is QueryInclude,
otherwise
null is returned. |
Record |
getReferent()
If the attribute is a reference, the referenced Record is returned by this
method.
|
RecordAttributeStatus |
getStatus()
Returns the status for this RecordAttribute.
|
java.lang.String |
getString()
Returns the attribute's value as a String.
|
java.lang.Object |
getTag()
Gets the Tag attribute.
|
java.lang.Object |
getValue()
Returns a reference to the value stored in the RecordAttribute.
|
boolean |
hasValue()
Returns
true if the attribute has a value set. |
void |
includeQueryResult()
Includes this attribute in a query result.
|
void |
includeQueryResult(RecordAttributeStatus includeAs)
Sets includetype for this attribute.
|
boolean |
isCompound()
Returns true if the attribute is compund (Array, Aggregate, Reference or Query Condition).
|
boolean |
isDirty()
Returns
true is this attribute is dirty. |
boolean |
isKey()
Returns
true if the the attribute is a key. |
boolean |
isMandatory()
Check if the attribute is mandatory (must have a value).
|
boolean |
isQueryCondition()
Returns
true if the attribute is a query condition. |
boolean |
isReference()
Returns
true if the attribute is a reference. |
boolean |
isSimple()
Returns true if the attribute contains a simple value.
|
boolean |
isUpdateAllowed()
Check if the attribute is updateable.
|
void |
makeDirty()
Sets the attribute's dirty flag.
|
void |
parseItem(ifs.fnd.buffer.Item attributeItem)
Parses a simple item into a RecordAttribute.
|
void |
setBindVariableDirection(BindVariableDirection dir)
Sets the bind variable direction.
|
void |
setDataType(DataType dataType)
Sets the data RecordAttribute's data type.
|
void |
setDomain(java.lang.String domain)
Sets the domain for this attribute.
|
void |
setIdentitiy(java.lang.String identity)
Sets the attributes identitiy, i.e.
|
void |
setIsKey(boolean yes)
Sets wheter the attribute is a key.
|
void |
setIsReference(boolean yes)
Sets wheter the attribute is a reference.
|
void |
setNameOf(java.lang.String nameOf)
Sets the name of the RecordAttribute.
|
void |
setQueryValue(java.lang.Object value)
Sets the value & and the status to QueryInclude.
|
void |
setReferent(Record referent)
Sets the attribute's referent record (if the attribute is a reference).
|
void |
setStatus(RecordAttributeStatus status)
Sets the attribute's status.
|
void |
setTag(java.lang.Object tag)
Sets the Tag attribute.
|
void |
setValue(java.math.BigDecimal value) |
void |
setValue(boolean value) |
void |
setValue(java.util.Date value) |
void |
setValue(double value) |
void |
setValue(long value)
Sets the value, dirty to true & status to None.
|
void |
setValue(java.lang.String value) |
void |
setValueNoDirty(java.math.BigDecimal value) |
void |
setValueNoDirty(boolean value) |
void |
setValueNoDirty(java.util.Date value) |
void |
setValueNoDirty(double value) |
void |
setValueNoDirty(long value)
Sets the value & status to None.
|
void |
setValueNoDirty(java.lang.String value) |
java.lang.String |
toString()
Returns a String representation of this object.
|
public RecordAttribute()
public RecordAttribute(java.lang.String nameOf)
public RecordAttribute(java.lang.String nameOf,
java.lang.String value)
public RecordAttribute(java.lang.String nameOf,
long value)
public RecordAttribute(java.lang.String nameOf,
double value)
public RecordAttribute(java.lang.String nameOf,
java.math.BigDecimal value)
public RecordAttribute(java.lang.String nameOf,
boolean value)
public RecordAttribute(java.lang.String nameOf,
byte[] value)
public RecordAttribute(java.lang.String nameOf,
java.util.Date value)
public RecordAttribute(java.lang.String nameOf,
Bytedata value)
public java.lang.Object clone()
clone in class java.lang.ObjectObjectpublic void excludeQueryResult()
public void includeQueryResult()
public void includeQueryResult(RecordAttributeStatus includeAs)
public boolean isCompound()
public boolean isKey()
true if the the attribute is a key.public boolean isReference()
true if the attribute is a reference.public boolean isQueryCondition()
true if the attribute is a query condition.public boolean isSimple()
public boolean isMandatory()
true if the attribute is mandatory.public boolean isUpdateAllowed()
true if the attribute is updateable.public DataType getDataType()
public void setBindVariableDirection(BindVariableDirection dir)
invokePLSQL()).public void setDataType(DataType dataType)
public java.lang.String getDomain()
public ifs.fnd.buffer.Item formatToItem()
throws APException
APExceptionpublic java.lang.String getIdentity()
value^domain. Only keys and references have
identities.java.lang.IllegalStateException - if identitiy is accessed for other attributes than keys or
references.public void setIdentitiy(java.lang.String identity)
getIdentity()public void parseItem(ifs.fnd.buffer.Item attributeItem)
throws APException
APExceptionpublic java.lang.String getNameOf()
public void setDomain(java.lang.String domain)
public void setIsKey(boolean yes)
yes - if true, the attribute is a key.public void setIsReference(boolean yes)
yes - if true, the attribute is a key.public void setNameOf(java.lang.String nameOf)
public Record getAggregate()
java.lang.IllegalStateException - if the value is not an aggregate.public RecordCollection getArray()
java.lang.IllegalStateException - if the value is not an array.public Bytedata getBinary()
java.lang.IllegalStateException - if the value is not binary data.public BindVariableDirection getBindVariableDirection()
invokePLSQL()).public boolean getBoolean()
java.lang.IllegalStateException - if the value is not a Boolean.public java.util.Date getDate()
new Date(getLong()) is returned.java.lang.IllegalStateException - if the value cannot be converted into a Date.public double getDouble()
java.lang.IllegalStateException - if the value cannot be converted into a double.public java.math.BigDecimal getBigDecimal()
java.lang.IllegalStateException - if the value cannot be converted into a BigDecimal.public long getLong()
getDate().getTime() is returned. If the value is
of type Double then it's value typecasted into a long.IllegalStateExcpetion - if the value cannot be converted into a long.public Record getReferent()
null is
returned.public void setReferent(Record referent)
public java.lang.String getString()
getDate() and format it with a
java.text.DateFormat object.java.lang.IllegalStateException - if the value is not simple.public java.lang.Object getValue()
public java.lang.Object getQueryValue()
null is returned.public boolean hasValue()
true if the attribute has a value set.public void setValue(long value)
public void setValueNoDirty(long value)
public void setValue(double value)
public void setValueNoDirty(double value)
public void setValue(java.math.BigDecimal value)
public void setValueNoDirty(java.math.BigDecimal value)
public void setValue(boolean value)
public void setValueNoDirty(boolean value)
public void setValue(java.util.Date value)
public void setValueNoDirty(java.util.Date value)
public void setValue(java.lang.String value)
public void setValueNoDirty(java.lang.String value)
public void setQueryValue(java.lang.Object value)
public RecordAttributeStatus getStatus()
RecordAttributeStatuspublic void setStatus(RecordAttributeStatus status)
RecordAttributeStatuspublic java.lang.Object getTag()
public void setTag(java.lang.Object tag)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isDirty()
true is this attribute is dirty. That is, if it has
been tampererd with since it was fetched from a server.public void makeDirty()
public void clearDirty()