public class BaseTableimpl extends BaseCommonBoImpl implements BaseTable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
boolean |
dataisexists |
java.lang.String |
errMesg |
static java.lang.String[] |
KEY_ACTION |
static java.lang.String[] |
KEY_ALLFIELDList |
static java.lang.String |
KEY_Parameters |
java.util.Vector |
tmpRowdata |
static java.lang.String[] |
VALUE_ACTION |
static java.lang.String |
VALUE_ACTION_ADD |
static java.lang.String |
VALUE_ACTION_DELETE |
static java.lang.String |
VALUE_ACTION_REPLACE |
static java.lang.String |
VALUE_ACTION_UPDATE |
static java.lang.String |
VALUE_Parameters_使用TABLE介面 |
| Constructor and Description |
|---|
BaseTableimpl() |
BaseTableimpl(MaliContext inContext) |
BaseTableimpl(MaliContext inContext,
java.lang.Object inTable) |
BaseTableimpl(MaliContext inContext,
java.lang.String inTablename) |
BaseTableimpl(java.lang.Object inTable) |
BaseTableimpl(java.lang.String inTablename)
建購方式用 tablename
|
BaseTableimpl(java.lang.String Sysid,
java.lang.String inTablename)
建購方式用 系統別,tablename
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkSQLAction() |
void |
ConvertToBaseTable(java.lang.Object obj) |
java.lang.Object |
createObjectByByteArray(byte[] theDataBytes) |
void |
delete()
刪除
|
void |
execute()
執行資料庫存檔動作
|
void |
execute(boolean R_mode) |
void |
fillColumns()
將table 中非此table 之欄位清除
|
void |
generatePrimaryId()
產生 primaryid唯一序號,針對有設定 primaryidkey 者執行generatePrimaryid才有效
|
java.lang.String |
getActionmode() |
java.util.Vector |
getAllFieldList() |
BaseTable |
getBaseTable()
取 此介面的 BaseTable
|
BaseTable |
getBasetablefield(java.lang.String infield) |
java.util.Calendar |
getCalendarfield(java.lang.String fieldname)
取 Calendarfield 資料
|
clsSqlData |
getclsSqlData(java.lang.String infield)
取 clsSqlData 格式的值
參數為欄位名稱
|
java.lang.String |
getCommitActionMode()
處理完成的sqlaction mode
|
ConnDbCom |
getConnDbCom()
get 資料庫連結ConndbCom
|
java.lang.String[] |
getCurTablePrimaryKey()
實際的primarykey 若未設定則取系統的primarykey
|
java.lang.String |
getDBColumnType(java.lang.String infield)
取db table 的data column
|
java.lang.Double |
getDoublefield(java.lang.String fieldname)
取資料值 Double 格式
|
java.lang.String |
getErrMesg()
取處理的錯誤訊息;
|
java.util.Vector |
geterrorMesgRowData()
取解析錯誤的欄位資訊
|
int |
getFieldColumnIndex(java.lang.String infieldname)
取 field 欄位是在第幾個Column可提供sort 用, 找不到給 -1
|
java.lang.Object |
getFieldValue(int colnum)
取某個欄位值(依欄位序號)
|
BaseTable |
getInstance() |
java.lang.Integer |
getIntegerfield(java.lang.String fieldname)
取資料值 Integer 格式
|
MaliContext |
getMaliContext()
get MaliContext
|
java.lang.Object |
getObjectfield(java.lang.String fieldname)
取資料值Object 格式
|
BaseTable |
getOldData() |
java.lang.String |
getPimaryId()
若有設定 primaryid key 則取 primaryidkey 中的欄位值, 拼錯字, 請改取 getPrimaryId
|
BaseQuery[] |
getPostexecuteBatchQuery() |
BaseTable[] |
getPostExecuteTable()
取 postExecuteTable
|
BaseTable[] |
getPreExecuteTable()
取 preExecuteTable
|
java.lang.String |
getPrimaryId()
若有設定 primaryid key 則取 primaryidkey 中的欄位值,
|
java.lang.String[] |
getPrimaryKey() |
java.util.Vector |
getPrimaryKeyValue()
取 屬basetable中primarykey 的 Value
|
java.util.Vector |
getRowData() |
java.lang.String |
getROWID() |
java.lang.String |
getStringfield(java.lang.String fieldname)
取資料值String 格式
|
java.lang.String |
getTableName()
取Table Name
|
java.sql.Timestamp |
getTimestampfield(java.lang.String fieldname)
取資料值 TimeStamp 格式(即資料庫的日期格式)
|
java.lang.String |
getUpdateLog() |
java.util.Vector |
getVectorfield(java.lang.String fieldname) |
void |
init() |
void |
inputRowData()
有曾執行過is資料是否存在,可執行inputRowData();
|
void |
insert()
新增
|
boolean |
isDeleteed()
要準備delete
|
boolean |
isexecuteupdate() |
boolean |
isFieldError()
檢查解析是否有誤
|
boolean |
isInserted()
要準備insert
|
boolean |
isPrimaryKey()
是否有primarykey
|
boolean |
isSaveed()
目前為沒有異動狀態
|
boolean |
isStringSpacetoNull() |
boolean |
isUpdated()
要準備update
|
boolean |
is資料是否存在()
檢查資料是否存在
|
void |
modifyoldFieldvalue() |
void |
postDelete()
若有需要在delete 成功後再做判斷和執行時,可於postInsert method處理, 此method 是於所有sql異動處理完成後才執行
|
void |
postInsert()
若有需要在insert 成功後再做判斷和執行時,可於postInsert method處理, 此method 是於所有sql異動處理完成後才執行
|
void |
postUpdate()
若有需要在update成功後再做判斷和執行時,可於postInsert method處理, 此method 是於所有sql異動處理完成後才執行
|
boolean |
preDelete()
delete 前 若有要做檢查動作,可放在 preDelete中, true 再繼續執行 setDeleteTrigger, 失敗,則 Exception 錯誤訊息;
|
boolean |
preInsert()
insert 前 若有要做檢查動作,可放在 preInsert中, true 再繼續執行 setInsertTrigger, 失敗,則 Exception 錯誤訊息;
|
boolean |
preUpdate()
update 前 若有要做檢查動作,可放在 preUpdate中, true 再繼續執行 setUpdateTrigger, 失敗,則 Exception 錯誤訊息;
|
void |
removeField(java.lang.String infield)
remove field ,刪除欄位
|
void |
reset()
reset DataRow 的內容
|
void |
rollBack() |
void |
setActionmode(java.lang.String value)
設定execute 的mode
|
void |
setALLFIELDSList(java.lang.String[] infieldvalue) |
void |
setConnDbCom(ConnDbCom inConn)
若有特別做特殊資料庫連結由此設定
set ConnDbCom
|
void |
setDataBaseType(java.lang.String intype)
set 連線database 代號, 未設是用default
|
void |
setDeleteMode()
set 刪除mode
|
void |
setDeleteTrigger() |
void |
setErrMesg(java.lang.String infield)
set 處理錯誤訊息
|
void |
setErrorMesg(java.lang.String errmesg)
set 錯誤訊息
|
void |
setFielddata(java.lang.String fieldname,
java.lang.Object fieldvalue)
set 欄位名稱, 資料值
|
void |
setFielddata(java.lang.String fieldname,
java.lang.Object fieldvalue,
java.lang.String errmesg)
配合DataLoader 暫存 Loader 每個欄位的錯誤訊息
|
void |
setInsertDefaultValue()
set insert時預設defaultValue
|
void |
setInsertMode()
set 新增mode
|
void |
setInsertTrigger()
可執行 insertTrigger ,在insert會先執行
|
void |
setMaliContext(MaliContext inContext)
set MaliContext
|
void |
setPostexecuteBatchQuery(BaseQuery[] inbaseQuery)
set 在執行任何異動包括insert.update.delete之後若有整批異動.採用baseQuery 方式異動, 異動完成.會將executeBaseQuery的內容清空待下次再執行送入時再重覆執行
|
void |
setPostExecuteTable(BaseTable[] intables)
在執行 insert 或是 update 或是 delet 時要同時一併異動的資料,是在異動此筆之後
|
void |
setPreExecuteTable(BaseTable[] intables)
在執行 insert 或是 update 或是 delete 時要同時一併異動的資料, 在是異動 此筆之前
|
void |
setPrimaryId(java.lang.String fieldvalue)
若有設定 primaryid key ,則 set priamryid 會將 primaryid 放入 primaryidkey 欄位中
|
void |
setPrimaryKey(java.lang.String[] value) |
void |
setReplaceMode()
set replace mode
|
void |
setRowData(java.util.Vector s) |
void |
setROWID(java.lang.String fieldvalue)
進資料庫處理時先將原畫面上的筆數序號送入rowid,提供後面使用
|
void |
setStringSpaceToNull(boolean in)
set 欄位為String 若是space 是否轉為null
|
void |
setStringValue(java.lang.String inValue) |
void |
setTableName(java.lang.String value)
set table name
|
void |
setUpdateDefaultValue()
set update 時預設defaultValue
|
void |
setUpdateMode()
set 更新mode
|
void |
setUpdateTrigger()
udpate trigger , 在 update 前會先執行
|
java.lang.String |
toString() |
void |
update()
修改 update 不做修改 實際primarykey
|
void |
update(boolean isupdateprimarykey)
修改 update 時,可自行決定是否修正實際的primarykey
|
getcreateDateTimeKey, getcreateUserIdKey, getcreateUserOrgIdKey, getmodifyDateTimeKey, getmodifyUserIdKey, getmodifyUserOrgIdKey, getPrimaryIdKey, isFieldbyBaseTable, setcreateDateTimeKey, setcreateUserIdKey, setcreateUserOrgIdKey, setFieldbyBaseTable, setmodifyDateTimeKey, setmodifyUserIdKey, setmodifyUserOrgIdkey, setPrimaryIdKeycreateObjectByteArray, getHashTableContent, setVectorFielddataequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetcreateDateTimeKey, getcreateUserIdKey, getcreateUserOrgIdKey, getmodifyDateTimeKey, getmodifyUserIdKey, getmodifyUserOrgIdKey, getPrimaryIdKey, isFieldbyBaseTable, setcreateDateTimeKey, setcreateUserIdKey, setcreateUserOrgIdKey, setmodifyDateTimeKey, setmodifyUserIdKey, setmodifyUserOrgIdkey, setPrimaryIdKeypublic java.lang.String errMesg
public static final java.lang.String VALUE_ACTION_ADD
public static final java.lang.String VALUE_ACTION_UPDATE
public static final java.lang.String VALUE_ACTION_DELETE
public static final java.lang.String VALUE_ACTION_REPLACE
public static final java.lang.String KEY_Parameters
public static final java.lang.String VALUE_Parameters_使用TABLE介面
public static final java.lang.String[] VALUE_ACTION
public static final java.lang.String[] KEY_ACTION
public boolean dataisexists
public java.util.Vector tmpRowdata
public static java.lang.String[] KEY_ALLFIELDList
public BaseTableimpl(java.lang.String Sysid,
java.lang.String inTablename)
Sysid - 系統別inTablename - TABLE 名稱public BaseTableimpl(MaliContext inContext, java.lang.String inTablename)
public BaseTableimpl(MaliContext inContext)
public BaseTableimpl()
public BaseTableimpl(MaliContext inContext, java.lang.Object inTable)
public BaseTableimpl(java.lang.Object inTable)
public BaseTableimpl(java.lang.String inTablename)
inTablename - public java.util.Vector getRowData()
getRowData in interface BaseTablepublic void delete()
throws java.lang.Exception
public java.lang.String getErrMesg()
BaseTablegetErrMesg in interface BaseTablepublic void insert()
throws java.lang.Exception
BaseTablepublic void update()
throws java.lang.Exception
BaseTablepublic void setFielddata(java.lang.String fieldname,
java.lang.Object fieldvalue)
BaseTablesetFielddata in interface BaseTablepublic void setFielddata(java.lang.String fieldname,
java.lang.Object fieldvalue,
java.lang.String errmesg)
BaseTablesetFielddata in interface BaseTablepublic void reset()
BaseTablepublic java.lang.Integer getIntegerfield(java.lang.String fieldname)
BaseTablegetIntegerfield in interface BaseTablepublic java.lang.Object getObjectfield(java.lang.String fieldname)
BaseTablegetObjectfield in interface BaseTablepublic java.lang.String getStringfield(java.lang.String fieldname)
BaseTablegetStringfield in interface BaseTablefieldname - 欄位名稱public java.util.Vector getVectorfield(java.lang.String fieldname)
public java.sql.Timestamp getTimestampfield(java.lang.String fieldname)
BaseTablegetTimestampfield in interface BaseTablepublic java.lang.Double getDoublefield(java.lang.String fieldname)
BaseTablegetDoublefield in interface BaseTablepublic void setRowData(java.util.Vector s)
setRowData in interface BaseTablepublic java.util.Vector geterrorMesgRowData()
geterrorMesgRowData in interface BaseTablepublic boolean isFieldError()
isFieldError in interface BaseTablepublic java.lang.String getTableName()
BaseTablegetTableName in interface BaseTablepublic boolean isPrimaryKey()
BaseTableisPrimaryKey in interface BaseTablepublic void execute()
throws java.lang.Exception
BaseTablepublic void execute(boolean R_mode)
throws java.lang.Exception
public void setActionmode(java.lang.String value)
BaseTablesetActionmode in interface BaseTablepublic void setPrimaryKey(java.lang.String[] value)
setPrimaryKey in interface BaseTablepublic java.lang.String[] getPrimaryKey()
getPrimaryKey in interface BaseTablepublic void setTableName(java.lang.String value)
BaseTablesetTableName in interface BaseTablepublic java.util.Calendar getCalendarfield(java.lang.String fieldname)
public void update(boolean isupdateprimarykey)
throws java.lang.Exception
BaseTablepublic void inputRowData()
inputRowData in interface BaseTablepublic boolean is資料是否存在()
throws java.lang.Exception
public void setStringValue(java.lang.String inValue)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getActionmode()
getActionmode in interface BaseTablepublic BaseTable getInstance()
getInstance in interface BaseTablepublic BaseTable getBasetablefield(java.lang.String infield)
getBasetablefield in interface BaseTablepublic java.lang.Object createObjectByByteArray(byte[] theDataBytes)
throws java.lang.Exception
createObjectByByteArray in class CommonFieldObjectjava.lang.Exceptionpublic void setMaliContext(MaliContext inContext)
BaseTablesetMaliContext in interface BaseTablepublic ConnDbCom getConnDbCom()
BaseTablegetConnDbCom in interface BaseTablepublic void setConnDbCom(ConnDbCom inConn)
BaseTablesetConnDbCom in interface BaseTablepublic void ConvertToBaseTable(java.lang.Object obj)
ConvertToBaseTable in interface BaseTablepublic void setErrMesg(java.lang.String infield)
BaseTablesetErrMesg in interface BaseTablepublic void removeField(java.lang.String infield)
BaseTableremoveField in interface BaseTableinfield - 欄位名稱 fieldnamepublic java.lang.Object getFieldValue(int colnum)
BaseTablegetFieldValue in interface BaseTablepublic java.lang.String getDBColumnType(java.lang.String infield)
BaseTablegetDBColumnType in interface BaseTablepublic BaseTable getOldData()
getOldData in interface BaseTablepublic BaseTable getBaseTable()
BaseTablegetBaseTable in interface BaseTablepublic boolean isexecuteupdate()
isexecuteupdate in interface BaseTablepublic clsSqlData getclsSqlData(java.lang.String infield)
getclsSqlData in interface BaseTablepublic void setPrimaryId(java.lang.String fieldvalue)
BaseTablesetPrimaryId in interface BaseTablepublic java.lang.String getPimaryId()
BaseTablegetPimaryId in interface BaseTablepublic void setInsertDefaultValue()
BaseTablesetInsertDefaultValue in interface BaseTablepublic void setUpdateDefaultValue()
BaseTablesetUpdateDefaultValue in interface BaseTablepublic void setInsertMode()
setInsertMode in interface BaseTablepublic void setUpdateMode()
setUpdateMode in interface BaseTablepublic void setDeleteMode()
setDeleteMode in interface BaseTablepublic void setReplaceMode()
setReplaceMode in interface BaseTablepublic java.util.Vector getPrimaryKeyValue()
BaseTablegetPrimaryKeyValue in interface BaseTablepublic MaliContext getMaliContext()
BaseTablegetMaliContext in interface BaseTablepublic void setPreExecuteTable(BaseTable[] intables)
BaseTablesetPreExecuteTable in interface BaseTablepublic void setPostExecuteTable(BaseTable[] intables)
BaseTablesetPostExecuteTable in interface BaseTablepublic BaseTable[] getPreExecuteTable()
BaseTablegetPreExecuteTable in interface BaseTablepublic BaseTable[] getPostExecuteTable()
BaseTablegetPostExecuteTable in interface BaseTablepublic java.lang.String getCommitActionMode()
BaseTablegetCommitActionMode in interface BaseTablepublic void setInsertTrigger()
setInsertTrigger in interface BaseTablepublic void setUpdateTrigger()
setUpdateTrigger in interface BaseTablepublic void setDeleteTrigger()
setDeleteTrigger in interface BaseTablepublic int getFieldColumnIndex(java.lang.String infieldname)
BaseTablegetFieldColumnIndex in interface BaseTablepublic boolean preInsert()
throws java.lang.Exception
public boolean preUpdate()
throws java.lang.Exception
public boolean preDelete()
throws java.lang.Exception
public void setErrorMesg(java.lang.String errmesg)
errmesg - public java.lang.String[] getCurTablePrimaryKey()
BaseTablegetCurTablePrimaryKey in interface BaseTablepublic void setDataBaseType(java.lang.String intype)
BaseCommonBoImplsetDataBaseType in class BaseCommonBoImplpublic boolean isUpdated()
BaseTablepublic boolean isInserted()
BaseTableisInserted in interface BaseTablepublic boolean isDeleteed()
BaseTableisDeleteed in interface BaseTablepublic boolean isSaveed()
BaseTablepublic void checkSQLAction()
checkSQLAction in interface BaseTablepublic void generatePrimaryId()
BaseTablegeneratePrimaryId in interface BaseTablepublic void setROWID(java.lang.String fieldvalue)
BaseTablepublic void setPostexecuteBatchQuery(BaseQuery[] inbaseQuery)
BaseTablesetPostexecuteBatchQuery in interface BaseTablepublic BaseQuery[] getPostexecuteBatchQuery()
getPostexecuteBatchQuery in interface BaseTablepublic java.lang.String getPrimaryId()
BaseTablegetPrimaryId in interface BaseTablepublic void setStringSpaceToNull(boolean in)
BaseTablesetStringSpaceToNull in interface BaseTablepublic boolean isStringSpacetoNull()
isStringSpacetoNull in interface BaseTablepublic java.util.Vector getAllFieldList()
public void setALLFIELDSList(java.lang.String[] infieldvalue)
public void fillColumns()
BaseTablefillColumns in interface BaseTablepublic java.lang.String getUpdateLog()
public void modifyoldFieldvalue()
public void rollBack()
throws java.lang.Exception
java.lang.Exceptionpublic void postInsert()
throws java.lang.Exception
BaseTablepostInsert in interface BaseTablejava.lang.Exceptionpublic void postUpdate()
throws java.lang.Exception
BaseTablepostUpdate in interface BaseTablejava.lang.Exceptionpublic void postDelete()
throws java.lang.Exception
BaseTablepostDelete in interface BaseTablejava.lang.Exception