程序包 gu.sql2java

接口 BaseBean

所有已知实现类:
BaseRow, UnnameRow

public interface BaseBean
general operation definition for accessing a record from database
作者:
guyadong
  • 方法概要

    修饰符和类型
    方法
    说明
    Return the column name -- value mapping that filtered by beanfilter
    view of values map for all fields, column name -- value
    asNameValueMap(boolean ignoreNull, boolean serialize, boolean include, Iterable<String> columns)
     
    asNameValueMap(boolean ignoreNull, boolean serialize, boolean include, String... includeColumns)
     
    asNameValueMap(boolean ignoreNull, boolean include, Iterable<String> columns)
     
    asNameValueMap(boolean ignoreNull, boolean include, String... includeColumns)
     
    asNameValueMap(boolean ignoreNull, Iterable<String> ignoreColumns)
     
    asNameValueMap(boolean ignoreNull, String... ignoreColumns)
     
    asValueArray(int... columnIds)
     
    boolean
    Determines if the object has been modified since the last time this method was called.
    We can also determine if this object has ever been modified since its creation.
     
    <B extends BaseBean>
    B
    copy(B bean)
    Copies the passed bean into the current bean.
    <B extends BaseBean>
    B
    copy(B bean, int... fieldList)
    Copies the passed bean into the current bean.
    <B extends BaseBean>
    B
    copy(B bean, com.google.common.base.Predicate<Integer> fieldFilter, int... fieldList)
    Copies the passed bean into the current bean.
    <B extends BaseBean>
    B
    copy(B bean, com.google.common.base.Predicate<String> fieldFilter, String... fieldList)
    Copies the passed bean into the current bean.
    <B extends BaseBean>
    B
    copy(B bean, String... fieldList)
    Copies the passed bean into the current bean.
    <B extends BaseBean, F extends BaseBean>
    B
    copy(F from, Map<Integer,Integer> columnsMap)
    Copies the passed F bean into the current bean.
    <B extends BaseBean>
    B
    copy(Map values)
    [ENABLE_FILTER]
    Copies the passed values with key-value map into the current bean.
    <B extends BaseBean>
    B
    copy(Map values, com.google.common.base.Function keyTransformer, boolean ignoreUnmap)
    [ENABLE_FILTER]
    Copies the passed values with key-value map into the current bean.
    <B extends BaseBean>
    B
    Read record (old record) from the database based on the primary key, copy all fields of the current object that are be modified and different from the old record, and return the updated old record.
    Note: This method can only be used on (local) server side
    <B extends BaseBean>
    B
    copyNoFilter(Map values)
    [DISABLE_FILTER]
    Copies the passed values with key-value map into the current bean.
    <B extends BaseBean>
    B
    copyNoFilter(Map values, com.google.common.base.Function keyTransformer, boolean ignoreUnmap)
    [DISABLE_FILTER]
    Copies the passed values with key-value map into the current bean.
    boolean
    equalColumn(Object object, int columnId)
    check column equation.
    boolean
    equalColumn(Object object, int... fieldList)
    check columns equation.
    boolean
    equalColumn(Object object, com.google.common.base.Predicate<Integer> fieldFilter, int... fieldList)
    check columns equation.
    boolean
    equalColumn(Object object, com.google.common.base.Predicate<String> fieldFilter, String... fieldList)
    check columns equation.
    <T extends Number>
    T
    getBitValue(int columnID, Number mask)
     
    <T extends Number>
    T
    getBitValue(String column, Number mask)
     
     
    <T> T
    getJdbcValue(int columnID)
     
     
    <T> T
    getOriginValue(int columnID)
     
    <T> T
    getValue(int columnID)
     
    <T> T
    getValue(String column)
     
    <T> T
    getValueChecked(int columnID)
     
    <T> T
     
    boolean
    isInitialized(int columnID)
    Determines if the columnID has been initialized.
    It is useful to determine if a field is null on purpose or just because it has not been initialized.
    boolean
    Determines if the column has been initialized.
    It is useful to determine if a field is null on purpose or just because it has not been initialized.
    boolean
    isModified(int columnID)
    Determines if the columnID has been modified.
    boolean
    isModified(int... columnIDs)
    Determines if the columnIDs has been modified.
    boolean
    Determines if the column has been modified.
    boolean
    isModified(String... columns)
    Determines if the columns has been modified.
    boolean
    Determines if the nestedName has been modified.
    boolean
    Determines if the current object is new.
    void
    modified(int columnID)
    set the object modification status to 'modified' and initialization status to 'initialized'
    void
    modified(int[] columnIDs)
    set the object modification status to 'modified' and initialization status to 'initialized'
    void
    modified(int columnID, int... columnIDs)
    set the object modification status to 'modified' and initialization status to 'initialized'
    void
    modified(String column)
    set the object modification status to 'modified' and initialization status to 'initialized'
    void
    modified(String[] columns)
    set the object modification status to 'modified' and initialization status to 'initialized'
    void
    modified(String column, String... columns)
    set the object modification status to 'modified' and initialization status to 'initialized'
    int
     
    int[]
     
     
    <T> T
     
     
    void
    Resets the object modification status to 'not modified'.
    void
    resetModified(int columnID)
    reset columns modification status defined by columnID
    void
    resetModified(int[] columnIDs)
    reset columns modification status defined by columnIDs
    void
    resetModified(int columnID, int... columnIDs)
    reset columns modification status defined by columnID,columnIDs
    void
    reset columns modification status defined by column
    void
    resetModified(String[] columns)
    reset columns modification status defined by columns
    void
    resetModified(String column, String... columns)
    reset columns modification status defined by column,columns
    void
    Resets columns modification status except primary keys to 'not modified'.
    void
    Read record (old record) from the database based on the primary key, compare all modified fields in the current bean with the corresponding fields of the old record, and if equal (deep equals), reset the bit corresponding of the modified field
    Note: This method can only be used on (local) server side
    void
    Resets the primary keys modification status to 'not modified'.
    void
    setBitValue(int columnID, Number mask, boolean bitSet)
    Set the mask value of the integral field specified by columnID and the value of the bit specified by the mask
    void
    setBitValue(String column, Number mask, boolean bitSet)
    Set the mask value of the integral field specified by column and the value of the bit specified by the mask
    boolean
    setBitValueIf(boolean expression, String column, Number mask, boolean bitSet)
    Set the mask value of the integral field specified by column and the value of the bit specified by the mask if expression is true
    boolean
    setBitValueIfNonNull(String column, Number mask, boolean bitSet)
    Set the mask value of the integral field specified by column and the value of the bit specified by the mask if mask and old value is not null
    void
    setInitialized(String initialized)
     
    void
    setModified(String modified)
     
    void
    setNew(boolean isNew)
    Specifies to the object if it has been set as new.
    <T> void
    setValue(int columnID, T value)
    set a value representation of the given column id
    void
    setValue(String column, Object value)
    set a value representation of the given field
    <T> boolean
    setValueIf(boolean expression, int columnID, T value)
    set a value representation of the given column id if expression is true
    boolean
    setValueIf(boolean expression, String column, Object value)
    set a value representation of the given field if expression is true
    <T> boolean
    setValueIfNonEqual(int columnID, T value)
    set a value representation of the given column id if value is not equal with old
    boolean
    set a value representation of the given field if value is not equal with old
    <T> boolean
    setValueIfNonNull(int columnID, T value)
    set a value representation of the given column id if value is not null
    boolean
    set a value representation of the given field if value is not null
     
    boolean
    testBitValue(int columnID, Number mask, boolean bitOr)
    Test integral fields with bits specified by the mask
    boolean
    testBitValue(String column, Number mask, boolean bitOr)
    Test integral fields with bits specified by the mask
    toString(boolean notNull, boolean fullIfStringOrBytes)
     
  • 方法详细资料

    • isNew

      boolean isNew()
      Determines if the current object is new.
      返回:
      true if the current object is new, false if the object is not new
    • setNew

      void setNew(boolean isNew)
      Specifies to the object if it has been set as new.
      参数:
      isNew - the boolean value to be assigned to the isNew field
    • getInitialized

      String getInitialized()
      返回:
      the initialized status of columns
    • setInitialized

      void setInitialized(String initialized)
      参数:
      initialized - the initialized status of columns
    • getModified

      String getModified()
      返回:
      the modified status of columns
    • setModified

      void setModified(String modified)
      参数:
      modified - the modified status of columns
    • beModified

      boolean beModified()
      Determines if the object has been modified since the last time this method was called.
      We can also determine if this object has ever been modified since its creation.
      返回:
      true if the object has been modified, false if the object has not been modified
    • modified

      void modified(int columnID)
      set the object modification status to 'modified' and initialization status to 'initialized'
      参数:
      columnID - column id
      从以下版本开始:
      4.3.0
    • modified

      void modified(int[] columnIDs)
      set the object modification status to 'modified' and initialization status to 'initialized'
      参数:
      columnIDs - column id array,ignore if null
      从以下版本开始:
      3.21.0
    • modified

      void modified(int columnID, int... columnIDs)
      set the object modification status to 'modified' and initialization status to 'initialized'
      参数:
      columnID - column id
      columnIDs - column id array,ignore if null
      从以下版本开始:
      4.3.0
    • modified

      void modified(String column)
      set the object modification status to 'modified' and initialization status to 'initialized'
      参数:
      column - column name
      从以下版本开始:
      4.3.0
    • modified

      void modified(String[] columns)
      set the object modification status to 'modified' and initialization status to 'initialized'
      参数:
      columns - column name array,ignore if null
      从以下版本开始:
      4.3.0
    • modified

      void modified(String column, String... columns)
      set the object modification status to 'modified' and initialization status to 'initialized'
      参数:
      column - column name
      columns - column name array,ignore if null
      从以下版本开始:
      4.3.0
    • resetModified

      void resetModified()
      Resets the object modification status to 'not modified'.
    • resetModified

      void resetModified(int columnID)
      reset columns modification status defined by columnID
      参数:
      columnID - column id
    • resetModified

      void resetModified(int[] columnIDs)
      reset columns modification status defined by columnIDs
      参数:
      columnIDs - column id array,ignore if null
      从以下版本开始:
      3.32.0
    • resetModified

      void resetModified(int columnID, int... columnIDs)
      reset columns modification status defined by columnID,columnIDs
      参数:
      columnID - column id
      columnIDs - column id array,ignore if null
      从以下版本开始:
      3.32.0
    • resetModified

      void resetModified(String column)
      reset columns modification status defined by column
      参数:
      column - column name
      从以下版本开始:
      3.32.0
    • resetModified

      void resetModified(String column, String... columns)
      reset columns modification status defined by column,columns
      参数:
      column - column name
      columns - column name array,ignore if null
      从以下版本开始:
      3.32.0
    • resetModified

      void resetModified(String[] columns)
      reset columns modification status defined by columns
      参数:
      columns - column name array,ignore if null
      从以下版本开始:
      3.32.0
    • resetModifiedIfEqual

      void resetModifiedIfEqual()
      Read record (old record) from the database based on the primary key, compare all modified fields in the current bean with the corresponding fields of the old record, and if equal (deep equals), reset the bit corresponding of the modified field
      Note: This method can only be used on (local) server side
      从以下版本开始:
      4.3.2
    • resetPrimaryKeysModified

      void resetPrimaryKeysModified()
      Resets the primary keys modification status to 'not modified'.
    • resetModifiedExceptPrimaryKeys

      void resetModifiedExceptPrimaryKeys()
      Resets columns modification status except primary keys to 'not modified'.
      从以下版本开始:
      4.3.0
    • isInitialized

      boolean isInitialized(int columnID)
      Determines if the columnID has been initialized.
      It is useful to determine if a field is null on purpose or just because it has not been initialized.
      参数:
      columnID - column id
      返回:
      true if the field has been initialized, false otherwise
    • isModified

      boolean isModified(int columnID)
      Determines if the columnID has been modified.
      参数:
      columnID - column id
      返回:
      true if the field has been modified, false if the field has not been modified
    • isModified

      boolean isModified(int... columnIDs)
      Determines if the columnIDs has been modified.
      参数:
      columnIDs - column id array
      返回:
      true if any field has been modified, otherwise false
      从以下版本开始:
      3.25.0
    • isModified

      boolean isModified(String... columns)
      Determines if the columns has been modified.
      参数:
      columns - column name array
      返回:
      true if any field has been modified, , otherwise false
      从以下版本开始:
      3.25.0
    • isInitialized

      boolean isInitialized(String column)
      Determines if the column has been initialized.
      It is useful to determine if a field is null on purpose or just because it has not been initialized.
      参数:
      column - column name
      返回:
      true if the field has been initialized, false otherwise
    • isModified

      boolean isModified(String column)
      Determines if the column has been modified.
      参数:
      column - column name
      返回:
      true if the field has been modified, false if the field has not been modified
    • isModifiedNested

      boolean isModifiedNested(String nestedName)
      Determines if the nestedName has been modified.
      参数:
      nestedName - nest name start with [tablename.]column name, splitted with '.'
      返回:
      true if the field has been modified, false if the field has not been modified
      从以下版本开始:
      3.15.0
    • modifiedColumnIDs

      int[] modifiedColumnIDs()
      返回:
      modified column id list or empyt array if none column be modified
      从以下版本开始:
      3.15.0
    • modifiedColumns

      String[] modifiedColumns()
      返回:
      modified column name list or empyt array if none column be modified
      从以下版本开始:
      3.15.0
    • modifiedColumnCount

      int modifiedColumnCount()
      返回:
      modified column count
      从以下版本开始:
      3.15.0
    • copy

      <B extends BaseBean> B copy(B bean)
      Copies the passed bean into the current bean.
      参数:
      bean - the bean to copy into the current bean
      返回:
      this bean
    • copy

      <B extends BaseBean> B copy(B bean, int... fieldList)
      Copies the passed bean into the current bean.
      参数:
      bean - the bean to copy into the current bean
      fieldList - the column id list to copy into the current bean,if null or empty,copy all fields
      返回:
      always this bean
    • copy

      <B extends BaseBean> B copy(B bean, String... fieldList)
      Copies the passed bean into the current bean.
      参数:
      bean - the bean to copy into the current bean
      fieldList - the column name list to copy into the current bean
      返回:
      always this bean
    • copy

      <B extends BaseBean> B copy(B bean, com.google.common.base.Predicate<Integer> fieldFilter, int... fieldList)
      Copies the passed bean into the current bean.
      参数:
      bean - the bean to copy into the current bean
      fieldFilter - the filter for column name,ignore if null
      fieldList - the column id list to copy into the current bean
      返回:
      always this bean
      从以下版本开始:
      3.15.0
    • copy

      <B extends BaseBean> B copy(B bean, com.google.common.base.Predicate<String> fieldFilter, String... fieldList)
      Copies the passed bean into the current bean.
      参数:
      bean - the bean to copy into the current bean
      fieldFilter - the filter for column name,ignore if null
      fieldList - the column name list to copy into the current bean
      返回:
      always this bean
      从以下版本开始:
      3.14.0
    • copyIfNonEqual

      <B extends BaseBean> B copyIfNonEqual()
      Read record (old record) from the database based on the primary key, copy all fields of the current object that are be modified and different from the old record, and return the updated old record.
      Note: This method can only be used on (local) server side
      类型参数:
      B -
      返回:
      If isNew() is true or the current object is not a BaseRow instance, return the current object
      从以下版本开始:
      4.3.2
    • copy

      <B extends BaseBean, F extends BaseBean> B copy(F from, Map<Integer,Integer> columnsMap)
      Copies the passed F bean into the current bean.
      类型参数:
      B - from bean type
      F - this bean type
      参数:
      from -
      columnsMap - columns map from F to B
      返回:
      always this bean
    • copy

      <B extends BaseBean> B copy(Map values)
      [ENABLE_FILTER]
      Copies the passed values with key-value map into the current bean. Integer or String type required for key,otherwise ignore
      The copied columns were filtered by the beanfilter deserialization filter, and static JSON invisible columns were also filtered
      参数:
      values -
      返回:
      always this bean
    • copy

      <B extends BaseBean> B copy(Map values, com.google.common.base.Function keyTransformer, boolean ignoreUnmap)
      [ENABLE_FILTER]
      Copies the passed values with key-value map into the current bean. Integer or String type required for key,otherwise ignore
      The copied columns were filtered by the beanfilter deserialization filter, and static JSON invisible columns were also filtered
      类型参数:
      B -
      参数:
      values -
      keyTransformer - function for transform key in map to column id or name,ignore if null
      ignoreUnmap - ignore the value if return null column column(id or name) by keyTransformer
      返回:
      always this bean
      从以下版本开始:
      3.29.3
    • copyNoFilter

      <B extends BaseBean> B copyNoFilter(Map values)
      [DISABLE_FILTER]
      Copies the passed values with key-value map into the current bean. Integer or String type required for key,otherwise ignore
      参数:
      values -
      返回:
      always this bean
      从以下版本开始:
      4.3.6
    • copyNoFilter

      <B extends BaseBean> B copyNoFilter(Map values, com.google.common.base.Function keyTransformer, boolean ignoreUnmap)
      [DISABLE_FILTER]
      Copies the passed values with key-value map into the current bean. Integer or String type required for key,otherwise ignore
      类型参数:
      B -
      参数:
      values -
      keyTransformer - function for transform key in map to column id or name,ignore if null
      ignoreUnmap - ignore the value if return null column column(id or name) by keyTransformer
      返回:
      always this bean
      从以下版本开始:
      4.3.6
    • equalColumn

      boolean equalColumn(Object object, com.google.common.base.Predicate<String> fieldFilter, String... fieldList)
      check columns equation.
      参数:
      object - the bean to compare
      fieldFilter - the filter for column name,ignore if null
      fieldList - the column name list to compare to the current bean
      返回:
      true if special columns is all equal to object,otherwise false
      从以下版本开始:
      3.15.0
    • equalColumn

      boolean equalColumn(Object object, com.google.common.base.Predicate<Integer> fieldFilter, int... fieldList)
      check columns equation.
      参数:
      object - the bean to compare
      fieldFilter - the filter for column name,ignore if null
      fieldList - the column id list to compare to the current bean
      返回:
      true if special columns is all equal to object,otherwise false
      从以下版本开始:
      3.15.0
    • equalColumn

      boolean equalColumn(Object object, int... fieldList)
      check columns equation.
      参数:
      object - the bean to compare
      fieldList - the column id list to compare to the current bean
      返回:
      true if special columns is all equal to object,otherwise false
      从以下版本开始:
      3.15.0
    • equalColumn

      boolean equalColumn(Object object, int columnId)
      check column equation.
      参数:
      object - the bean to compare
      columnId - column id
      返回:
      true if special column is equal to object,otherwise false
      从以下版本开始:
      3.15.0
    • getValue

      <T> T getValue(int columnID)
      参数:
      columnID - column id
      返回:
      return a object representation of the given column id
    • getOriginValue

      <T> T getOriginValue(int columnID)
      参数:
      columnID - column id
      返回:
      return a origin object representation of the given column id
      从以下版本开始:
      3.18.0
    • getJdbcValue

      <T> T getJdbcValue(int columnID)
      参数:
      columnID -
      返回:
      return a value as JDBC store type representation of the given column id
      从以下版本开始:
      3.22.0
    • setValue

      <T> void setValue(int columnID, T value)
      set a value representation of the given column id
      参数:
      columnID - column id
      value -
    • setValueIfNonNull

      <T> boolean setValueIfNonNull(int columnID, T value)
      set a value representation of the given column id if value is not null
      参数:
      columnID - column id
      value -
      返回:
      true if not null,otherwise false
      从以下版本开始:
      3.14.0
    • setValueIfNonEqual

      <T> boolean setValueIfNonEqual(int columnID, T value)
      set a value representation of the given column id if value is not equal with old
      参数:
      columnID - column id
      value -
      返回:
      true if not equal,otherwise false
      从以下版本开始:
      3.14.0
    • setValueIf

      <T> boolean setValueIf(boolean expression, int columnID, T value)
      set a value representation of the given column id if expression is true
      参数:
      columnID - column id
      value -
      返回:
      expression always
      从以下版本开始:
      3.14.0
    • getValue

      <T> T getValue(String column)
      参数:
      column - column name
      返回:
      return a object representation of the given field
    • getValueChecked

      <T> T getValueChecked(int columnID)
      参数:
      columnID - column id
      返回:
      return a object representation of the given column id or throw NullPointerException if value is null
    • getValueChecked

      <T> T getValueChecked(String column)
      参数:
      column - column name
      返回:
      return a object representation of the given field or throw NullPointerException if value is null
    • setValue

      void setValue(String column, Object value)
      set a value representation of the given field
      参数:
      column - column name
      value -
    • setValueIfNonNull

      boolean setValueIfNonNull(String column, Object value)
      set a value representation of the given field if value is not null
      参数:
      column - column name
      value -
      返回:
      true if not null,otherwise false
      从以下版本开始:
      3.14.0
    • setValueIfNonEqual

      boolean setValueIfNonEqual(String column, Object value)
      set a value representation of the given field if value is not equal with old
      参数:
      column - column name
      value -
      返回:
      true if not equal,otherwise false
      从以下版本开始:
      3.14.0
    • setValueIf

      boolean setValueIf(boolean expression, String column, Object value)
      set a value representation of the given field if expression is true
      参数:
      column - column name
      value -
      返回:
      expression always
      从以下版本开始:
      3.14.0
    • testBitValue

      boolean testBitValue(int columnID, Number mask, boolean bitOr)
      Test integral fields with bits specified by the mask
      参数:
      columnID - column id
      mask - integral type required(Long|Integer|Short|Byte)
      bitOr -
      返回:
      column&mask != 0 if bitOr is true otherwise column&mask == mask
      从以下版本开始:
      3.27.0
    • testBitValue

      boolean testBitValue(String column, Number mask, boolean bitOr)
      Test integral fields with bits specified by the mask
      参数:
      column - column name
      mask - integral type required(Long|Integer|Short|Byte)
      返回:
      column&mask != 0 if bitOr is true otherwise column&mask == mask
      从以下版本开始:
      3.27.0
    • getBitValue

      <T extends Number> T getBitValue(int columnID, Number mask)
      参数:
      columnID - column id
      mask - integral type required(Long|Integer|Short|Byte)
      返回:
      Returns not null integral value of the bit specified by the mask mask of the integral field specified by columnID
      从以下版本开始:
      3.27.0
    • getBitValue

      <T extends Number> T getBitValue(String column, Number mask)
      参数:
      column - column name
      mask - integral type required(Long|Integer|Short|Byte)
      返回:
      Returns not null integral value of the bit specified by the mask mask of the integral field
      从以下版本开始:
      3.27.0
    • setBitValue

      void setBitValue(int columnID, Number mask, boolean bitSet)
      Set the mask value of the integral field specified by columnID and the value of the bit specified by the mask
      参数:
      columnID - column id
      mask - integral type required(Long|Integer|Short|Byte)
      bitSet - set bit to 1 if true,otherwise set bit to 0
      从以下版本开始:
      3.27.0
    • setBitValue

      void setBitValue(String column, Number mask, boolean bitSet)
      Set the mask value of the integral field specified by column and the value of the bit specified by the mask
      参数:
      column - column name
      mask - integral type required(Long|Integer|Short|Byte)
      bitSet - set bit to 1 if true,otherwise set bit to 0
      从以下版本开始:
      3.27.0
    • setBitValueIfNonNull

      boolean setBitValueIfNonNull(String column, Number mask, boolean bitSet)
      Set the mask value of the integral field specified by column and the value of the bit specified by the mask if mask and old value is not null
      参数:
      column - column name
      mask - integral type required(Long|Integer|Short|Byte)
      bitSet - set bit to 1 if true,otherwise set bit to 0
      从以下版本开始:
      3.27.0
    • setBitValueIf

      boolean setBitValueIf(boolean expression, String column, Number mask, boolean bitSet)
      Set the mask value of the integral field specified by column and the value of the bit specified by the mask if expression is true
      参数:
      column - column name
      mask - integral type required(Long|Integer|Short|Byte)
      bitSet - set bit to 1 if true,otherwise set bit to 0
      从以下版本开始:
      3.27.0
    • asValueArray

      Object[] asValueArray(int... columnIds)
      参数:
      columnIds - column id that will be output, if null or empty,output all columns
      返回:
      values array for all fields
    • asNameValueMap

      Map<String,Object> asNameValueMap()
      view of values map for all fields, column name -- value
    • asFilterableNameValueMap

      Map<String,Object> asFilterableNameValueMap()
      Return the column name -- value mapping that filtered by beanfilter
      从以下版本开始:
      3.32.5
    • asNameValueMap

      Map<String,Object> asNameValueMap(boolean ignoreNull, String... ignoreColumns)
      参数:
      ignoreNull - remove all null column
      ignoreColumns - remove column name list
      返回:
      values map for all fields, column name -- value
    • asNameValueMap

      Map<String,Object> asNameValueMap(boolean ignoreNull, Iterable<String> ignoreColumns)
      参数:
      ignoreNull - remove all null column
      ignoreColumns - remove column name list
      返回:
      values map for all fields, column name -- value
    • asNameValueMap

      Map<String,Object> asNameValueMap(boolean ignoreNull, boolean include, Iterable<String> columns)
      参数:
      ignoreNull - remove all null column
      include - if true,the columns is white list(include) for column, only output columns which in list,otherwise it's black list(exclude)
      columns - column name list for white/black(include/exclude) list
      返回:
      values map for all fields, column name -- value
    • asNameValueMap

      Map<String,Object> asNameValueMap(boolean ignoreNull, boolean include, String... includeColumns)
      参数:
      ignoreNull - remove all null column
      include - if true,the columns is white list(include) for column, only output columns which in list,otherwise it's black list(exclude)
      includeColumns - remove column name list
      返回:
      values map for all fields, column name -- value
    • asNameValueMap

      Map<String,Object> asNameValueMap(boolean ignoreNull, boolean serialize, boolean include, Iterable<String> columns)
      参数:
      ignoreNull - remove all null column
      serialize - serialize field if exist annotation JSONField and specialize serialized class
      include - if true,the columns is white list(include) for column, only output columns which in list,otherwise it's black list(exclude)
      columns - column name list for white/black(include/exclude) list
      返回:
      values map for all fields, column name -- value
      从以下版本开始:
      3.27.0
    • asNameValueMap

      Map<String,Object> asNameValueMap(boolean ignoreNull, boolean serialize, boolean include, String... includeColumns)
      参数:
      ignoreNull - remove all null column
      serialize - serialize field if exist annotation JSONField and specialize serialized class
      include - if true,the columns is white list(include) for column, only output columns which in list,otherwise it's black list(exclude)
      includeColumns - remove column name list
      返回:
      values map for all fields, column name -- value
      从以下版本开始:
      3.27.0
    • primaryValues

      Object[] primaryValues()
      返回:
      values array for all primary key, empty array if no primary key
    • primaryValue

      <T> T primaryValue()
      类型参数:
      T - PK type
      返回:
      value for primary key, throw UnsupportedOperationException if there is more than one primary key
    • tableName

      String tableName()
      返回:
      table name of this bean
    • toString

      String toString(boolean notNull, boolean fullIfStringOrBytes)
      参数:
      notNull - output not null field only if true
      fullIfStringOrBytes - for string or bytes field,output full content if true,otherwise output length.
      返回:
      Returns a string representation of the object
    • clone

      BaseBean clone()