类 SqlHelper

java.lang.Object
cn.vonce.sql.helper.SqlHelper

public class SqlHelper extends Object
SQL 语句助手
版本:
1.0
作者:
jovi
  • 构造器详细资料

    • SqlHelper

      public SqlHelper()
  • 方法详细资料

    • buildSelectSql

      public static String buildSelectSql(Select select)
      生成select sql语句
      参数:
      select -
      返回:
    • buildUpdateSql

      public static String buildUpdateSql(Update update)
      生成update sql语句
      参数:
      update -
      返回:
      抛出:
      SqlBeanException
    • buildInsertSql

      public static String buildInsertSql(Insert insert)
      生成insert sql语句
      参数:
      insert -
      返回:
    • buildDeleteSql

      public static String buildDeleteSql(Delete delete)
      生成delete sql语句
      参数:
      delete -
      返回:
    • buildCreateSql

      public static String buildCreateSql(Create create)
      生成create sql语句
      参数:
      create -
      返回:
    • buildBackup

      public static String buildBackup(Backup backup)
      生成backup sql语句
      参数:
      backup -
      返回:
    • buildCopy

      public static String buildCopy(Copy copy)
      生成copy sql语句
      参数:
      copy -
      返回:
    • buildDrop

      public static String buildDrop(Drop drop)
      生成drop sql语句
      参数:
      drop -
      返回:
    • whereSql

      public static String whereSql(CommonCondition commonCondition, Object bean)
      返回where语句
      参数:
      commonCondition -
      bean -
      返回:
    • pageParam

      public static Integer[] pageParam(Select select)
      各个数据库的分页参数
      参数:
      select -
      返回: