| Table of Contents |
|---|
Description
| Thai |
|---|
ลักษณะ |
- org.joget.apps.form.dao.FormDataDao
- Under wflow-core module
- Service method used to manage form data in database
Code Sample
| Thai |
|---|
ตัวอย่างโค้ด |
| Code Block | ||
|---|---|---|
| ||
import org.joget.apps.app.service.AppUtil;
import org.joget.apps.form.dao.FormDataDao;
import org.joget.apps.form.model.FormRow;
FormDataDao formDataDao = (FormDataDao) AppUtil.getApplicationContext().getBean("formDataDao");
String formId = "crm_account";
String tableName = "crm_account";
String id = "0001";
//Get the record
FormRow row = formDataDao.load(formId, tableName, id); |
Methods
| Thai |
|---|
กระบวนการ |
clearFormCache
public void clearFormCache(org.joget.apps.form.model.Form form)
Clear cache for a form
| Thai |
|---|
แบบสอบถามจำนวนแถวทั้งหมดสำหรับฟอร์ม |
count
public java.lang.Long count(org.joget.apps.form.model.Form form, final java.lang.String condition, final java.lang.Object[] params)
Query total row count for a form.
| Thai |
|---|
แบบสอบถามจำนวนแถวทั้งหมดสำหรับฟอร์ม |
count
public java.lang.Long count(java.lang.String formDefId, java.lang.String tableName, final java.lang.String condition, final java.lang.Object[] params)
Query total row count for a form.
| Thai |
|---|
แบบสอบถามจำนวนแถวทั้งหมดสำหรับฟอร์ม |
delete
public void delete(org.joget.apps.form.model.Form form, java.lang.String[] primaryKeyValues)
Delete form data by primary keys
| Thai |
|---|
ลบข้อมูลแบบฟอร์มด้วยคีย์หลัก |
delete
public void delete(java.lang.String formDefId, java.lang.String tableName, java.lang.String[] primaryKeyValues)
Delete form data by primary keys
| Thai |
|---|
ลบข้อมูลแบบฟอร์มด้วยคีย์หลัก |
delete
public void delete(java.lang.String formDefId, java.lang.String tableName, org.joget.apps.form.model.FormRowSet rows)
Delete form data by rows
| Thai |
|---|
ลบข้อมูลแบบฟอร์มตามแถว |
find
public org.joget.apps.form.model.FormRowSet find(org.joget.apps.form.model.Form form, final java.lang.String condition, final java.lang.Object[] params, final java.lang.String sort, final java.lang.Boolean desc, final java.lang.Integer start, final java.lang.Integer rows)
Query to find a list of matching form rows.
| Thai |
|---|
แบบสอบถามเพื่อค้นหารายการของแถวแบบฟอร์มที่ตรงกัน |
find
public org.joget.apps.form.model.FormRowSet find(java.lang.String formDefId, java.lang.String tableName, final java.lang.String condition, final java.lang.Object[] params, final java.lang.String sort, final java.lang.Boolean desc, final java.lang.Integer start, final java.lang.Integer rows)
Query to find a list of matching form rows.
| Thai |
|---|
แบบสอบถามเพื่อค้นหารายการของแถวแบบฟอร์มที่ตรงกัน |
findPrimaryKey
public java.lang.String findPrimaryKey(org.joget.apps.form.model.Form form, final java.lang.String fieldName, final java.lang.String value)
Query to find find primary key based on a field name and it's value.
| Thai |
|---|
แบบสอบถามเพื่อค้นหาคีย์หลักตามชื่อฟิลด์และเป็นค่า |
findPrimaryKey
public java.lang.String findPrimaryKey(java.lang.String formDefId, java.lang.String tableName, final java.lang.String fieldName, final java.lang.String value)
Query to find find primary key based on a field name and it's value.
| Thai |
|---|
แบบสอบถามเพื่อค้นหาคีย์หลักตามชื่อฟิลด์และเป็นค่า |
getEntityName
public java.lang.String getEntityName(java.lang.String tableName, java.lang.String columnName)
Returns EntityName of form mapped to a table & column
| Thai |
|---|
ส่งคืน EntityName ของฟอร์มที่แมปกับตารางและคอลัมน์ |
getFormDefinitionColumnNames
...
Returns collection of all columns from forms mapped to a table
| Thai |
|---|
ส่งกลับคอลเลกชันของคอลัมน์ทั้งหมดจากแบบฟอร์มที่แมปไปยังตาราง |
getFormEntityName
public java.lang.String getFormEntityName(org.joget.apps.form.model.Form form)
Gets the generated hibernate entity name for the form
| Thai |
|---|
รับชื่อเอนทิตีไฮเบอร์เนตที่สร้างขึ้นสำหรับแบบฟอร์ม |
getFormEntityName
public java.lang.String getFormEntityName(java.lang.String formDefId)
Gets the generated hibernate entity name for the form
| Thai |
|---|
รับชื่อเอนทิตีไฮเบอร์เนตที่สร้างขึ้นสำหรับแบบฟอร์ม |
getFormRowColumnNames
public java.util.Collection<java.lang.String> getFormRowColumnNames(org.joget.apps.form.model.FormRowSet rowSet)
Returns collection of all column names to be saved
| Thai |
|---|
ส่งคืนการรวบรวมชื่อคอลัมน์ทั้งหมดที่จะบันทึก |
getFormTableName
public java.lang.String getFormTableName(org.joget.apps.form.model.Form form)
Gets the defined table name for the form
| Thai |
|---|
รับชื่อตารางที่กำหนดสำหรับฟอร์ม |
getFormTableName
public java.lang.String getFormTableName(java.lang.String formDefId, java.lang.String tableName)
Gets the defined table name for the form
| Thai |
|---|
รับชื่อตารางที่กำหนดสำหรับฟอร์ม |
load
public org.joget.apps.form.model.FormRow load(org.joget.apps.form.model.Form form, java.lang.String primaryKey)
Loads a data row for a form based on the primary key
| Thai |
|---|
โหลดแถวข้อมูลสำหรับฟอร์มโดยยึดตามคีย์หลัก |
load
public org.joget.apps.form.model.FormRow load(java.lang.String formDefId, java.lang.String tableName, java.lang.String primaryKey)
Loads a data row for a form based on the primary key
| Thai |
|---|
โหลดแถวข้อมูลสำหรับฟอร์มโดยยึดตามคีย์หลัก |
loadByTableNameAndColumnName
...
Paramaters:
columnName - is not used
| Thai |
|---|
โหลดแถวข้อมูลสำหรับตารางตามคีย์หลัก paramaters: columnName - ไม่ได้ใช้ |
loadWithoutTransaction
public org.joget.apps.form.model.FormRow loadWithoutTransaction(org.joget.apps.form.model.Form form, java.lang.String primaryKey)
...
This method is transactional (since v5), but retains the method name for backward compatibility reasons.
| Thai |
|---|
โหลดแถวข้อมูลสำหรับฟอร์มโดยยึดตามคีย์หลัก เมธอดนี้เป็นทรานแซคชัน (ตั้งแต่ v5) แต่คงชื่อเมธอดไว้ด้วยเหตุผลด้านความเข้ากันได้แบบย้อนหลัง |
loadWithoutTransaction
public org.joget.apps.form.model.FormRow loadWithoutTransaction(java.lang.String formDefID, java.lang.String tableName, java.lang.String primaryKey)
...
This method is transactional (since v5), but retains the method name for backward compatibility reasons.
| Thai |
|---|
โหลดแถวข้อมูลสำหรับฟอร์มโดยยึดตามคีย์หลัก เมธอดนี้เป็นทรานแซคชัน (ตั้งแต่ v5) แต่คงชื่อเมธอดไว้ด้วยเหตุผลด้านความเข้ากันได้แบบย้อนหลัง |
saveOrUpdate
public void saveOrUpdate(org.joget.apps.form.model.Form form, org.joget.apps.form.model.FormRowSet rowSet)
Saves (creates or updates) form data
| Thai |
|---|
บันทึก (สร้างหรืออัพเดต) ข้อมูลในฟอร์ม |
saveOrUpdate
public void saveOrUpdate(java.lang.String formDefId, java.lang.String tableName, org.joget.apps.form.model.FormRowSet rowSet)
Saves (creates or updates) form data
| Thai |
|---|
บันทึก (สร้างหรืออัพเดต) ข้อมูลในฟอร์ม |
updateSchema
public void updateSchema(org.joget.apps.form.model.Form form, org.joget.apps.form.model.FormRowSet rowSet)
Call Hibernate to update DB schema
| Thai |
|---|
โทรหา Hibernate เพื่ออัพเดท DB schema |
updateSchema
public void updateSchema(java.lang.String formDefId, java.lang.String tableName, org.joget.apps.form.model.FormRowSet rowSet)
Call Hibernate to update DB schema
| Thai |
|---|
โทรหา Hibernate เพื่ออัพเดท DB schema |