com.xiaoleilu.hutool.db.dialect.impl
类 MysqlDialect

java.lang.Object
  继承者 com.xiaoleilu.hutool.db.dialect.impl.AnsiSqlDialect
      继承者 com.xiaoleilu.hutool.db.dialect.impl.MysqlDialect
所有已实现的接口:
Dialect
直接已知子类:
Sqllite3Dialect

public class MysqlDialect
extends AnsiSqlDialect

MySQL方言

作者:
loolly

构造方法摘要
MysqlDialect()
           
 
方法摘要
 PreparedStatement psForPage(Connection conn, Collection<String> fields, Entity where, int page, int numPerPage)
          构建用于分页查询的PreparedStatement
 
从类 com.xiaoleilu.hutool.db.dialect.impl.AnsiSqlDialect 继承的方法
buildSelectQuery, psForCount, psForDelete, psForFind, psForInsert, psForUpdate
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MysqlDialect

public MysqlDialect()
方法详细信息

psForPage

public PreparedStatement psForPage(Connection conn,
                                   Collection<String> fields,
                                   Entity where,
                                   int page,
                                   int numPerPage)
                            throws SQLException
从接口 Dialect 复制的描述
构建用于分页查询的PreparedStatement

指定者:
接口 Dialect 中的 psForPage
覆盖:
AnsiSqlDialect 中的 psForPage
参数:
conn - 数据库连接对象
fields - 返回的字段列表,null则返回所有字段
where - 条件实体类
page - 页码
numPerPage - 每页条目数
返回:
PreparedStatement
抛出:
SQLException


Copyright © 2014. All rights reserved.