|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.thortech.xl.vo.UDFormData
public class UDFormData
Value object that store both the parent and child table data for a form.
Constructor Summary | |
---|---|
UDFormData(long objectKey, java.lang.String objectName, long formDefinitionKey, java.lang.String formDefinitionName, java.lang.String frmType) Constructor |
Method Summary | |
---|---|
UDChildTableRecord |
addChildTableRecord(java.lang.String tableKey, java.lang.String tableName, java.lang.String action, java.util.HashMap recordValues) Add Child Table Record and Action Type |
UDChildTableRecord[] |
getChildTableRecords(java.lang.String tableKey) Get all the Child Table Records for a particular child table |
java.util.HashMap |
getChildTables() Get all Child Tables for which data has been provided |
java.util.HashMap |
getChildTableVersions() Returns the child table versions the data is associated with |
java.util.HashMap |
getFormData() Returns all the data set for the parent form |
long |
getFormDefinitionKey() Returns the key of the form definition for which data is specified |
java.lang.String |
getFormName() Returns the name of the form for which data is specified |
java.lang.String |
getFormType() Returns the type of the form for which data is specified |
long |
getFormVersion() Parent from version |
long |
getObjectKey() Returns the key of the object for which data is specified |
java.lang.String |
getObjectName() Returns the name of the object for which data is specified |
java.lang.String |
getValue(java.lang.String fieldName) Gets the value for specified field from the form data |
void |
removeChildTableRecord(java.lang.String tableKey, UDChildTableRecord record) Remove a Child Table Record from the value object |
void |
setChildTableVersions(java.util.HashMap childTableVersions) Sets the child table key and version the child table data is associated with |
void |
setFormData(java.util.HashMap parentFormData) Sets the data for the parent form |
void |
setFormVersion(long formVersion) Sets the parent form version the parent data is associated with |
void |
setValue(java.lang.String fieldName, java.lang.String value) Sets the value for specified field in the form data |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UDFormData(long objectKey, java.lang.String objectName, long formDefinitionKey, java.lang.String formDefinitionName, java.lang.String frmType)
objectKey
- Resource Object KeyobjectName
- Resource Object NameformDefinitionKey
- Key of the parent formformDefinitionName
- Name of the parent formfrmType
- form typeMethod Detail |
---|
public java.util.HashMap getFormData()
public void setFormData(java.util.HashMap parentFormData)
parentFormData
- HashMap representing the record. Key is the column name, Value is the column valuepublic UDChildTableRecord addChildTableRecord(java.lang.String tableKey, java.lang.String tableName, java.lang.String action, java.util.HashMap recordValues)
tableKey
- child tbale key to which record is addedtableName
- child tbale name to which record is addedaction
- action indicates whether you want to add/delete a child table record. the values that should be provided are Add OR DeleterecordValues
- child table record datapublic void removeChildTableRecord(java.lang.String tableKey, UDChildTableRecord record)
tableKey
- table from which the record should be deletedrecord
-public UDChildTableRecord[] getChildTableRecords(java.lang.String tableKey)
tableKey
-public java.util.HashMap getChildTables()
public void setValue(java.lang.String fieldName, java.lang.String value)
fieldName
- name of the field in the formvalue
- value to be setpublic java.lang.String getValue(java.lang.String fieldName)
fieldName
- fieldName for which to retreive the form datapublic long getObjectKey()
public java.lang.String getObjectName()
public long getFormDefinitionKey()
public java.lang.String getFormName()
public java.lang.String getFormType()
public long getFormVersion()
public void setFormVersion(long formVersion)
formVersion,
- parent form version numberpublic java.util.HashMap getChildTableVersions()
public void setChildTableVersions(java.util.HashMap childTableVersions)
childTableVersions
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |