Verwendungen von Klasse
org.apache.torque.criteria.Criteria
Packages, die Criteria verwenden
Package
Beschreibung
This package contains Torque's Criteria classes.
Description of the schema layout.
Contains the Mapper interface which defines how to map from
a ResultSet to an object, and simple implementations of this interface.
This package contains classes which are mainly used in the SQL generation
process.
This package contains classes which can build
PreparedStatementParts from a single value or column.
Misc. utility classes.
-
Verwendungen von Criteria in org.apache.torque.criteria
Methoden in org.apache.torque.criteria, die Criteria zurückgebenModifizierer und TypMethodeBeschreibungAllows one to specify an alias for a table.Allows one to specify an alias for a subselect.Criteria.addAscendingOrderByColumn
(Column column) Adds an order by clause, explicitly specifying ascending.Criteria.addAscendingOrderByColumn
(Column column, boolean ignoreCase) Add an order by clause, explicitly specifying ascending.Criteria.addAsColumn
(String name, Column clause) Add an AS clause to the select columns.Criteria.addDescendingOrderByColumn
(Column column) Add order by column name, explicitly specifying descending.Criteria.addDescendingOrderByColumn
(Column column, boolean ignoreCase) Add order by column name, explicitly specifying descending.Adds a table to the from clause, not using a joinType or joinCondition.Criteria.addFrom
(FromElement fromElement) Adds a new Element to the from clause.Criteria.addGroupByColumn
(Column groupBy) Add a group by clause.This method adds a prepared Criterion object to the Criteria as a having clause.Adds a join to the criteria.Adds a join to the criteria, E.g. to create the conditionAdds a join to the criteria, E.g. to create the conditionAdds a join to the criteria, E.g. to create the conditionCriteria.addJoin
(PreparedStatementPart leftTable, PreparedStatementPart rightTable, Criterion joinCondition, JoinType joinType) Adds a join to the criteria, E.g. to create the conditionCriteria.addSelectColumn
(Column column) Adds a select column to the Criteria."AND"s a new condition with the conditions in this Criteria."AND"s a new condition with the conditions in this Criteria."AND"s Criterion object with the conditions in this Criteria.Convenience method to AND a new date comparison with the conditions in this Criteria.Convenience method to AND a new date comparison with the conditions in this Criteria.Convenience method to AND a "in" comparison with the conditions in this Criteria.Criteria.andIn
(Object lValue, Collection<?> rValues) Convenience method to AND a "in" comparison with the conditions in this Criteria.Convenience method to AND a "not in" comparison with the conditions in this Criteria.Criteria.andNotIn
(Object lValue, Collection<?> rValues) Convenience method to AND a "not in" comparison with the conditions in this Criteria.Criteria.andVerbatimSql
(String sql, Object[] replacements) Ands a verbatim sql condition to this Criteria.Criteria.andVerbatimSql
(String sql, Object[] replacements, Column toAddToFromClause1, Column toAddToFromClause2) ANDs a verbatim sql condition to this Criteria.Creates a SQL EXCEPT between this Criteria and the passed other criteria.Creates a SQL EXCEPT between this Criteria and the passed other criteria.Criteria.forUpdate()
Sets that FOR UPDATE clause should be added to the query.Criteria.getSubselectForAlias
(String alias) Returns the subselect associated with an alias.Creates a SQL INTERSECT between this Criteria and the passed other criteria.Criteria.intersectAll
(Criteria other) Creates a SQL INTERSECT ALL between this Criteria and the passed other criteria."OR"s a new condition with the conditions in this Criteria."OR"s a new condition with the conditions in this Criteria."OR"s a Criterion object with the conditions in this Criteria.Convenience method to OR a new date comparison with the conditions in this Criteria.Convenience method to OR a new date comparison with the conditions in this Criteria.Convenience method to OR a "in" comparison with the conditions in this Criteria.Criteria.orIn
(Object lValue, Collection<?> rValues) Convenience method to OR a "in" comparison with the conditions in this Criteria.Convenience method to OR a "not in" comparison with the conditions in this Criteria.Criteria.orNotIn
(Object lValue, Collection<?> rValues) Convenience method to OR a "not in" comparison with the conditions in this Criteria.Criteria.orVerbatimSql
(String sql, Object[] replacements) ORs a verbatim sql condition to this Criteria.Criteria.orVerbatimSql
(String sql, Object[] replacements, Column toAddToFromClause1, Column toAddToFromClause2) ORs a verbatim sql condition to this Criteria.Criteria.setAll()
Adds "ALL " to the SQL statement.Set the Database name.Criteria.setDistinct()
Adds "DISTINCT " to the SQL statement.Criteria.setFetchSize
(Integer fetchSize) Sets the JDBC statement fetch size to use for queries.Criteria.setForUpdate
(boolean forUpdate) Sets whether FOR UPDATE clause should be added to the query.Criteria.setIgnoreCase
(boolean ignoreCase) Sets whether case should be ignored in where clauses and order by whenever String columns are encountered.Criteria.setLimit
(int limit) Set a limit for the queryCriteria.setOffset
(long offset) Set the offset.Criteria.setSingleRecord
(boolean b) Switch the check on or off that a query returns exactly one record.Creates a SQL UNION between this Criteria and the passed other criteria.Creates a SQL UNION ALL between this Criteria and the passed other criteria."AND"s a new condition with the conditions in this Criteria."AND"s a new condition with the conditions in this Criteria."AND"s Criterion object with the conditions in this Criteria.Convenience method to AND a new date comparison with the conditions in this Criteria.Convenience method to AND a new date comparison with the conditions in this Criteria.Convenience method to AND a "in" comparison with the conditions in this Criteria.Criteria.whereIn
(Object lValue, Collection<?> rValues) Convenience method to AND a "in" comparison with the conditions in this Criteria.Criteria.whereNotIn
(Object lValue, Object[] rValues) Convenience method to AND a "not in" comparison with the conditions in this Criteria.Criteria.whereNotIn
(Object lValue, Collection<?> rValues) Convenience method to AND a "not in" comparison with the conditions in this Criteria.Criteria.whereVerbatimSql
(String sql, Object[] replacements) Convenience method to AND a verbatim sql condition to this Criteria.Criteria.whereVerbatimSql
(String sql, Object[] replacements, Column toAddToFromClause1, Column toAddToFromClause2) Convenience method to AND a verbatim sql condition to this Criteria.Methoden in org.apache.torque.criteria, die Typen mit Argumenten vom Typ Criteria zurückgebenModifizierer und TypMethodeBeschreibungCriteria.getSetCriteriaParts()
Return the parts of the criteria which compose a query using set operations (union, except, intersect).Methoden in org.apache.torque.criteria mit Parametern vom Typ CriteriaModifizierer und TypMethodeBeschreibungAllows one to specify an alias for a subselect.protected void
Criteria.appendSetOperation
(Criteria other, SqlEnum setOperator) Appends a set operation (union, except, intersect) to this Criteria.Creates a SQL EXCEPT between this Criteria and the passed other criteria.Creates a SQL EXCEPT between this Criteria and the passed other criteria.Creates a SQL INTERSECT between this Criteria and the passed other criteria.Criteria.intersectAll
(Criteria other) Creates a SQL INTERSECT ALL between this Criteria and the passed other criteria.Creates a SQL UNION between this Criteria and the passed other criteria.Creates a SQL UNION ALL between this Criteria and the passed other criteria.Konstruktoren in org.apache.torque.criteria mit Parametern vom Typ Criteria -
Verwendungen von Criteria in org.apache.torque.map
Methoden in org.apache.torque.map mit Parametern vom Typ CriteriaModifizierer und TypMethodeBeschreibungstatic ColumnMap
MapHelper.getColumnMap
(Column column, Criteria criteria) Returns the column map for a column.static TableMap
MapHelper.getTableMap
(Object possibleColumn, Criteria criteria, TableMap defaultTableMap) Returns the table map for a table name. -
Verwendungen von Criteria in org.apache.torque.om.mapper
Methoden in org.apache.torque.om.mapper mit Parametern vom Typ CriteriaModifizierer und TypMethodeBeschreibungBigDecimalMapper.processRow
(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result to a BigDecimal.CompositeMapper.processRow
(ResultSet resultSet, int offset, Criteria criteria) Maps the current row in the result Set by applying all known mappers and putting the result of each mapper in the result list.DateMapper.processRow
(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result set to a java.util.Date.IntegerMapper.processRow
(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result set to a Integer.LongMapper.processRow
(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result set to a Long.ObjectListMapper.processRow
(ResultSet resultSet, int offset, Criteria criteria) Maps the current row in the result set by reading all columns from offset on to the end of the row and store an object for each column in the result.RecordMapper.processRow
(ResultSet resultSet, int rowOffset, Criteria criteria) Constructs the object from the current row in the resultSet.StringMapper.processRow
(ResultSet resultSet, int rowOffset, Criteria criteria) Maps the current row in the result set to a String. -
Verwendungen von Criteria in org.apache.torque.sql
Methoden in org.apache.torque.sql mit Parametern vom Typ CriteriaModifizierer und TypMethodeBeschreibungstatic Query
SqlBuilder.buildQuery
(Criteria crit) Builds a Query from a criteria.static String
SqlBuilder.guessFullTableFromCriteria
(Criteria criteria) Guesses a table name from a criteria by inspecting the first column in the criteria.static void
JoinBuilder.processJoins
(Criteria criteria, Query query) Adds the Joins from the criteria to the query. -
Verwendungen von Criteria in org.apache.torque.sql.objectbuilder
Konstruktoren in org.apache.torque.sql.objectbuilder mit Parametern vom Typ CriteriaModifiziererKonstruktorBeschreibungPreparedStatementPartForSubselect
(Criteria toBuildFrom, Query outerQuery) Constructor. -
Verwendungen von Criteria in org.apache.torque.util
Methoden in org.apache.torque.util, die Criteria zurückgebenModifizierer und TypMethodeBeschreibungAbstractPeerImpl.buildCriteria
(ObjectKey<?> pk) Build a Criteria object which selects all objects which have a given primary key.abstract Criteria
AbstractPeerImpl.buildCriteria
(T obj) Build a Criteria object from the data object for this peer.SummaryHelper.buildCriteria
(Criteria c) Builds the criteria to use in summarizing the information.abstract Criteria
AbstractPeerImpl.buildSelectCriteria
(T obj) Build a Criteria object from the data object for this peer, skipping all binary columns.Methoden in org.apache.torque.util mit Parametern vom Typ CriteriaModifizierer und TypMethodeBeschreibungvoid
BasePeerImpl.addSelectColumns
(Criteria criteria) Add all the columns needed to create a new object.Returns the average of a column in a query.AvgHelper.avg
(Criteria c, Connection conn, String columnName, TableMap tableMap) Returns the average of a column in a query.AvgHelper.avg
(Criteria c, Connection conn, Column column) Returns the average of a column in a query.Returns the average of a column in a query.SummaryHelper.buildCriteria
(Criteria c) Builds the criteria to use in summarizing the information.void
BasePeerImpl.correctBooleans
(Criteria criteria) Checks all columns in the criteria to see whether booleanchar and booleanint columns are queried with a boolean.int
The COUNT function returns the number of rows in a query.int
Returns the number of rows in a query.int
CountHelper.count
(Criteria c, Connection conn) The COUNT function returns the number of rows in a query.int
CountHelper.count
(Criteria c, Connection conn, String columnName, TableMap tableMap) Returns the number of rows in a query.int
CountHelper.count
(Criteria c, Connection conn, Column column) Returns the number of rows in a query.int
Returns the number of rows in a query.int
Deletes rows from a database table.int
BasePeerImpl.doDelete
(Criteria criteria, Connection connection) Deletes rows from a table.int
Executes a insert into...select statement.int
Executes a insert into...select statement.int
BasePeerImpl.doInsert
(Column[] toInsertInto, Criteria criteria, String dbName, Connection connection) Executes a insert into...select statement.int
BasePeerImpl.doInsert
(Column[] toInsertInto, Criteria criteria, Connection connection) Executes a insert into...select statement.Selects objects from a database.BasePeerImpl.doSelect
(Criteria criteria, Connection connection) Selects objects from a database within a transaction.<TT> List<TT>
BasePeerImpl.doSelect
(Criteria criteria, RecordMapper<TT> mapper) Selects rows from a database an maps them to objects.<TT> List<TT>
BasePeerImpl.doSelect
(Criteria criteria, RecordMapper<TT> mapper, Connection connection) Performs a SQLselect
using a PreparedStatement.BasePeerImpl.doSelectAsStream
(Criteria criteria, Connection connection) Selects objects from a database within a transaction.<TT> Stream<TT>
BasePeerImpl.doSelectAsStream
(Criteria criteria, RecordMapper<TT> mapper, Connection connection) Performs a SQLselect
using a PreparedStatement.BasePeerImpl.doSelectSingleRecord
(Criteria criteria) Selects at most one object from a database.BasePeerImpl.doSelectSingleRecord
(Criteria criteria, Connection connection) Selects at most one object from a database within a transaction.<TT> TT
BasePeerImpl.doSelectSingleRecord
(Criteria criteria, RecordMapper<TT> mapper) Selects at most a single row from a database an maps them to objects.<TT> TT
BasePeerImpl.doSelectSingleRecord
(Criteria criteria, RecordMapper<TT> mapper, Connection connection) Selects at most a single row from a database an maps them to objects.int
BasePeerImpl.doUpdate
(Criteria selectCriteria, ColumnValues updateValues) Executes an update against the database.int
BasePeerImpl.doUpdate
(Criteria criteria, ColumnValues updateValues, Connection connection) Executes an update against the database.protected void
Sets the database name in the passed criteria to the table's default, if it is not already set.Return a list of ListOrderedMapCI objects with the results of the summary query.SummaryHelper.summarize
(Criteria crit, Connection conn) Return a list of OrderedMap objects with the results of the summary query.Return a list of ListOrderedMapCI objects with the results of the summary query.SummaryHelper.summarize
(Criteria crit, List<Class<?>> resultTypes, Connection conn) Return a list of ListOrderedMapCI objects with the results of the summary query.Konstruktoren in org.apache.torque.util mit Parametern vom Typ CriteriaModifiziererKonstruktorBeschreibungLargeSelect
(Criteria criteria, int pageSize, int memoryPageLimit, BasePeerImpl<T> peerImpl) Creates a LargeSelect whose results are returned as aList
containing a maximum ofpageSize
objects of the type T at a time, maintaining a maximum ofmemoryPageLimit
pages of results in memory.LargeSelect
(Criteria criteria, int pageSize, BasePeerImpl<T> peerImpl) Creates a LargeSelect whose results are returned as aList
containing a maximum ofpageSize
objects of the type defined within the class namedreturnBuilderClassName
at a time, maintaining a maximum ofLargeSelect.memoryPageLimit
pages of results in memory.ResultsetSpliterator
(RecordMapper<T> recordMapper, Criteria criteria, Statement statement, ResultSet resultSet) Constructor