new feature : sql builder

This commit is contained in:
wenshao
2015-06-07 22:36:33 +08:00
parent 7575d5f1ff
commit 3a7d001b93
32 changed files with 921 additions and 125 deletions
@@ -0,0 +1,20 @@
package com.alibaba.druid.sql.builder;
public interface SQLUpdateBuilder {
SQLUpdateBuilder from(String table);
SQLUpdateBuilder from(String table, String alias);
SQLUpdateBuilder limit(int rowCount);
SQLUpdateBuilder limit(int rowCount, int offset);
SQLUpdateBuilder where(String sql);
SQLUpdateBuilder whereAnd(String sql);
SQLUpdateBuilder whereOr(String sql);
SQLUpdateBuilder set(String... items);
}