类 ClassBase
java.lang.Object
com.gdxsoft.easyweb.datasource.ClassBase
- 直接已知子类:
EwaModDownload,EwaWf,EwaWfCnn,EwaWfUnit
用于ORMAP的基类
The ORMAP base class
The ORMAP base class
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明获取扩展
Return the extend object from the name获取扩展属性
Get the extends propertiesgetFieldPageValue(String filedName) 获取变化字段的记录表
Get the changed fieldsvoid利用 rv 初始化/修改对象
Initialized the class parameters through the RequestValuevoidinitValues(DTRow row) 根据 DTRow对象,初始化值
Initialized the object properties through the table rowvoidinitValues(org.json.JSONObject json) 根据JSON对象,初始化值
Initialized the object properties through the JSON objectvoidinitValues(org.json.JSONObject json, IHandleJsonBinary handleJsonBinaryImpl) 根据JSON对象,初始化值 Initialized the class parameters through the JSONbooleanWhether is have the extendvoidrecordChanged(String field_name, Object oriValue, Object newValue) 记录字段是否变化
Record the field value changedvoid设置扩展
Set the extendvoid开始记录变化的字段,清空 MapFieldChanged
Start to record the changed field, clear the MapFieldChangedorg.json.JSONObjecttoJSON()返回JSON对象,输出json的字段大小写按照数据库字段定义
Return the JSON objectorg.json.JSONObjecttoJSON(int fieldUpperOrLowerOrNoChange) 返回JSON对象org.json.JSONObject返回JSON对象,输出json的字段小写org.json.JSONObject返回JSON对象,输出json的字段大写
-
构造器详细资料
-
ClassBase
public ClassBase()
-
-
方法详细资料
-
getField
-
getFieldPageValue
-
getExt
获取扩展
Return the extend object from the name- 参数:
name- the extend object name- 返回:
- the extend object
-
setExt
设置扩展
Set the extend- 参数:
name- the extend nameval- the extend object
-
isExtHave
Whether is have the extend- 参数:
name- the extend name- 返回:
- true: yes/ false: no
-
startRecordChanged
public void startRecordChanged()开始记录变化的字段,清空 MapFieldChanged
Start to record the changed field, clear the MapFieldChanged -
recordChanged
记录字段是否变化
Record the field value changed- 参数:
field_name- the field nameoriValue- the original valuenewValue- the new value
-
initValues
public void initValues(org.json.JSONObject json) 根据JSON对象,初始化值
Initialized the object properties through the JSON object- 参数:
json- the JSON object
-
initValues
根据 DTRow对象,初始化值
Initialized the object properties through the table row- 参数:
row- the table row
-
initOrUpdateValues
利用 rv 初始化/修改对象
Initialized the class parameters through the RequestValue- 参数:
rv- the RequestValue- 抛出:
Exception- the exception
-
initValues
根据JSON对象,初始化值 Initialized the class parameters through the JSON- 参数:
json- the JSONhandleJsonBinaryImpl- 处理二进制的接口 the interface of the get the JSON binary
-
toJSON
public org.json.JSONObject toJSON()返回JSON对象,输出json的字段大小写按照数据库字段定义
Return the JSON object- 返回:
- the JSON object
-
toJsonFieldUpper
public org.json.JSONObject toJsonFieldUpper()返回JSON对象,输出json的字段大写- 返回:
-
toJsonFieldLower
public org.json.JSONObject toJsonFieldLower()返回JSON对象,输出json的字段小写- 返回:
-
toJSON
public org.json.JSONObject toJSON(int fieldUpperOrLowerOrNoChange) 返回JSON对象- 参数:
fieldUpperOrLowerOrNoChange- 输出json的字段大小写
-1:小写
1:大写
其它值:按照数据库字段定义- 返回:
-
getExtends
获取扩展属性
Get the extends properties- 返回:
- the _Extends
-
getMapFieldChanged
获取变化字段的记录表
Get the changed fields- 返回:
- the changed field
-