类 ClassBase

java.lang.Object
com.gdxsoft.easyweb.datasource.ClassBase
直接已知子类:
EwaModDownload, EwaWf, EwaWfCnn, EwaWfUnit

public class ClassBase extends Object
用于ORMAP的基类
The ORMAP base class
  • 构造器详细资料

    • ClassBase

      public ClassBase()
  • 方法详细资料

    • getField

      public Object getField(String filedName)
    • getFieldPageValue

      public PageValue getFieldPageValue(String filedName)
    • getExt

      public Object getExt(String name)
      获取扩展
      Return the extend object from the name
      参数:
      name - the extend object name
      返回:
      the extend object
    • setExt

      public void setExt(String name, Object val)
      设置扩展
      Set the extend
      参数:
      name - the extend name
      val - the extend object
    • isExtHave

      public boolean isExtHave(String name)
      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

      public void recordChanged(String field_name, Object oriValue, Object newValue)
      记录字段是否变化
      Record the field value changed
      参数:
      field_name - the field name
      oriValue - the original value
      newValue - 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

      public void initValues(DTRow row)
      根据 DTRow对象,初始化值
      Initialized the object properties through the table row
      参数:
      row - the table row
    • initOrUpdateValues

      public void initOrUpdateValues(RequestValue rv) throws Exception
      利用 rv 初始化/修改对象
      Initialized the class parameters through the RequestValue
      参数:
      rv - the RequestValue
      抛出:
      Exception - the exception
    • initValues

      public void initValues(org.json.JSONObject json, IHandleJsonBinary handleJsonBinaryImpl)
      根据JSON对象,初始化值 Initialized the class parameters through the JSON
      参数:
      json - the JSON
      handleJsonBinaryImpl - 处理二进制的接口 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

      public Map<String,Object> getExtends()
      获取扩展属性
      Get the extends properties
      返回:
      the _Extends
    • getMapFieldChanged

      public HashMap<String,Boolean> getMapFieldChanged()
      获取变化字段的记录表
      Get the changed fields
      返回:
      the changed field