Package org.apache.ibatis.jdbc
Class AbstractSQL<T>
- java.lang.Object
-
- org.apache.ibatis.jdbc.AbstractSQL<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractSQL()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description TADD_ROW()used to add a new inserted row while do multi-row insert.TAND()TDELETE_FROM(String table)TFETCH_FIRST_ROWS_ONLY(int value)Set the fetch first rows value.TFETCH_FIRST_ROWS_ONLY(String variable)Set the fetch first rows variable string(e.g.TFROM(String table)TFROM(String... tables)From.abstract TgetSelf()TGROUP_BY(String columns)TGROUP_BY(String... columns)Group by.THAVING(String conditions)THAVING(String... conditions)Having.TINNER_JOIN(String join)TINNER_JOIN(String... joins)Inner join.TINSERT_INTO(String tableName)TINTO_COLUMNS(String... columns)Into columns.TINTO_VALUES(String... values)Into values.TJOIN(String join)TJOIN(String... joins)Join.TLEFT_OUTER_JOIN(String join)TLEFT_OUTER_JOIN(String... joins)Left outer join.TLIMIT(int value)Set the limit value.TLIMIT(String variable)Set the limit variable string(e.g.TOFFSET(long value)Set the offset value.TOFFSET(String variable)Set the offset variable string(e.g.TOFFSET_ROWS(long value)Set the offset rows value.TOFFSET_ROWS(String variable)Set the offset rows variable string(e.g.TOR()TORDER_BY(String columns)TORDER_BY(String... columns)Order by.TOUTER_JOIN(String join)TOUTER_JOIN(String... joins)Outer join.TRIGHT_OUTER_JOIN(String join)TRIGHT_OUTER_JOIN(String... joins)Right outer join.TSELECT(String columns)TSELECT(String... columns)Select.TSELECT_DISTINCT(String columns)TSELECT_DISTINCT(String... columns)Select distinct.TSET(String sets)TSET(String... sets)Sets the.StringtoString()TUPDATE(String table)<A extends Appendable>
AusingAppender(A a)TVALUES(String columns, String values)TWHERE(String conditions)TWHERE(String... conditions)Where.
-
-
-
Method Detail
-
getSelf
public abstract T getSelf()
-
INTO_COLUMNS
public T INTO_COLUMNS(String... columns)
Into columns.- Parameters:
columns- the columns- Returns:
- the t
- Since:
- 3.4.2
-
INTO_VALUES
public T INTO_VALUES(String... values)
Into values.- Parameters:
values- the values- Returns:
- the t
- Since:
- 3.4.2
-
SELECT
public T SELECT(String... columns)
Select.- Parameters:
columns- the columns- Returns:
- the t
- Since:
- 3.4.2
-
SELECT_DISTINCT
public T SELECT_DISTINCT(String... columns)
Select distinct.- Parameters:
columns- the columns- Returns:
- the t
- Since:
- 3.4.2
-
FROM
public T FROM(String... tables)
From.- Parameters:
tables- the tables- Returns:
- the t
- Since:
- 3.4.2
-
JOIN
public T JOIN(String... joins)
Join.- Parameters:
joins- the joins- Returns:
- the t
- Since:
- 3.4.2
-
INNER_JOIN
public T INNER_JOIN(String... joins)
Inner join.- Parameters:
joins- the joins- Returns:
- the t
- Since:
- 3.4.2
-
LEFT_OUTER_JOIN
public T LEFT_OUTER_JOIN(String... joins)
Left outer join.- Parameters:
joins- the joins- Returns:
- the t
- Since:
- 3.4.2
-
RIGHT_OUTER_JOIN
public T RIGHT_OUTER_JOIN(String... joins)
Right outer join.- Parameters:
joins- the joins- Returns:
- the t
- Since:
- 3.4.2
-
OUTER_JOIN
public T OUTER_JOIN(String... joins)
Outer join.- Parameters:
joins- the joins- Returns:
- the t
- Since:
- 3.4.2
-
WHERE
public T WHERE(String... conditions)
Where.- Parameters:
conditions- the conditions- Returns:
- the t
- Since:
- 3.4.2
-
OR
public T OR()
-
AND
public T AND()
-
GROUP_BY
public T GROUP_BY(String... columns)
Group by.- Parameters:
columns- the columns- Returns:
- the t
- Since:
- 3.4.2
-
HAVING
public T HAVING(String... conditions)
Having.- Parameters:
conditions- the conditions- Returns:
- the t
- Since:
- 3.4.2
-
ORDER_BY
public T ORDER_BY(String... columns)
Order by.- Parameters:
columns- the columns- Returns:
- the t
- Since:
- 3.4.2
-
LIMIT
public T LIMIT(String variable)
Set the limit variable string(e.g."#{limit}").- Parameters:
variable- a limit variable string- Returns:
- a self instance
- Since:
- 3.5.2
- See Also:
OFFSET(String)
-
LIMIT
public T LIMIT(int value)
Set the limit value.- Parameters:
value- an offset value- Returns:
- a self instance
- Since:
- 3.5.2
- See Also:
OFFSET(long)
-
OFFSET
public T OFFSET(String variable)
Set the offset variable string(e.g."#{offset}").- Parameters:
variable- a offset variable string- Returns:
- a self instance
- Since:
- 3.5.2
- See Also:
LIMIT(String)
-
OFFSET
public T OFFSET(long value)
Set the offset value.- Parameters:
value- an offset value- Returns:
- a self instance
- Since:
- 3.5.2
- See Also:
LIMIT(int)
-
FETCH_FIRST_ROWS_ONLY
public T FETCH_FIRST_ROWS_ONLY(String variable)
Set the fetch first rows variable string(e.g."#{fetchFirstRows}").- Parameters:
variable- a fetch first rows variable string- Returns:
- a self instance
- Since:
- 3.5.2
- See Also:
OFFSET_ROWS(String)
-
FETCH_FIRST_ROWS_ONLY
public T FETCH_FIRST_ROWS_ONLY(int value)
Set the fetch first rows value.- Parameters:
value- a fetch first rows value- Returns:
- a self instance
- Since:
- 3.5.2
- See Also:
OFFSET_ROWS(long)
-
OFFSET_ROWS
public T OFFSET_ROWS(String variable)
Set the offset rows variable string(e.g."#{offset}").- Parameters:
variable- a offset rows variable string- Returns:
- a self instance
- Since:
- 3.5.2
- See Also:
FETCH_FIRST_ROWS_ONLY(String)
-
OFFSET_ROWS
public T OFFSET_ROWS(long value)
Set the offset rows value.- Parameters:
value- an offset rows value- Returns:
- a self instance
- Since:
- 3.5.2
- See Also:
FETCH_FIRST_ROWS_ONLY(int)
-
ADD_ROW
public T ADD_ROW()
used to add a new inserted row while do multi-row insert.- Returns:
- the t
- Since:
- 3.5.2
-
usingAppender
public <A extends Appendable> A usingAppender(A a)
-
-