|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbutler.sql.query.Query
butler.sql.query.DeleteQuery
public class DeleteQuery
Query for deleting records.
| Nested Class Summary | |
|---|---|
static class |
DeleteQuery.DeleteQueryInstance
|
| Field Summary |
|---|
| Fields inherited from class butler.sql.query.Query |
|---|
_cols, _comparator, _filter, _maxNoOfRec, _name, _table, _uniqueSort |
| Constructor Summary | |
|---|---|
DeleteQuery(Table tab)
|
|
| Method Summary | |
|---|---|
void |
addColumn(Column col)
Adds a column to retrieve. |
void |
addSortCriteria(Column col,
boolean ascending)
Add sort-critera (order by) to query. |
void |
addSortCriteria(Index index,
boolean ascending)
Add sort-critera (order by) to query. |
QueryInstance |
createInstance()
Creates a instance of this query. |
java.util.List |
getJoins()
Returns the joins for this query. |
java.lang.String |
getSQL()
Returns the resulting select SQL statement. |
boolean |
isCascade()
|
Join |
join(ForeignKey fk)
Joins another table to this query by a given foreign key. |
Join |
join(Table table)
Joins another table to this query by a given table. |
Join |
outerJoin(ForeignKey fk)
Joins another table to this query by a given foreign key, using left outer join. |
void |
setCascade(boolean cascade)
|
| Methods inherited from class butler.sql.query.Query |
|---|
addColumn, addFunctionColumn, addSortCriteria, addSortCriteria, addSubQuery, checkPermission, copy, createTableDictonary, getColumn, getColumns, getComparator, getFilter, getFilter, getHaving, getJoinByAlias, getMainTable, getMaxNoOfRecords, getName, getPhysicalColumns, getSortCriterias, getSubQueries, getTable, getUnions, is2D, isNested, isUnion, isUniqueSort, join, join, modifyFilter, newIterator, outerJoin, outerJoin, parse, parse, parseQuery, recursiveJoin, registerJoin, run, setAggregate, setAlias, setDistinct, setFilter, setHaving, setMaxNoOfRecords, setName, setNested, setRecordComparator, setSortCriterias, setUnion, setUniqueSort, toXML, toXML, union |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteQuery(Table tab)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void addColumn(Column col)
Query
addColumn in class Querypublic void setCascade(boolean cascade)
public boolean isCascade()
public Join join(ForeignKey fk)
throws java.lang.Exception
Query
join in interface Joinablejoin in class Queryjava.lang.Exception
public Join outerJoin(ForeignKey fk)
throws java.lang.Exception
Query
outerJoin in interface JoinableouterJoin in class Queryjava.lang.Exception
public Join join(Table table)
throws java.lang.Exception
Query
join in class Queryjava.lang.Exceptionpublic java.util.List getJoins()
Query
getJoins in class Query
public void addSortCriteria(Column col,
boolean ascending)
throws java.lang.Exception
Query
addSortCriteria in class Queryjava.lang.Exception
public void addSortCriteria(Index index,
boolean ascending)
throws java.lang.Exception
Query
addSortCriteria in class Queryjava.lang.Exceptionpublic QueryInstance createInstance()
Query
createInstance in class Query
public java.lang.String getSQL()
throws java.lang.Exception
Query
getSQL in class Queryjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||