public class FndText extends FndAbstractString
FndAttribute.Iterator
Modifier and Type | Field and Description |
---|---|
static int |
CLOB |
static int |
LONG |
static int |
NORMAL |
meta, rec, value
Constructor and Description |
---|
FndText()
Create a new instance.
|
FndText(FndAttributeMeta meta)
Create a new instance based on specified meta data.
|
FndText(FndAttributeMeta meta,
boolean isClob)
Create a new instance based on specified meta data.
|
FndText(FndAttributeMeta meta,
int storage)
Create a new FndText attribute.
|
FndText(FndAttributeMeta meta,
java.lang.String value)
Create a new instance based on specified meta data.
|
FndText(java.lang.String name)
Create a new instance, also specifying attribute name.
|
FndText(java.lang.String name,
boolean isClob)
Create a new instance, also specifying attribute name.
|
FndText(java.lang.String name,
int storage)
Create a new FndText attribute.
|
FndText(java.lang.String name,
java.lang.String value)
Create a new instance, also specifying attribute name and initial value.
|
Modifier and Type | Method and Description |
---|---|
void |
assign(FndText from)
Sets the value of the attribute from another attribute.
|
int |
compareTo(FndAttribute attr)
Compares two attributes.
|
FndSimpleCondition |
createBetweenCondition(java.lang.String value1,
java.lang.String value2)
See
createBetweenCondition method description. |
FndSimpleCondition |
createEqualCondition(java.lang.String value)
See
createEqualCondition method description. |
FndSimpleCondition |
createEqualIgnoreCaseCondition(java.lang.String value)
Create a "attribute = value" condition on this attribute ignoring case.
|
FndSimpleCondition |
createGreaterThanCondition(java.lang.String value)
See
createGreaterThanCondition method description. |
FndSimpleCondition |
createGreaterThanOrEqualCondition(java.lang.String value)
See
createGreaterThanOrEqualCondition method description. |
FndSimpleCondition |
createLessThanCondition(java.lang.String value)
See
createLessThanCondition method description. |
FndSimpleCondition |
createLessThanOrEqualCondition(java.lang.String value)
See
createLessThanOrEqualCondition method description. |
FndSimpleCondition |
createLikeCondition(java.lang.String value)
Create a "attribute like value" condition on this attribute.
|
FndSimpleCondition |
createLikeIgnoreCaseCondition(java.lang.String value)
Create a "attribute like value" condition on this attribute ignoring case.
|
FndSimpleCondition |
createNotEqualCondition(java.lang.String value)
See
createNotEqualCondition method description. |
FndSimpleCondition |
createNotEqualIgnoreCaseCondition(java.lang.String value)
Create a "attribute <> value" condition on this attribute ignoring case.
|
FndSimpleCondition |
createNotLikeCondition(java.lang.String value)
Create a "attribute not like value" condition on this attribute.
|
FndSimpleCondition |
createNotLikeIgnoreCaseCondition(java.lang.String value)
Create a "attribute not like value" condition on this attribute ignoring case.
|
protected void |
formatValueToXml(FndXmlSerializer s)
Formats this attribute's value to the xml stream.
|
protected FndSqlType |
getSqlType()
Get SQL type for attribute.
|
java.lang.String |
getTrimmedValue()
Gets trimmed value of the attribute.
|
java.lang.String |
getTrimmedValue(java.lang.String defaultValue)
Gets trimmed value of the attribute.
|
java.lang.String |
getValue()
Gets value of the attribute.
|
java.lang.String |
getValue(java.lang.String defaultValue)
Return the value of the attribute.
|
boolean |
isLong()
Check if this is a long text or not (with CLOB storage).
|
protected FndAttribute |
newAttribute(FndAttributeMeta meta)
Creates a new attribute based on meta-data.
|
protected void |
setSqlValue(FndSqlData data,
int colNr)
Get value from database and set on this attribute
|
void |
setValue(FndText field)
Copies value from another FndText.
|
void |
setValue(java.lang.String value)
Sets the value of the attribute.
|
protected FndSqlValue |
toFndSqlValue()
Return a FndSqlValue based on the value of this attribute
|
static FndText |
valueOf(java.lang.String value)
Returns an FndText attribute holding the value represented by the specified String.
|
createBetweenCondition, createEqualCondition, createEqualIgnoreCaseCondition, createGreaterThanCondition, createGreaterThanOrEqualCondition, createLessThanCondition, createLessThanOrEqualCondition, createLikeCondition, createLikeIgnoreCaseCondition, createNotEqualCondition, createNotLikeCondition, createNotLikeIgnoreCaseCondition, isLengthPrefixed, parseXmlString, setLengthPrefixed
setValue
createInCondition, createIsNotNullCondition, createIsNullCondition, createNotInCondition, getCount
addInvalidValueInfo, assign, checkFormat, checkFormat, checkNotModified, checkNotModified, checkNotModified, checkNotModified, checkNotModified, checkNotModified, checkRange, checkRange, checkRange, checkRange, checkRange, checkRange, checkUpperCase, checkUpperCase, checkValuePresent, checkValuePresent, checkValuePresent, checkValuePresent, checkValuePresent, checkValuePresent, clear, clone, cloneValue, copy, createBetweenCondition, createEqualCondition, createGreaterThanCondition, createGreaterThanOrEqualCondition, createLessThanCondition, createLessThanOrEqualCondition, createNotEqualCondition, descending, exclude, exist, formatAttributeToXml, formatValue, getColumns, getInnerTypes, getInvalidValueInfo, getLength, getMeta, getName, getParentRecord, getResultCategory, getSortDirection, getState, getType, hasValue, include, include, internalGetValue, internalSetValue, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, invalidate, isCompound, isDirty, isExcluded, isKey, isMandatory, isNull, isPartOfPrimaryKey, isQuery, isSet, isUpdateAllowed, isVector, parse, parseBuffer, parseDatabaseString, parseString, set, setDirty, setDirty, setExistent, setInvalidValueInfo, setMandatory, setName, setNonExistent, setNull, setParentRecord, setQuery, setState, setType, setUpdateAllowed, sortFieldIterator, toDatabaseString, toString, unset, validate, validate
public static final int NORMAL
public static final int LONG
public static final int CLOB
public FndText()
public FndText(java.lang.String name)
name
- attribute namepublic FndText(java.lang.String name, boolean isClob)
name
- attribute nameisClob
- boolean flag indicating storage to use for the attribute (FndText.CLOB/FndText.NORMAL)public FndText(java.lang.String name, int storage)
name
- Attribute name.storage
- Storage to use for attribute, FndText.CLOB/FndText.LONG/FndText.NORMAL.public FndText(java.lang.String name, java.lang.String value)
name
- attribute namevalue
- initial attribute valuepublic FndText(FndAttributeMeta meta)
meta
- attribute meta datapublic FndText(FndAttributeMeta meta, boolean isClob)
meta
- attribute meta dataisClob
- boolean flag indicating storage to use for the attribute (FndText.CLOB/FndText.NORMAL)public FndText(FndAttributeMeta meta, int storage)
meta
- Attribute meta-data.storage
- Storage to use for attribute, FndText.CLOB/FndText.LONG/FndText.NORMAL.public FndText(FndAttributeMeta meta, java.lang.String value)
meta
- meta datavalue
- initial valueprotected FndAttribute newAttribute(FndAttributeMeta meta)
newAttribute
in class FndAttribute
meta
- Meta-data to base the attribute onpublic java.lang.String getValue()
public java.lang.String getValue(java.lang.String defaultValue)
defaultValue
- Value to return if attribute value is null.public java.lang.String getTrimmedValue()
public java.lang.String getTrimmedValue(java.lang.String defaultValue)
defaultValue
- Value to return if attribute value is null.public void setValue(java.lang.String value) throws ApplicationException
value
- ValueApplicationException
- Out of rangepublic void setValue(FndText field) throws ApplicationException
field
- Attribute to copy fromApplicationException
- Out of rangepublic void assign(FndText from) throws SystemException, ApplicationException
from
- Attribute to copy value fromSystemException
- Thrown if cloning failsApplicationException
- Thrown if value if out of range for this attributepublic int compareTo(FndAttribute attr)
compareTo
in class FndAttribute
attr
- Attribute to compare withprotected void formatValueToXml(FndXmlSerializer s) throws ParseException
formatValueToXml
in class FndAbstractString
s
- XML serializer to append the value toParseException
protected FndSqlValue toFndSqlValue()
toFndSqlValue
in class FndAttribute
protected void setSqlValue(FndSqlData data, int colNr) throws IfsException
setSqlValue
in class FndAttribute
data
- an instance of FndSqlData interface to get value fromcolNr
- column/parameter index numberIfsException
protected FndSqlType getSqlType()
FndAttribute
getSqlType
in class FndAttribute
public boolean isLong()
isLong
in class FndAttribute
true
if this is a long attributepublic FndSimpleCondition createBetweenCondition(java.lang.String value1, java.lang.String value2)
createBetweenCondition
method description.
See class FndSimpleCondition
for example of usage.
public FndSimpleCondition createEqualCondition(java.lang.String value)
createEqualCondition
method description.
See class FndSimpleCondition
for example of usage.
public FndSimpleCondition createGreaterThanCondition(java.lang.String value)
createGreaterThanCondition
method description.
See class FndSimpleCondition
for example of usage.
public FndSimpleCondition createGreaterThanOrEqualCondition(java.lang.String value)
createGreaterThanOrEqualCondition
method description.
See class FndSimpleCondition
for example of usage.
public FndSimpleCondition createLessThanCondition(java.lang.String value)
createLessThanCondition
method description.
See class FndSimpleCondition
for example of usage.
public FndSimpleCondition createLessThanOrEqualCondition(java.lang.String value)
createLessThanOrEqualCondition
method description.
See class FndSimpleCondition
for example of usage.
public FndSimpleCondition createNotEqualCondition(java.lang.String value)
createNotEqualCondition
method description.
See class FndSimpleCondition
for example of usage.
public FndSimpleCondition createLikeCondition(java.lang.String value)
See class FndSimpleCondition
for example of usage.
value
- Value to compare attribute to. Use wildcards '%' and '_'.public FndSimpleCondition createNotLikeCondition(java.lang.String value)
See class FndSimpleCondition
for example of usage.
value
- Value to compare attribute to. Use wildcards '%' and '_'.public FndSimpleCondition createLikeIgnoreCaseCondition(java.lang.String value)
See class FndSimpleCondition
for example of usage.
value
- Value to compare attribute to. Use wildcards '%' and '_'.public FndSimpleCondition createNotLikeIgnoreCaseCondition(java.lang.String value)
See class FndSimpleCondition
for example of usage.
value
- Value to compare attribute to. Use wildcards '%' and '_'.public FndSimpleCondition createEqualIgnoreCaseCondition(java.lang.String value)
See class FndSimpleCondition
for example of usage.
value
- Value to compare attribute to.public FndSimpleCondition createNotEqualIgnoreCaseCondition(java.lang.String value)
See class FndSimpleCondition
for example of usage.
value
- Value to compare attribute to.public static FndText valueOf(java.lang.String value) throws ParseException
value
- the string to be parsedParseException
- if the specified String has invalid format