Added java docs

This commit is contained in:
Ziver Koc 2011-03-30 22:06:14 +00:00
parent d7fdf5b176
commit c3e3bbf787

View file

@ -30,16 +30,16 @@ public class SQLQuery {
// Main Types // Main Types
/** /**
* <XMP> * <XMP>
SELECT * SELECT
[ALL | DISTINCT | DISTINCTROW ] * [ALL | DISTINCT | DISTINCTROW ]
[FROM table_references * [FROM table_references
[WHERE where_condition] * [WHERE where_condition]
[GROUP BY {col_name | expr | position} * [GROUP BY {col_name | expr | position}
[ASC | DESC], ... [WITH ROLLUP]] * [ASC | DESC], ... [WITH ROLLUP]]
[HAVING where_condition] * [HAVING where_condition]
[ORDER BY {col_name | expr | position} * [ORDER BY {col_name | expr | position}
[ASC | DESC], ...] * [ASC | DESC], ...]
[LIMIT {[offset,] row_count | row_count OFFSET offset}] * [LIMIT {[offset,] row_count | row_count OFFSET offset}]
* </XMP> * </XMP>
*/ */
public static class SQLSelect extends SQLQueryItem{ public static class SQLSelect extends SQLQueryItem{
@ -74,6 +74,15 @@ SELECT
} }
} }
/*
* <XMP>
* UPDATE [LOW_PRIORITY] [IGNORE] table_reference
* SET col_name1={expr1|DEFAULT} [, col_name2={expr2|DEFAULT}] ...
* [WHERE where_condition]
* [ORDER BY ...]
* [LIMIT row_count]
* </XMP>
*/
public static class SQLUpdate extends SQLQueryItem{ public static class SQLUpdate extends SQLQueryItem{
protected SQLUpdate(){ protected SQLUpdate(){
setRoot(this); setRoot(this);
@ -84,6 +93,33 @@ SELECT
} }
} }
/*
* <XMP>
* INSERT [INTO] tbl_name
* SET col_name={expr | DEFAULT}, ...
*
* INSERT [INTO] tbl_name [(col_name,...)]
* {VALUES | VALUE} ({expr | DEFAULT},...),(...),...
* </XMP>
*/
public static class SQLInsert extends SQLQueryItem{
protected SQLInsert(){
setRoot(this);
}
protected void build(StringBuilder query) {
}
}
/*
* <XMP>
* DELETE FROM tbl_name
* [WHERE where_condition]
* [ORDER BY ...]
* [LIMIT row_count]
* </XMP>
*/
public static class SQLDelete extends SQLQueryItem{ public static class SQLDelete extends SQLQueryItem{
protected SQLDelete(){ protected SQLDelete(){
setRoot(this); setRoot(this);
@ -353,6 +389,10 @@ SELECT
return new SQLUpdate(); return new SQLUpdate();
} }
public static SQLInsert INSERT(){
return new SQLInsert();
}
public static SQLDelete DELETE(){ public static SQLDelete DELETE(){
return new SQLDelete(); return new SQLDelete();
} }