public class ExecTableWithRef extends ExecuteTable
BATCH, DATASOURCE, DATE, dateData, dbQuery, doubleData, DRIVERMANAGER, errorString, EXECUTE, fieldCount, fieldNames, fieldTypes, INTEGER, integerData, isAfterCommit, isDebug, keyField, messageBean, messages, messageScript, NUMBER, orderBy, QUERY, queryString, resultMessage, runDB, selectFields, selectFTs, STRING, stringData, tableData, tableNames, UPDATE
Constructor and Description |
---|
ExecTableWithRef(RunDB runDB,
java.lang.String[] tableNames,
java.lang.String[] fieldNames,
int[] fieldTypes,
java.lang.String orderBy,
java.lang.String[] selectFields,
int[] selectFTs,
DateFormatter dateFormatter,
java.lang.String[] refTableNames,
java.lang.String[] refFieldNames,
int[] refFieldMatchs,
MessageBean messageBean)
The basic variables of the constructor include database, table, form, and field information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
tableActionWR(java.lang.String action,
java.lang.String[] formData,
PrepQueryWithRef pqAdvanced)
Perform table movements (select, insert, update, or delete) with reference data and return result data.
|
closeAll, getDefErrStr, getDefMsgScr, getDefResMsg, getErrorString, getMessageBean, getMessages, getMessageScript, getNewRecord, getQueryString, getResultMessage, initMessages, isDebug, selectData, setAfterCommit, setDebug, setDefErrStr, setDefMsgScr, setDefResMsg, setMessageBean, setMessages, setQueryString, tableAction
public ExecTableWithRef(RunDB runDB, java.lang.String[] tableNames, java.lang.String[] fieldNames, int[] fieldTypes, java.lang.String orderBy, java.lang.String[] selectFields, int[] selectFTs, DateFormatter dateFormatter, java.lang.String[] refTableNames, java.lang.String[] refFieldNames, int[] refFieldMatchs, MessageBean messageBean)
runDB
- For connecting the database and executing processes.tableNames
- The table names to be accessed.fieldNames
- Names of fields of the table to access.fieldTypes
- The data types of the fields of the table to access.orderBy
- The field names to sort in the query statement to be generated.selectFields
- List of selected fields from view.selectFTs
- The data types of the fields of the table to access.dateFormatter
- instance for Formatting for dates.refTableNames
- The reference table name to be accessed.refFieldNames
- The string of names of the fields of reference tables to be accessed.refFieldMatchs
- Sequence of the reference fields to be accessed.messageBean
- MessageBean instance for getting general messages.public boolean tableActionWR(java.lang.String action, java.lang.String[] formData, PrepQueryWithRef pqAdvanced)
action
- The action variable determines which action will take.formData
- Taken data from the form in String arraypqAdvanced
- Represent of The PrepQueryWithRef instance for setting queries.