public final class BufferFieldImpl extends HandleChain implements BufferField, Deletable
FieldReference as a
delegate worker.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
admData
Corresponds to ADM-DATA attribute.
|
private character |
columnLabel
Explicit value of
COLUMN-LABEL attribute for database table fields. |
private java.lang.String |
dataType
The calculated field's data-type.
|
private FieldReference |
fieldRef
FieldReference delegate object |
private boolean |
forceDelete
Flag indicating if the delete must be forced.
|
private character |
format
Explicit value of
FORMAT attribute for database table fields. |
private character |
help
Explicit value of
HELP attribute for database table fields. |
private java.lang.Boolean |
key
The key flag.
|
private character |
label
Explicit value of
LABEL attribute for database table fields. |
private TableMapper.LegacyFieldInfo |
lfi
The legacy info collected from table creation or modified afterwards.
|
private logical |
literalQuestion
Explicit value of
LITERAL-QUESTION attribute for database table fields. |
private static CentralLogger |
LOG
Logger
|
private boolean |
mutableOptions
Flag for mutable options.
|
private boolean |
readOnly
The current value for READ-ONLY attribute.
|
private logical |
serializeHidden
Explicit value of
SERIALIZE-HIDDEN attribute for database table fields. |
private character |
serializeName
Explicit value of
SERIALIZE-NAME attribute for database table fields. |
private java.lang.Long |
uniqueID
Corresponds to UNIQUE-ID attribute.
|
private character |
validateExpression
Explicit value of
VALIDATE-EXPRESSION attribute for database table fields. |
private character |
validateMessage
Explicit value of
VALIDATE-MESSAGE attribute for database table fields. |
private java.lang.String |
viewAs
The current value for VIEW-AS attribute.
|
private character |
xmlDataType
Explicit value of
XML-DATA-TYPE attribute for database table fields. |
private character |
xmlNodeName
Explicit value of
XML-NODE-NAME attribute for database table fields. |
private character |
xmlNodeType
Explicit value of
XML-NODE-TYPE attribute for database table fields. |
name, nextSibling, prevSibling, wainstProc, pmCOMBO_BOX, DROP_DOWN, DROP_DOWN_LIST, FILL_IN, TOGGLE_BOX| Modifier | Constructor and Description |
|---|---|
private |
BufferFieldImpl(FieldReference fieldRef,
int index,
TableMapper.LegacyFieldInfo lfi)
Create an instance of this class which accesses a specific element of an extent field, given a field
reference for the same DMO property, which does not reference a specific element of that field.
|
(package private) |
BufferFieldImpl(java.lang.Object instProc,
DataModelObject dmo,
java.lang.String property)
Create a new field reference given a DMO proxy and property name.
|
(package private) |
BufferFieldImpl(java.lang.Object instProc,
DataModelObject dmo,
java.lang.String property,
boolean bulk)
Create a new field reference given a DMO proxy and property name.
|
private |
BufferFieldImpl(java.lang.Object instProc,
DataModelObject dmo,
java.lang.String property,
boolean uppercase,
NumberType index,
boolean bulk)
Create a new field reference given a DMO proxy, a property name, and
an index for the property.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
_extent()
Getter of EXTENT attribute.
|
(package private) boolean |
_literalQuestion()
Conversion of LITERAL-QUESTION attribute (KW_LIT_QSTN).
|
java.lang.String |
_name()
Get the
name attribute of handle as a string. |
(package private) P2JField |
asP2JField()
Convert the information about this field at the current moment into a
P2JField object and
return it. |
logical |
available()
Indicate one of the following conditions.
|
handle |
bufferHandle()
Returns the handle of the buffer object to which the buffer-field belongs.
|
character |
bufferName()
Conversion of BUFFER-NAME attribute (KW_BUF_NAME).
|
logical |
caseSensitive()
Getter of CASE-SENSITIVE attribute.
|
void |
changeLiteralQuestion(logical literalQuestion)
Conversion of LITERAL-QUESTION attribute (KW_LIT_QSTN).
|
void |
changeValidateExpression(character validateExpression)
Conversion of VALIDATE-EXPRESSION attribute (KW_VAL_EXPR).
|
void |
changeValidateMessage(character validateMessage)
Conversion of VALIDATE-MESSAGE attribute (KW_VAL_MSG).
|
void |
changeValue(int index,
java.lang.Object newValue)
Conversion of BUFFER-VALUE attribute (KW_BUF_VAL).
|
private void |
changeValue(int index,
java.lang.Object newValue,
boolean validate)
Change the value of a specific element of an extent field, optionally validating the
supplied subscript.
|
void |
changeValue(NumberType index,
java.lang.Object newValue)
Conversion of BUFFER-VALUE attribute (KW_BUF_VAL).
|
void |
changeValue(java.lang.Object newValue)
Conversion of BUFFER-VALUE attribute (KW_BUF_VAL).
|
private boolean |
checkUnknown(java.lang.String attributeName,
BaseDataType value)
Check if the provided value of the attribute is unknown and raise error in this case.
|
private TableMapper.LegacyFieldInfo |
computeLegacyInfo()
Extracts and returns the
LegacyFieldInfo associated with this field. |
FieldReference |
createFieldReference(java.lang.Integer extIndex)
Creates and returns a copy of the
FieldReference held by this instance. |
integer |
extent()
Conversion of EXTENT attribute (KW_EXTENT).
|
(package private) void |
forceDelete()
Force the delete of this BUFFER-FIELD.
|
character |
getADMData()
Get the value of the ADM-DATA attribute.
|
Buffer |
getBuffer()
Returns the handle of the buffer object to which the buffer-field belongs.
|
character |
getColumnLabel()
Getter of COLUMN-LABEL attribute.
|
character |
getDataType()
Returns the value of the DATA-TYPE attribute
|
character |
getDbName()
Returns the state of the DBNAME attribute
|
integer |
getDecimals()
Obtain the number of decimal places, after the decimal point, that are stored in this
buffer-field object that corresponds to a DECIMAL field.
|
character |
getDefaultString()
Get the DEFAULT-STRING attribute.
|
BaseDataType |
getDefaultValue()
Get the DEFAULT-VALUE attribute.
|
(package private) Buffer |
getDMOProxy()
Get the DMO proxy which references parent buffer.
|
character |
getFormat()
Getter of FORMAT attribute.
|
decimal |
getHeight()
Get the HEIGHT Progress attribute.
|
decimal |
getHeightChars()
HEIGHT-CHARS attribute is not defined for BUFFER-FIELD handle.
|
integer |
getHeightPixels()
HEIGHT-PIXELS attribute is not defined for BUFFER-FIELD handle.
|
character |
getHelp()
Returns the value of the HELP attribute
|
character |
getLabel()
Returns the value of the LABEL attribute
|
(package private) java.lang.String |
getLcLegacyName()
Get the lowercased legacy name.
|
java.lang.String |
getOriginalPropertyName()
Get the original property name of this field.
|
private RecordBuffer |
getParentBuffer()
Get the parent record buffer.
|
java.lang.String |
getProperty()
Get the property name of this field.
|
logical |
getSerializeHidden()
Checks whether fields are written when the temp-table is serialized, for example into
JSON or XML.
|
character |
getSerializeName()
Implementation of the read access of the
SERIALIZE-NAME attribute. |
character |
getTable()
Returns the state of the TABLE attribute
|
private TempTable |
getTempTable()
Get the parent temp-table from the
fieldRef. |
integer |
getUniqueID()
Gets the the unique ID number associated to this object by the underlying system.
|
decimal |
getWidth()
Get the WIDTH Progress attribute.
|
decimal |
getWidthChars()
Get the WIDTH-CHARS attribute of this BUFFER-FIELD handle.
|
integer |
getWidthPixels()
WIDTH-PIXELS attribute is not defined for BUFFER-FIELD handle.
|
character |
getXmlDataType()
Obtain the XML Schema data type for the buffer-field object.
|
character |
getXmlNodeName()
Obtain the name of the XML element or attribute representing the target object (either a
DataSet, a TempTable, a TemporaryBuffer, or a temp-table
BufferField) name in an XML document. |
character |
getXmlNodeType()
Obtain the XML node type of this object.
|
protected boolean |
hasNextSibling()
Check if this resource supports the NEXT-SIBLING attribute.
|
protected boolean |
hasPrevSibling()
Check if this resource supports the PREV-SIBLING attribute.
|
character |
initial()
Get the INITIAL attribute for the field.
|
private BaseDataType |
initialValue()
Get the value of INITIAL attribute as a BaseDataType.
|
logical |
isKey()
Checks whether this field participates in an index.
|
logical |
isReadOnly()
Checks whether the widget is write-protected.
|
logical |
literalQuestion()
Conversion of LITERAL-QUESTION attribute (KW_LIT_QSTN).
|
logical |
mandatory()
Conversion of MANDATORY attribute (KW_MAND).
|
character |
name()
Get the
name attribute of a BUFFER-FIELD, which is the legacy name of the
field referenced by this object. |
integer |
position()
Gets the read-only POSITION attribute.
|
protected boolean |
processResource()
Buffer field resources are always generated lazily, and are being deleted by the parent BUFFER.
|
protected boolean |
resourceDelete()
Delete the resource.
|
void |
setADMData(character value)
Set the value of the ADM-DATA attribute.
|
void |
setADMData(java.lang.String value)
Set the value of the ADM-DATA attribute.
|
void |
setColumnLabel(character columnLabel)
Setter of COLUMN-LABEL attribute.
|
void |
setColumnLabel(java.lang.String columnLabel)
Setter of COLUMN-LABEL attribute.
|
void |
setDataType(character dataType)
Set the
DATA-TYPE attribute.. |
void |
setDataType(java.lang.String dataType)
Set the
DATA-TYPE attribute. |
void |
setDecimals(long decimals)
Sets the number of decimal places, after the decimal point, that are stored in this buffer-field
object that corresponds to a DECIMAL field.
|
void |
setDecimals(NumberType decimals)
Sets the number of decimal places, after the decimal point, that are stored in this buffer-field
object that corresponds to a DECIMAL field.
|
void |
setDefaultString(character val)
Set the DEFAULT-STRING attribute.
|
void |
setDefaultString(java.lang.String val)
Set the DEFAULT-STRING attribute.
|
void |
setFormat(character format)
Setter of FORMAt attribute.
|
void |
setFormat(java.lang.String format)
Setter of FORMAT attribute.
|
void |
setHeight(NumberType heightChars)
Set the HEIGHT Progress attribute.
|
void |
setHeightChars(double h)
HEIGHT-CHARS attribute is not defined for BUFFER-FIELD handle.
|
void |
setHeightChars(NumberType h)
HEIGHT-CHARS attribute is not defined for BUFFER-FIELD handle.
|
void |
setHeightPixels(int heightPixels)
HEIGHT-PIXELS attribute is not defined for BUFFER-FIELD handle.
|
void |
setHeightPixels(NumberType heightPixels)
HEIGHT-PIXELS attribute is not defined for BUFFER-FIELD handle.
|
void |
setHelp(character help)
Set the
HELP attribute of handle. |
void |
setHelp(java.lang.String help)
Set the
HELP attribute of handle. |
void |
setLabel(character label)
Set the
LABEL attribute of handle. |
void |
setLabel(java.lang.String label)
Set the
LABEL attribute of handle. |
void |
setReadOnly(boolean ro)
Sets the READ-ONLY attribute of the widget.
|
void |
setReadOnly(logical ro)
Sets the READ-ONLY attribute of the widget.
|
void |
setSerializeHidden(boolean val)
Allow to configure whether fields are written when the temp-table is serialized, for example
into JSON or XML.
|
void |
setSerializeHidden(logical val)
Allow to configure whether fields are written when the temp-table is serialized, for example
into JSON or XML.
|
void |
setSerializeName(java.lang.String sName)
Implementation of the write access of the
SERIALIZE-NAME attribute. |
void |
setSerializeName(Text sName)
Implementation of the write access of the
SERIALIZE-NAME attribute. |
void |
setWidth(NumberType widthChars)
Set the WIDTH Progress attribute.
|
void |
setWidthChars(double widthChars)
Set the WIDTH-CHARS attribute of this BUFFER-FIELD handle.
|
void |
setWidthChars(NumberType widthChars)
Set the WIDTH-CHARS attribute of this BUFFER-FIELD handle.
|
void |
setWidthPixels(int widthPixels)
WIDTH-PIXELS attribute is not defined for BUFFER-FIELD handle.
|
void |
setWidthPixels(NumberType widthPixels)
WIDTH-PIXELS attribute is not defined for BUFFER-FIELD handle.
|
void |
setXmlDataType(java.lang.String newType)
Configures the XML Schema data type for the buffer-field object.
|
void |
setXmlDataType(Text newType)
Configures the XML Schema data type for the buffer-field object.
|
void |
setXmlNodeName(java.lang.String name)
Sets the name of the XML element or attribute representing the target object (either a
DataSet, a TempTable, a TemporaryBuffer, or a temp-table
BufferField) name in an XML document. |
void |
setXmlNodeName(Text name)
Sets the name of the XML element or attribute representing the target object (either a
DataSet, a TempTable, a TemporaryBuffer, or a temp-table
BufferField) name in an XML document. |
void |
setXmlNodeType(SerializeOptions.XmlNodeType newType)
Allows to specify how a this object will be represented in XML and XML Schema.
|
void |
setXmlNodeType(java.lang.String newType)
Allows to specify how a this object will be represented in XML and XML Schema.
|
void |
setXmlNodeType(Text newType)
Allows to specify how a this object will be represented in XML and XML Schema.
|
character |
stringValue()
Conversion of STRING-VALUE attribute (KW_STR_VAL).
|
character |
stringValue(int index)
Conversion of STRING-VALUE attribute (KW_STR_VAL).
|
character |
stringValue(NumberType index)
Conversion of STRING-VALUE attribute (KW_STR_VAL).
|
java.lang.String |
toString()
Provides a short description of this object used for debugging.
|
boolean |
valid()
Reports if this object is valid for use.
|
private boolean |
validateBufferFieldIndex(int index)
Validate the index passed to a BUFFER-VALUE method call.
|
private boolean |
validateBufferFieldIndex(NumberType index)
Validate the index passed to a BUFFER-VALUE method call.
|
character |
validateExpression()
Conversion of VALIDATE-EXPRESSION attribute (KW_VAL_EXPR).
|
character |
validateMessage()
Conversion of VALIDATE-MESSAGE attribute (KW_VAL_MSG).
|
BaseDataType |
value()
Conversion of BUFFER-VALUE attribute (KW_BUF_VAL).
|
BaseDataType |
value(int index)
Conversion of BUFFER-VALUE attribute (KW_BUF_VAL).
|
private BaseDataType |
value(int index,
boolean validate)
Retrieve the value of a specific element of an extent field, optionally validating the
supplied subscript.
|
BaseDataType |
value(NumberType index)
Conversion of BUFFER-VALUE attribute (KW_BUF_VAL).
|
character |
viewAs()
Get the BUFFER:VIEW-AS attribute.
|
void |
viewAs(character viewAs)
Set the BUFFER:VIEW-AS attribute.
|
void |
viewAs(java.lang.String viewAs)
Set the BUFFER:VIEW-AS attribute.
|
delete, firstResource, firstResource, getHead, getNextSibling, getNextSibling, getPrevSibling, getPrevSibling, getPrivateData, getTail, hasName, hasNameConstraints, hasNameReadOnly, hasParent, hasPrivateData, interlink, isChained, lastResource, lastResource, moveInChain, name, name, readOnlyError, readOnlyError, resolveChainType, setHead, setNextSibling, setNextSibling, setPrevSibling, setPrevSibling, setPrivateData, setPrivateData, setPrivateData, validateName_instantiatingProcedure, addToPool, doDelete, equals, hashCode, id, id, implicitDeletion, incrementTrigger, instantiatingProcedure, invalidAttribute, registerResource, resourceType, setInstantiatingProcedure, type, unableToAssignUnknown, unknownclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetLabelid, id, unknownallowDelete, deleteresourceTypeprivate static final CentralLogger LOG
private final FieldReference fieldRef
FieldReference delegate objectprivate java.lang.String admData
private java.lang.Long uniqueID
private final TableMapper.LegacyFieldInfo lfi
private boolean mutableOptions
private boolean forceDelete
private java.lang.Boolean key
private java.lang.String viewAs
private boolean readOnly
private logical literalQuestion
LITERAL-QUESTION attribute for database table fields.private character columnLabel
COLUMN-LABEL attribute for database table fields.private character format
FORMAT attribute for database table fields.private character help
HELP attribute for database table fields.private character label
LABEL attribute for database table fields.private character validateExpression
VALIDATE-EXPRESSION attribute for database table fields.private character validateMessage
VALIDATE-MESSAGE attribute for database table fields.private logical serializeHidden
SERIALIZE-HIDDEN attribute for database table fields.private character serializeName
SERIALIZE-NAME attribute for database table fields.private character xmlDataType
XML-DATA-TYPE attribute for database table fields.private character xmlNodeName
XML-NODE-NAME attribute for database table fields.private character xmlNodeType
XML-NODE-TYPE attribute for database table fields.private java.lang.String dataType
BufferFieldImpl(java.lang.Object instProc,
DataModelObject dmo,
java.lang.String property)
instProc - The parent buffer's instantiating-procedure.dmo - DMO proxy.property - Target property name.BufferFieldImpl(java.lang.Object instProc,
DataModelObject dmo,
java.lang.String property,
boolean bulk)
instProc - The parent buffer's instantiating-procedure.dmo - DMO proxy.property - Target property name.bulk - When the reference is an EXTENT field and index is null the bulk
getter/setter will be used.private BufferFieldImpl(java.lang.Object instProc,
DataModelObject dmo,
java.lang.String property,
boolean uppercase,
NumberType index,
boolean bulk)
instProc - The parent buffer's instantiating-procedure.dmo - DMO proxy.property - Target property name.uppercase - true to force a character value to be
uppercased/right-trimmed;
false to leave the result unchanged.index - Index to pass to property's getter method at resolve time.bulk - When the reference is an EXTENT field and index is null the bulk
getter/setter will be used.java.lang.IllegalArgumentException - if field reference is not recognized.private BufferFieldImpl(FieldReference fieldRef, int index, TableMapper.LegacyFieldInfo lfi)
fieldRef - A reference to an extent field, which does not have an index into a specific element.index - A one-based index into an extent field.lfi - The legacy field info (used in case of denormalized fields)protected boolean processResource()
processResource in class HandleResourcefalse.public character name()
name attribute of a BUFFER-FIELD, which is the legacy name of the
field referenced by this object.name in interface Nameablename in class HandleChainpublic java.lang.String _name()
name attribute of handle as a string._name in class HandleChainpublic logical available()
available in interface Availabletrue if the query buffer has a record with a field available that
corresponds to this buffer-field object handle;
false if the query buffer has a record with the field missing that
corresponds to this buffer-field object handle;
Unknown value (?) if the query buffer associated with this buffer-field object
handle has no record..public integer extent()
extent in interface BufferFieldpublic character initial()
The value of the INITIAL schema field (which is always CHARACTER), formatted with the buffer-field's format. If the INITIAL schema field has the Unknown value (?), the value of the INITIAL attribute is the null string ("").
initial in interface BufferFieldpublic character stringValue()
stringValue in interface BufferFieldpublic character stringValue(int index)
stringValue in interface BufferFieldindex - An integer expression representing a subscript, for fields that
have extents.public character stringValue(NumberType index)
stringValue in interface BufferFieldindex - An integer expression representing a subscript, for fields that
have extents.public BaseDataType value(int index)
value in interface BufferFieldindex - A base-1 INTEGER expression representing a subscript, for fields that have extents.public BaseDataType value(NumberType index)
value in interface BufferFieldindex - A base-1 INTEGER expression representing a subscript, for fields that have extents.unknown if it is a scalar one.public void changeValue(int index,
java.lang.Object newValue)
changeValue in interface BufferFieldindex - An INTEGER expression representing a subscript, for fields
that have extents.newValue - New value of a buffer-field object.public void changeValue(NumberType index, java.lang.Object newValue)
changeValue in interface BufferFieldindex - An INTEGER expression representing a subscript, for fields
that have extents.newValue - New value of a buffer-field object.public BaseDataType value()
value in interface BufferFieldunknown value is returned.public void changeValue(java.lang.Object newValue)
Setter of current value of a buffer-field object. If you modify the BUFFER-VALUE attribute, Progress sets the buffer-field object to the new value.
Special care is taken when the field is a CHARACTER and the LITERAL-QUESTION is the default
value false; in this case the
BUFFER-VALUE specification does not mention any thing about the
string length, and also upholds that enclosing quotes are removed. The current
implementation reflects the 4GL's behaviour obtained by manual testing.yes the string are not affected.changeValue in interface BufferFieldnewValue - New value of a buffer-field object.public character bufferName()
bufferName in interface BufferFieldpublic handle bufferHandle()
bufferHandle in interface BufferFieldpublic Buffer getBuffer()
public logical literalQuestion()
literalQuestion in interface BufferFieldpublic void changeLiteralQuestion(logical literalQuestion)
changeLiteralQuestion in interface BufferFieldliteralQuestion - New value of LITERAL-QUESTION attribute.public character validateMessage()
validateMessage in interface BufferFieldpublic void changeValidateMessage(character validateMessage)
changeValidateMessage in interface BufferFieldvalidateMessage - New value of VALIDATE-MESSAGE attribute.public logical mandatory()
mandatory in interface BufferFieldpublic integer position()
position in interface BufferFieldpublic character validateExpression()
validateExpression in interface BufferFieldpublic void changeValidateExpression(character validateExpression)
changeValidateExpression in interface BufferFieldvalidateExpression - New value of VALIDATE-EXPRESSION attribute.public boolean valid()
valid in interface WrappedResourcetrue if we are valid (can be used).public character getDbName()
getDbName in interface DatabaseInfopublic character getTable()
getTable in interface DatabaseInfopublic decimal getHeightChars()
HandleResource.invalidAttribute(java.lang.String, boolean) to
display appropriate error.getHeightChars in interface Sizeablepublic void setHeightChars(NumberType h)
HandleChain.readOnlyError(java.lang.String) to display appropriate error.setHeightChars in interface Sizeableh - Not used.public void setHeightChars(double h)
HandleChain.readOnlyError(java.lang.String) to display appropriate error.setHeightChars in interface Sizeableh - Not used.public decimal getWidthChars()
getWidthChars in interface Sizeablepublic decimal getWidth()
public void setWidthChars(NumberType widthChars)
setWidthChars in interface SizeablewidthChars - The new value for the WIDTH-CHARS attribute.public void setWidthChars(double widthChars)
setWidthChars in interface SizeablewidthChars - The new value for the WIDTH-CHARS attribute.public void setWidth(NumberType widthChars)
public decimal getHeight()
public void setHeight(NumberType heightChars)
public integer getWidthPixels()
HandleResource.invalidAttribute(java.lang.String, boolean) to display appropriate error.getWidthPixels in interface Sizeablepublic void setWidthPixels(NumberType widthPixels)
HandleChain.readOnlyError(java.lang.String) to display appropriate error.setWidthPixels in interface SizeablewidthPixels - Not used.public void setWidthPixels(int widthPixels)
HandleChain.readOnlyError(java.lang.String) to display appropriate error.setWidthPixels in interface SizeablewidthPixels - Not used.public integer getHeightPixels()
HandleResource.invalidAttribute(java.lang.String, boolean) to display appropriate error.getHeightPixels in interface Sizeablepublic void setHeightPixels(NumberType heightPixels)
HandleChain.readOnlyError(java.lang.String) to display appropriate error.setHeightPixels in interface SizeableheightPixels - Not used.public void setHeightPixels(int heightPixels)
HandleChain.readOnlyError(java.lang.String) to display appropriate error.setHeightPixels in interface SizeableheightPixels - Not used.public character getFormat()
getFormat in interface CommonFieldpublic void setFormat(java.lang.String format)
setFormat in interface CommonFieldformat - The new value.public void setFormat(character format)
setFormat in interface CommonFieldformat - The new value.public character getColumnLabel()
getColumnLabel in interface CommonFieldpublic void setColumnLabel(character columnLabel)
setColumnLabel in interface CommonFieldcolumnLabel - New value of a attribute.public void setColumnLabel(java.lang.String columnLabel)
setColumnLabel in interface CommonFieldcolumnLabel - New value of a attribute.public character getDataType()
getDataType in interface CommonFieldpublic void setDataType(java.lang.String dataType)
DATA-TYPE attribute.setDataType in interface CommonFielddataType - The DATA-TYPE to be set.public void setDataType(character dataType)
DATA-TYPE attribute..setDataType in interface CommonFielddataType - The DATA-TYPE to be set.public character getLabel()
getLabel in interface CommonFieldpublic void setLabel(java.lang.String label)
LABEL attribute of handle.setLabel in interface CommonFieldlabel - The LABEL to be set.public void setLabel(character label)
LABEL attribute of handle.setLabel in interface CommonFieldlabel - The LABEL to be set.public character getADMData()
getADMData in interface ADMDatapublic void setADMData(java.lang.String value)
setADMData in interface ADMDatavalue - The new value.public void setADMData(character value)
setADMData in interface ADMDatavalue - The new value.public integer getUniqueID()
getUniqueID in interface UniqueIDpublic logical caseSensitive()
caseSensitive in interface BufferFieldpublic character getSerializeName()
SERIALIZE-NAME attribute.getSerializeName in interface NamedSerializableSERIALIZE-NAME attribute.public void setSerializeName(Text sName)
SERIALIZE-NAME attribute.setSerializeName in interface NamedSerializablesName - the new value for the SERIALIZE-NAME attribute.public void setSerializeName(java.lang.String sName)
SERIALIZE-NAME attribute.setSerializeName in interface NamedSerializablesName - the new value for the SERIALIZE-NAME attribute.public java.lang.String getProperty()
public java.lang.String getOriginalPropertyName()
public FieldReference createFieldReference(java.lang.Integer extIndex)
FieldReference held by this instance.extIndex - The extent index. If none, null is accepted.FieldReference held by this instance.protected boolean resourceDelete()
resourceDelete in class HandleResourcetrue if the resource was deleted.protected boolean hasPrevSibling()
hasPrevSibling in class HandleChainfalse.protected boolean hasNextSibling()
hasNextSibling in class HandleChainfalse.Buffer getDMOProxy()
void forceDelete()
int _extent()
private BaseDataType value(int index, boolean validate)
index - One-based subscript of the extent field to be changed.validate - true to validate index, else false.private void changeValue(int index,
java.lang.Object newValue,
boolean validate)
index - One-based subscript of the extent field to be changed.newValue - New value to set into the extent field.validate - true to validate index, else false.private boolean validateBufferFieldIndex(NumberType index)
index - Index value (unadjusted) provided by converted business logic.true if index is valid, else false.ErrorConditionException - if index is invalid and session is not in silent error mode.private boolean validateBufferFieldIndex(int index)
index - Index value (unadjusted) provided by converted business logic, or -1
if that value was unknown.true if index is valid, else false.ErrorConditionException - if index is invalid and session is not in silent error mode.private boolean checkUnknown(java.lang.String attributeName,
BaseDataType value)
attributeName - Name of the attribute which value is checked.value - Value of the attribute to be checked.false if the value is unknown.private RecordBuffer getParentBuffer()
public character getXmlDataType()
getXmlDataType in interface XmlNodepublic void setXmlDataType(java.lang.String newType)
setXmlDataType in interface XmlNodenewType - the new XML Schema data type for the buffer-field object.public void setXmlDataType(Text newType)
setXmlDataType in interface XmlNodenewType - the new XML Schema data type for the buffer-field object.public character getXmlNodeType()
XML-NODE-TYPE ABL attribute.getXmlNodeType in interface XmlNodepublic void setXmlNodeType(Text newType)
XML-NODE-TYPE ABL attribute.setXmlNodeType in interface XmlNodenewType - The new type.public void setXmlNodeType(java.lang.String newType)
XML-NODE-TYPE ABL attribute.setXmlNodeType in interface XmlNodenewType - The new type.public void setXmlNodeType(SerializeOptions.XmlNodeType newType)
XML-NODE-TYPE ABL attribute.newType - The new type.public logical getSerializeHidden()
SERIALIZE-HIDDEN ABL attribute.getSerializeHidden in interface SerializeHiddenabletrue when the fields are hidden.public void setSerializeHidden(logical val)
SERIALIZE-HIDDEN ABL attribute.setSerializeHidden in interface SerializeHiddenableval - true when the fields are hidden.public void setSerializeHidden(boolean val)
SERIALIZE-HIDDEN ABL attribute.setSerializeHidden in interface SerializeHiddenableval - true when the fields are hidden.public integer getDecimals()
getDecimals in interface BufferFieldpublic void setDecimals(NumberType decimals)
This attribute is writable for temp-tables but only read-only for permanent tables.
setDecimals in interface BufferFielddecimals - The new number of decimals after the decimal point for this buffer-field.public void setDecimals(long decimals)
This attribute is writable for temp-tables but only read-only for permanent tables.
setDecimals in interface BufferFielddecimals - The new number of decimals after the decimal point for this buffer-field.public logical isKey()
isKey in interface BufferFieldtrue if this field is part of an index.public character getXmlNodeName()
DataSet, a TempTable, a TemporaryBuffer, or a temp-table
BufferField) name in an XML document.getXmlNodeName in interface XmlNodepublic void setXmlNodeName(java.lang.String name)
DataSet, a TempTable, a TemporaryBuffer, or a temp-table
BufferField) name in an XML document.setXmlNodeName in interface XmlNodename - The new name of the XML element for this object.public void setXmlNodeName(Text name)
DataSet, a TempTable, a TemporaryBuffer, or a temp-table
BufferField) name in an XML document.setXmlNodeName in interface XmlNodename - The new name of the XML element for this object.public BaseDataType getDefaultValue()
getDefaultValue in interface BufferFieldpublic character getDefaultString()
getDefaultString in interface BufferFieldpublic void setDefaultString(java.lang.String val)
setDefaultString in interface BufferFieldval - The default-string value.public void setDefaultString(character val)
setDefaultString in interface BufferFieldval - The default-string value.public character getHelp()
getHelp in interface CommonFieldpublic void setHelp(java.lang.String help)
HELP attribute of handle.setHelp in interface CommonFieldhelp - The HELP to be set.public void setHelp(character help)
HELP attribute of handle.setHelp in interface CommonFieldhelp - The HELP to be set.public java.lang.String toString()
toString in class HandleResourcepublic logical isReadOnly()
isReadOnly in interface WriteProtectabletrue if the widget is write-protected.public void setReadOnly(boolean ro)
setReadOnly in interface WriteProtectablero - true if the widget should be write-protected.public void setReadOnly(logical ro)
setReadOnly in interface WriteProtectablero - true if the widget should be write-protected.public character viewAs()
viewAs in interface BufferFieldpublic void viewAs(java.lang.String viewAs)
viewAs in interface BufferFieldviewAs - The flag state.public void viewAs(character viewAs)
viewAs in interface BufferFieldviewAs - The flag state.P2JField asP2JField()
P2JField object and
return it. Because some parts of the is not immutable, each time this method is invoked, a fresh
object is created to reflect the current status.P2JField object.boolean _literalQuestion()
java.lang.String getLcLegacyName()
private BaseDataType initialValue()
private TableMapper.LegacyFieldInfo computeLegacyInfo()
LegacyFieldInfo associated with this field. This method also updates
the mutableSerializationOptions if the field belongs to a temp-table.LegacyFieldInfo associated with this field.