类 OldBaseDaoColumnInfo

java.lang.Object
cool.scx.dao._old.OldBaseDaoColumnInfo
所有已实现的接口:
ColumnInfo
直接已知子类:
AnnotationConfigColumnInfo

public abstract class OldBaseDaoColumnInfo extends Object implements ColumnInfo
BaseDaoColumnInfo
  • 字段详细资料

    • updateSetSQL

      protected String updateSetSQL
    • selectSQL

      protected String selectSQL
  • 构造器详细资料

    • OldBaseDaoColumnInfo

      public OldBaseDaoColumnInfo()
  • 方法详细资料

    • updateSetSQL

      public final String updateSetSQL()
      更新时的 sql 片段 强烈建议提前生成好!!! 以提高性能
      举例 :
      片段 : [ user_name = :userName ]
      SQL : [ update user set user_name = :userName where id = 1 ]
    • selectSQL

      public final String selectSQL()
      查询时(select) 的 sql 片段 强烈建议提前生成好 !!! 以提高性能
      举例 :
      片段 : [ user_name as userName ] ,
      如 查询列名和 java 字段名相同则直接返回列名 , 如 : [ password as password ] 简化为 [ password ]
      SQL : [ select user_name as userName from user where id = 1 ]
      返回:
      a String object
    • insertValuesSQL

      public final String insertValuesSQL()
      插入时 的 sql 片段 强烈建议提前生成好!!! 以提高性能
      举例 :
      片段 : [ :userName ]
      SQL : [ insert into (user_name) values(:userName) ]