public class KKCriteria
extends org.apache.torque.util.Criteria
Modifier and Type | Class and Description |
---|---|
class |
KKCriteria.KKCriterion
This is an inner class that describes an object in the criteria.
|
Modifier and Type | Field and Description |
---|---|
static org.apache.torque.criteria.SqlEnum |
ALL
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
ALT_NOT_EQUAL
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
CURRENT_DATE
"CURRENT_DATE" ANSI SQL function
|
static org.apache.torque.criteria.SqlEnum |
CURRENT_TIME
"CURRENT_TIME" ANSI SQL function
|
static org.apache.torque.criteria.SqlEnum |
CUSTOM
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
DISTINCT
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
EQUAL
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
GREATER_EQUAL
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
GREATER_THAN
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
ILIKE
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
IN
Comparison type.
|
static org.apache.torque.criteria.JoinType |
INNER_JOIN
"INNER JOIN" SQL statement
|
static org.apache.torque.criteria.SqlEnum |
ISNOTNULL
"IS NOT NULL" null comparison
|
static org.apache.torque.criteria.SqlEnum |
ISNULL
"IS NULL" null comparison
|
static org.apache.torque.criteria.SqlEnum |
JOIN
Comparison type.
|
static org.apache.torque.criteria.JoinType |
LEFT_JOIN
"LEFT JOIN" SQL statement
|
static org.apache.torque.criteria.SqlEnum |
LESS_EQUAL
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
LESS_THAN
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
LIKE
Comparison type.
|
protected static org.apache.commons.logging.Log |
log
the log
|
static org.apache.torque.criteria.SqlEnum |
NOT_EQUAL
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
NOT_ILIKE
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
NOT_IN
Comparison type.
|
static org.apache.torque.criteria.SqlEnum |
NOT_LIKE
Comparison type.
|
static java.util.Map<java.lang.String,org.apache.torque.util.BasePeerImpl<?>> |
peerImplMap
Holds a map of Peer class name to PeerImpl objects
|
static org.apache.torque.criteria.JoinType |
RIGHT_JOIN
"RIGHT JOIN" SQL statement
|
Constructor and Description |
---|
KKCriteria()
Constructor
|
KKCriteria(java.lang.String dbName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.apache.torque.util.Criteria |
add(org.apache.torque.map.ColumnMap colMap,
java.lang.Object value)
Add a column and a value to the criteria
|
org.apache.torque.util.Criteria |
add(org.apache.torque.map.ColumnMap colMap,
java.lang.Object value,
org.apache.torque.criteria.SqlEnum comparison) |
org.apache.torque.util.Criteria |
add(org.apache.torque.util.Criteria.Criterion c) |
KKCriteria |
add(KKCriteria.KKCriterion c)
This method adds a prepared KKCriterion object to the KKCriteria.
|
KKCriteria |
add(java.lang.String column,
java.lang.Object value)
This method adds a new criterion to the list of criterias.
|
KKCriteria |
add(java.lang.String column,
java.lang.Object value,
org.apache.torque.criteria.SqlEnum comparison)
This method adds a new criterion to the list of criterias.
|
org.apache.torque.util.Criteria |
addAscendingOrderByColumn(org.apache.torque.Column column)
Add order by column name, explicitly specifying ascending.
|
org.apache.torque.util.Criteria |
addAscendingOrderByColumn(java.lang.String name)
Add order by column name, explicitly specifying ascending.
|
void |
addCriterionOrNull(org.apache.torque.map.ColumnMap col,
org.apache.torque.criteria.SqlEnum comparison,
java.lang.Object value)
Add a Criterion where a column is compared with a value OR is null
|
org.apache.torque.util.Criteria |
addDescendingOrderByColumn(org.apache.torque.Column column)
Add order by column name, explicitly specifying descending.
|
org.apache.torque.util.Criteria |
addDescendingOrderByColumn(java.lang.String name)
Add order by column name, explicitly specifying descending.
|
void |
addForInsert(org.apache.torque.map.ColumnMap colMap,
int value)
A utility method to not add integers that are equal to BaseMgr.NOT_INITIALISED
|
void |
addForInsert(org.apache.torque.map.ColumnMap colMap,
java.lang.Object value)
A utility to not add null objects
|
org.apache.torque.util.Criteria |
addGroupByColumn(org.apache.torque.Column groupBy)
Add group by column name.
|
KKCriteria |
addIn(org.apache.torque.Column column,
java.util.Collection<?> values)
Adds an 'IN' clause with the criteria supplied as a Collection.
|
void |
addIn(org.apache.torque.map.ColumnMap colMap,
int[] inObjects)
Add objects to the in clause of the criteria
|
void |
addIn(org.apache.torque.map.ColumnMap colMap,
java.lang.Object[] inObjects)
Add objects to the in clause of the criteria
|
org.apache.torque.util.Criteria |
addJoin(org.apache.torque.Column left,
org.apache.torque.Column right)
This is the way that you should add a join of two tables.
|
org.apache.torque.util.Criteria |
addJoin(org.apache.torque.Column left,
org.apache.torque.Column right,
org.apache.torque.criteria.JoinType operator)
This is the way that you should add a join of two tables.
|
org.apache.torque.util.Criteria |
addJoin(org.apache.torque.map.ColumnMap left,
org.apache.torque.map.ColumnMap right)
This is the way that you should add a join of two tables.
|
org.apache.torque.util.Criteria |
addJoin(org.apache.torque.map.ColumnMap left,
org.apache.torque.map.ColumnMap right,
org.apache.torque.criteria.JoinType operator)
This is the way that you should add a join of two tables.
|
void |
addJoin(org.apache.torque.map.ColumnMap colMap,
java.lang.String right,
org.apache.torque.criteria.JoinType joinType)
Add a Join of the specified type
|
void |
addJoin(java.lang.String left,
org.apache.torque.map.ColumnMap right) |
org.apache.torque.util.Criteria |
addJoin(java.lang.String left,
java.lang.String right)
This is the way that you should add a join of two tables.
|
void |
addNotIn(org.apache.torque.map.ColumnMap colMap,
int[] inObjects)
Add objects to the not in clause of the criteria
|
KKCriteria |
addSelectColumn(org.apache.torque.Column column)
Add select column.
|
KKCriteria |
addSelectColumn(org.apache.torque.map.ColumnMap colMap)
Add select column.
|
KKCriteria |
addSelectColumn(java.lang.String name)
Add select column.
|
void |
clear()
Brings this criteria back to its initial state, so that it can be reused as if it was new.
|
boolean |
containsKey(org.apache.torque.map.ColumnMap colMap)
Does the Criteria contain this column already?
|
void |
derivePeerImpl(org.apache.torque.Column col)
Derive the PeerImpl for the criteria
|
void |
derivePeerImpl(org.apache.torque.map.ColumnMap colMap)
Derive the PeerImpl for the criteria
|
void |
derivePeerImpl(java.lang.String tableName)
Derive the PeerImpl for the criteria
|
void |
derivePeerImpl(org.apache.torque.map.TableMap tabMap)
Derive the PeerImpl for the criteria
|
java.util.Map<java.lang.String,org.apache.torque.Column> |
getAsColumns()
Get the column aliases.
|
org.apache.torque.util.ColumnValues |
getColValues() |
java.lang.String |
getDbName()
Get the Database(Map) name.
|
java.lang.String |
getDisplayQuery() |
java.lang.String |
getFirstTablename() |
org.apache.torque.util.UniqueColumnList |
getGroupByColumns()
Get group by columns.
|
KKCriteria.KKCriterion |
getNewCriterion(org.apache.torque.map.ColumnMap colMap,
java.lang.Object value,
org.apache.torque.criteria.SqlEnum comparison)
Method to return criterion that is not added automatically to this Criteria.
|
KKCriteria.KKCriterion |
getNewCriterion(org.apache.torque.map.ColumnMap colMap,
java.lang.String value,
java.lang.String preWildCard,
java.lang.String postWildCard,
int rule,
boolean ignoreCase) |
KKCriteria.KKCriterion |
getNewCriterion(org.apache.torque.Column column,
java.lang.Object value,
org.apache.torque.criteria.SqlEnum comparison)
Method to return criterion that is not added automatically to this Criteria.
|
KKCriteria.KKCriterion |
getNewCriterion(java.lang.String table,
java.lang.String column,
java.lang.String value,
java.lang.String preWildCard,
java.lang.String postWildCard,
int rule,
boolean ignoreCase)
Method to return criterion object for a query
|
KKCriteria.KKCriterion |
getNewKKCriterion(org.apache.torque.Column column,
java.lang.Object value,
org.apache.torque.criteria.SqlEnum comparison)
Method to return criterion that is not added automatically to this Criteria.
|
KKCriteria.KKCriterion |
getNewKKCriterion(java.lang.String column,
java.lang.Object value,
org.apache.torque.criteria.SqlEnum comparison)
Method to return criterion that is not added automatically to this Criteria.
|
org.apache.torque.util.UniqueList<org.apache.torque.sql.OrderBy> |
getOrderByColumns()
Get order by columns.
|
org.apache.torque.util.BasePeerImpl<?> |
getPeerImpl() |
java.lang.String |
getQueryString() |
static KKSearch |
getSearch(java.lang.String searchString,
int rule)
Creates a search string based on the rule.
|
static org.apache.torque.criteria.SqlEnum |
getSearchCriteria(int rule)
Returns the Torque constraint for the KonaKart rule.
|
org.apache.torque.util.UniqueColumnList |
getSelectColumns()
Get select columns.
|
java.lang.Object |
getSqlValue(int torqueType,
java.lang.Object value)
Get a value for the Torque Type suitable for a prepared statement
|
java.lang.String |
getStoreId() |
java.lang.String |
getTableName() |
org.apache.torque.sql.Query.Type |
getType() |
java.lang.Object |
getValue(org.apache.torque.Column column)
Method to return the value that was added to Criteria.
|
boolean |
isEmpty()
Returns whether there are any criterions in this criteria.
|
boolean |
isLogInsertFailures()
Don't log insert failures at WARN level if false.
|
boolean |
isUseTransaction()
called by BasePeer to determine whether the sql command specified by this criteria must be
wrapped in a transaction.
|
org.apache.torque.util.Criteria |
or(java.lang.String column,
java.lang.Object value,
org.apache.torque.criteria.SqlEnum comparison)
This method adds a new OR criterion to the list of criteria.
|
void |
put(java.lang.String fullyQualifiedName,
java.lang.Object value) |
java.lang.Object |
remove(java.lang.String fullyQualifiedName) |
void |
setDbName(java.lang.String dbName)
Set the DatabaseMap name.
|
void |
setDisplayQuery(java.lang.String displayQuery) |
void |
setDistinct()
Adds "DISTINCT " to the SQL statement.
|
void |
setFirstTablename(java.lang.String firstTablename) |
org.apache.torque.util.Criteria |
setLimit(int limit)
Set limit.
|
void |
setLogInsertFailures(boolean logInsertFailures)
Don't log insert failures at WARN level if false.
|
org.apache.torque.util.Criteria |
setOffset(long offset)
Set offset.
|
void |
setPeerImpl(org.apache.torque.util.BasePeerImpl<?> peerImpl) |
void |
setStoreId(java.lang.String storeId) |
void |
setType(org.apache.torque.sql.Query.Type type) |
void |
setUseTransaction(boolean v)
Will force the sql represented by this criteria to be executed within a transaction.
|
java.lang.String |
toString()
Build a string representation of the Criteria.
|
add, add, add, add, addAlias, addAscendingOrderByColumn, addAsColumn, addAsColumn, addDate, addDate, addDate, addDate, addDescendingOrderByColumn, addGroupByColumn, addHaving, addIn, addIn, addIn, addJoin, addJoinInCriteria, addNotIn, addNotIn, addNotIn, addNotIn, and, and, and, and, and, and, and, andDate, andDate, andDate, andDate, andDate, andIn, andIn, andIn, andIn, andNotIn, andNotIn, andNotIn, andNotIn, containsKey, equals, get, getAliases, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getComparison, getComparison, getCriterion, getCriterion, getCriterion, getDate, getDate, getDouble, getDouble, getFloat, getFloat, getHaving, getInt, getInt, getInteger, getInteger, getJoins, getLimit, getList, getList, getLong, getLong, getNewCriterion, getNewCriterion, getObjectKey, getObjectKey, getOffset, getSelectModifiers, getString, getString, getTableForAlias, getValue, hashCode, isIgnoreCase, isSingleRecord, keySet, or, or, or, or, or, or, orDate, orDate, orDate, orDate, orIn, orIn, orIn, orIn, orNotIn, orNotIn, orNotIn, orNotIn, put, putAll, remove, setAll, setIgnoreCase, setSingleRecord, size, values
protected static final org.apache.commons.logging.Log log
public static final org.apache.torque.criteria.SqlEnum EQUAL
public static final org.apache.torque.criteria.SqlEnum NOT_EQUAL
public static final org.apache.torque.criteria.SqlEnum ALT_NOT_EQUAL
public static final org.apache.torque.criteria.SqlEnum GREATER_THAN
public static final org.apache.torque.criteria.SqlEnum LESS_THAN
public static final org.apache.torque.criteria.SqlEnum GREATER_EQUAL
public static final org.apache.torque.criteria.SqlEnum LESS_EQUAL
public static final org.apache.torque.criteria.SqlEnum LIKE
public static final org.apache.torque.criteria.SqlEnum NOT_LIKE
public static final org.apache.torque.criteria.SqlEnum ILIKE
public static final org.apache.torque.criteria.SqlEnum NOT_ILIKE
public static final org.apache.torque.criteria.SqlEnum CUSTOM
public static final org.apache.torque.criteria.SqlEnum DISTINCT
public static final org.apache.torque.criteria.SqlEnum IN
public static final org.apache.torque.criteria.SqlEnum NOT_IN
public static final org.apache.torque.criteria.SqlEnum ALL
public static final org.apache.torque.criteria.SqlEnum JOIN
public static final org.apache.torque.criteria.SqlEnum ISNULL
public static final org.apache.torque.criteria.SqlEnum ISNOTNULL
public static final org.apache.torque.criteria.SqlEnum CURRENT_DATE
public static final org.apache.torque.criteria.SqlEnum CURRENT_TIME
public static final org.apache.torque.criteria.JoinType LEFT_JOIN
public static final org.apache.torque.criteria.JoinType RIGHT_JOIN
public static final org.apache.torque.criteria.JoinType INNER_JOIN
public static java.util.Map<java.lang.String,org.apache.torque.util.BasePeerImpl<?>> peerImplMap
public KKCriteria()
public KKCriteria(java.lang.String dbName)
dbName
- the dbNamepublic void addForInsert(org.apache.torque.map.ColumnMap colMap, int value)
colMap
- the colMapvalue
- the valuepublic void addForInsert(org.apache.torque.map.ColumnMap colMap, java.lang.Object value)
colMap
- the colMapvalue
- the valuepublic java.lang.Object getSqlValue(int torqueType, java.lang.Object value)
torqueType
- the torqueTypevalue
- the valuepublic KKCriteria add(java.lang.String column, java.lang.Object value, org.apache.torque.criteria.SqlEnum comparison)
Criteria crit = new Criteria().add("column",
"value"
Criteria.GREATER_THAN);
Any comparison can be used.
The name of the table must be used implicitly in the column name, so the Column name must be
something like 'TABLE.id'. If you don't like this, you can use the add(table, column, value)
method.
add
in class org.apache.torque.util.Criteria
column
- The column to run the comparison onvalue
- An Object.comparison
- A String.public org.apache.torque.util.Criteria add(org.apache.torque.map.ColumnMap colMap, java.lang.Object value, org.apache.torque.criteria.SqlEnum comparison)
colMap
- the colMapvalue
- An Object.comparison
- A String.public org.apache.torque.util.Criteria add(org.apache.torque.map.ColumnMap colMap, java.lang.Object value)
colMap
- the colMapvalue
- the valuepublic KKCriteria add(java.lang.String column, java.lang.Object value)
Criteria crit = new Criteria().add("column",
"value");
An EQUAL comparison is used for column and value.
The name of the table must be used implicitly in the column name, so the Column name must be
something like 'TABLE.id'. If you don't like this, you can use the add(table, column, value)
method.
add
in class org.apache.torque.util.Criteria
column
- The column to run the comparison onvalue
- An Object.public void addIn(org.apache.torque.map.ColumnMap colMap, java.lang.Object[] inObjects)
colMap
- the colMapinObjects
- the inObjectspublic void addIn(org.apache.torque.map.ColumnMap colMap, int[] inObjects)
colMap
- the colMapinObjects
- the inObjectspublic KKCriteria addIn(org.apache.torque.Column column, java.util.Collection<?> values)
FOO.NAME IN ('FOO', 'BAR', 'ZOW')
where 'values' contains three Strings "FOO", "BAR" and "ZOW". If a criterion for the requested column already exists, it is replaced.
addIn
in class org.apache.torque.util.Criteria
column
- The column to run the comparison onvalues
- A Collection with the allowed values.public void addNotIn(org.apache.torque.map.ColumnMap colMap, int[] inObjects)
colMap
- the colMapinObjects
- the inObjectspublic void derivePeerImpl(java.lang.String tableName) throws org.apache.torque.TorqueException
tableName
- the tableNameorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void derivePeerImpl(org.apache.torque.map.ColumnMap colMap)
colMap
- the colMappublic void derivePeerImpl(org.apache.torque.Column col) throws org.apache.torque.TorqueException
col
- the colorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void derivePeerImpl(org.apache.torque.map.TableMap tabMap)
tabMap
- the tabMappublic org.apache.torque.util.Criteria or(java.lang.String column, java.lang.Object value, org.apache.torque.criteria.SqlEnum comparison)
Criteria crit = new Criteria().add("column",
"value"
Criteria.GREATER_THAN);
crit.or("column",
"value"
Criteria.GREATER_THAN);
Any comparison can be used.
The name of the table must be used implicitly in the column name, so the Column name must be
something like 'TABLE.id'. If you don't like this, you can use the add(table, column, value)
method.
or
in class org.apache.torque.util.Criteria
column
- The column to run the comparison onvalue
- An Object.comparison
- A String.public KKCriteria addSelectColumn(org.apache.torque.Column column)
addSelectColumn
in class org.apache.torque.util.Criteria
column
- The select column to add.public KKCriteria addSelectColumn(org.apache.torque.map.ColumnMap colMap)
colMap
- The select column to add.public KKCriteria addSelectColumn(java.lang.String name)
addSelectColumn
in class org.apache.torque.util.Criteria
name
- A String with the name of the select column.public org.apache.torque.util.Criteria addJoin(java.lang.String left, java.lang.String right)
AND PROJECT.PROJECT_ID=FOO.PROJECT_ID
left = PROJECT.PROJECT_ID right = FOO.PROJECT_ID
addJoin
in class org.apache.torque.util.Criteria
left
- A String with the left side of the join.right
- A String with the right side of the join.public org.apache.torque.util.Criteria addJoin(org.apache.torque.Column left, org.apache.torque.Column right, org.apache.torque.criteria.JoinType operator)
PROJECT LEFT JOIN FOO ON PROJECT.PROJECT_ID=FOO.PROJECT_ID
left = "PROJECT.PROJECT_ID" right = "FOO.PROJECT_ID" operator = Criteria.LEFT_JOIN
addJoin
in class org.apache.torque.util.Criteria
left
- A String with the left side of the join.right
- A String with the right side of the join.operator
- The operator used for the join: must be one of null, Criteria.LEFT_JOIN,
Criteria.RIGHT_JOIN, Criteria.INNER_JOINpublic org.apache.torque.util.Criteria addJoin(org.apache.torque.map.ColumnMap left, org.apache.torque.map.ColumnMap right, org.apache.torque.criteria.JoinType operator)
PROJECT LEFT JOIN FOO ON PROJECT.PROJECT_ID=FOO.PROJECT_ID
left = "PROJECT.PROJECT_ID" right = "FOO.PROJECT_ID" operator = Criteria.LEFT_JOIN
left
- A String with the left side of the join.right
- A String with the right side of the join.operator
- The operator used for the join: must be one of null, Criteria.LEFT_JOIN,
Criteria.RIGHT_JOIN, Criteria.INNER_JOINpublic org.apache.torque.util.Criteria addJoin(org.apache.torque.Column left, org.apache.torque.Column right)
AND PROJECT.PROJECT_ID=FOO.PROJECT_ID
left = PROJECT.PROJECT_ID right = FOO.PROJECT_ID
addJoin
in class org.apache.torque.util.Criteria
left
- A String with the left side of the join.right
- A String with the right side of the join.public org.apache.torque.util.Criteria addJoin(org.apache.torque.map.ColumnMap left, org.apache.torque.map.ColumnMap right)
AND PROJECT.PROJECT_ID=FOO.PROJECT_ID
left = PROJECT.PROJECT_ID right = FOO.PROJECT_ID
left
- A String with the left side of the join.right
- A String with the right side of the join.public void addJoin(org.apache.torque.map.ColumnMap colMap, java.lang.String right, org.apache.torque.criteria.JoinType joinType)
colMap
- the colMapright
- the rightjoinType
- the joinTypepublic void addJoin(java.lang.String left, org.apache.torque.map.ColumnMap right)
left
- the leftright
- the rightpublic org.apache.torque.util.Criteria addAscendingOrderByColumn(java.lang.String name)
addAscendingOrderByColumn
in class org.apache.torque.util.Criteria
name
- The name of the column to order by.public org.apache.torque.util.Criteria addAscendingOrderByColumn(org.apache.torque.Column column)
addAscendingOrderByColumn
in class org.apache.torque.util.Criteria
column
- The column to order by.public org.apache.torque.util.Criteria addDescendingOrderByColumn(java.lang.String name)
addDescendingOrderByColumn
in class org.apache.torque.util.Criteria
name
- The name of the column to order by.public org.apache.torque.util.Criteria addDescendingOrderByColumn(org.apache.torque.Column column)
addDescendingOrderByColumn
in class org.apache.torque.util.Criteria
column
- The column to order by.public org.apache.torque.util.Criteria addGroupByColumn(org.apache.torque.Column groupBy)
addGroupByColumn
in class org.apache.torque.util.Criteria
groupBy
- The name of the column to group by.public void clear()
clear
in class org.apache.torque.util.Criteria
public boolean isEmpty()
isEmpty
in class org.apache.torque.util.Criteria
public org.apache.torque.util.UniqueList<org.apache.torque.sql.OrderBy> getOrderByColumns()
getOrderByColumns
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
getOrderByColumns
in class org.apache.torque.util.Criteria
public org.apache.torque.util.UniqueColumnList getGroupByColumns()
getGroupByColumns
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
getGroupByColumns
in class org.apache.torque.util.Criteria
public java.util.Map<java.lang.String,org.apache.torque.Column> getAsColumns()
getAsColumns
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
getAsColumns
in class org.apache.torque.util.Criteria
public static KKSearch getSearch(java.lang.String searchString, int rule)
searchString
- the searchStringrule
- the rulepublic static org.apache.torque.criteria.SqlEnum getSearchCriteria(int rule)
rule
- the rulepublic java.lang.String getStoreId()
public void setStoreId(java.lang.String storeId)
storeId
- the storeId to setpublic boolean containsKey(org.apache.torque.map.ColumnMap colMap)
colMap
- the colMappublic void setUseTransaction(boolean v)
v
- the vpublic boolean isUseTransaction()
boolean
valuepublic java.lang.String getTableName()
public java.lang.Object remove(java.lang.String fullyQualifiedName)
fullyQualifiedName
- the fullyQualifiedNamepublic void put(java.lang.String fullyQualifiedName, java.lang.Object value)
fullyQualifiedName
- the fullyQualifiedNamevalue
- the valuepublic KKCriteria.KKCriterion getNewCriterion(org.apache.torque.map.ColumnMap colMap, java.lang.String value, java.lang.String preWildCard, java.lang.String postWildCard, int rule, boolean ignoreCase)
colMap
- the colMapvalue
- the valuepreWildCard
- the preWildCardpostWildCard
- the postWildCardrule
- the ruleignoreCase
- the ignoreCasepublic KKCriteria.KKCriterion getNewCriterion(java.lang.String table, java.lang.String column, java.lang.String value, java.lang.String preWildCard, java.lang.String postWildCard, int rule, boolean ignoreCase)
table
- the tablecolumn
- full name of column (for example TABLE.COLUMN).value
- raw value (without any wildcards)preWildCard
- the preWildCardpostWildCard
- the postWildCardrule
- the ruleignoreCase
- the ignoreCasepublic KKCriteria.KKCriterion getNewCriterion(org.apache.torque.map.ColumnMap colMap, java.lang.Object value, org.apache.torque.criteria.SqlEnum comparison)
colMap
- String full name of column (for example TABLE.COLUMN).value
- The value to compare to.comparison
- the comparison to use.public KKCriteria.KKCriterion getNewCriterion(org.apache.torque.Column column, java.lang.Object value, org.apache.torque.criteria.SqlEnum comparison)
getNewCriterion
in class org.apache.torque.util.Criteria
column
- String full name of column (for example TABLE.COLUMN).value
- The value to compare to.comparison
- the comparison to use.public KKCriteria.KKCriterion getNewKKCriterion(java.lang.String column, java.lang.Object value, org.apache.torque.criteria.SqlEnum comparison)
column
- String full name of column (for example TABLE.COLUMN).value
- The value to compare to.comparison
- the comparison to use.public KKCriteria.KKCriterion getNewKKCriterion(org.apache.torque.Column column, java.lang.Object value, org.apache.torque.criteria.SqlEnum comparison)
column
- String full name of column (for example TABLE.COLUMN).value
- The value to compare to.comparison
- the comparison to use.public org.apache.torque.util.Criteria add(org.apache.torque.util.Criteria.Criterion c)
add
in class org.apache.torque.util.Criteria
public void addCriterionOrNull(org.apache.torque.map.ColumnMap col, org.apache.torque.criteria.SqlEnum comparison, java.lang.Object value)
col
- the colcomparison
- the comparisonvalue
- the valuepublic org.apache.torque.util.BasePeerImpl<?> getPeerImpl()
public void setPeerImpl(org.apache.torque.util.BasePeerImpl<?> peerImpl)
peerImpl
- the peerImpl to setpublic KKCriteria add(KKCriteria.KKCriterion c)
KKCriteria crit = new KKCriteria();
KKCriteria.KKCriterion c = crit
.getNewCriterion(XXXPeer.ID, new Integer(5), KKCriteria.LESS_THAN);
crit.add(c);
c
- A KKCriterion objectpublic org.apache.torque.util.UniqueColumnList getSelectColumns()
getSelectColumns
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
getSelectColumns
in class org.apache.torque.util.Criteria
public org.apache.torque.util.ColumnValues getColValues()
public java.lang.Object getValue(org.apache.torque.Column column)
getValue
in class org.apache.torque.util.Criteria
column
- The column to retrieve the value for.public void setDbName(java.lang.String dbName)
null
is supplied, uses value provided by
Torque.getDefaultDB()
.setDbName
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
setDbName
in class org.apache.torque.util.Criteria
dbName
- A String with the Database(Map) name.public java.lang.String getDbName()
getDbName
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
getDbName
in class org.apache.torque.util.Criteria
public org.apache.torque.util.Criteria setOffset(long offset)
setOffset
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
setOffset
in class org.apache.torque.util.Criteria
offset
- An int with the value for offset.public org.apache.torque.util.Criteria setLimit(int limit)
setLimit
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
setLimit
in class org.apache.torque.util.Criteria
limit
- An int with the value for limit.public void setDistinct()
setDistinct
in interface org.apache.torque.criteria.CriteriaInterface<org.apache.torque.util.Criteria>
setDistinct
in class org.apache.torque.util.Criteria
public java.lang.String getDisplayQuery() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public java.lang.String getQueryString() throws org.apache.torque.TorqueException
org.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)public void setDisplayQuery(java.lang.String displayQuery)
displayQuery
- the displayQuery to setpublic org.apache.torque.sql.Query.Type getType()
public void setType(org.apache.torque.sql.Query.Type type)
type
- the type to setpublic java.lang.String getFirstTablename()
public void setFirstTablename(java.lang.String firstTablename)
firstTablename
- the firstTablename to setpublic java.lang.String toString()
toString
in class org.apache.torque.util.Criteria
public boolean isLogInsertFailures()
public void setLogInsertFailures(boolean logInsertFailures)
logInsertFailures
- the logInsertFailures to setCopyright © 2018 DS Data Systems UK Ltd.