|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jooq.impl.CustomField<T>
public abstract class CustomField<T>
A base class for custom Field implementations in client code.
Client code may provide proper Field implementations extending this
useful base class. All necessary parts of the Field interface are
already implemented. Only these two methods need further implementation:
| Constructor Summary | |
|---|---|
protected |
CustomField(String name,
DataType<T> type)
|
| Method Summary | ||
|---|---|---|
Field<T> |
abs()
Deprecated. |
|
Field<BigDecimal> |
acos()
Deprecated. |
|
Field<T> |
add(Field<?> value)
This default implementation is known to be overridden by Expression to generate neater expressions |
|
Field<T> |
add(Number value)
An arithmetic expression adding this to value. |
|
Field<T> |
as(String alias)
Create an alias for this field |
|
SortField<T> |
asc()
Create an ascending sort field from this field |
|
Field<Integer> |
ascii()
Deprecated. |
|
Field<BigDecimal> |
asin()
Deprecated. |
|
Field<BigDecimal> |
atan()
Deprecated. |
|
Field<BigDecimal> |
atan2(Field<? extends Number> y)
Deprecated. |
|
Field<BigDecimal> |
atan2(Number y)
Deprecated. |
|
void |
attach(Configuration configuration)
Subclasses may further override this method By default, nothing is done on an attachment event. |
|
Field<BigDecimal> |
avg()
Deprecated. |
|
WindowPartitionByStep<BigDecimal> |
avgOver()
Deprecated. |
|
Condition |
between(Field<T> minValue,
Field<T> maxValue)
Create a condition to check this field against some bounds SQL: this between minValue and maxValue |
|
Condition |
between(T minValue,
T maxValue)
Create a condition to check this field against some bounds SQL: this between minValue and maxValue |
|
abstract void |
bind(BindContext context)
Subclasses must implement this method Bind all parameters of this QueryPart to a PreparedStatement
This method is for JOOQ INTERNAL USE only. |
|
Field<Integer> |
bitLength()
Deprecated. |
|
|
cast(Class<? extends Z> type)
Cast this field to another type The actual cast may not be accurate as the DataType has to be
"guessed" from the jOOQ-configured data types. |
|
|
cast(DataType<Z> type)
Cast this field to a dialect-specific data type. |
|
|
cast(Field<Z> field)
Cast this field to the type of another field. |
|
Field<T> |
ceil()
Deprecated. |
|
Field<Integer> |
charLength()
Deprecated. |
|
Field<T> |
coalesce(Field<T> option,
Field<?>... options)
Deprecated. |
|
Field<T> |
coalesce(T option,
T... options)
Deprecated. |
|
int |
compareTo(NamedQueryPart that)
|
|
Field<String> |
concat(Field<?>... fields)
Deprecated. |
|
Field<String> |
concat(String... values)
Deprecated. |
|
Condition |
contains(Field<T> value)
Convenience method for Field.like(String, char) including proper
adding of wildcards and escaping
SQL: this like ('%' || escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).contains(13)
If you're using SQLDialect.POSTGRES, then you can use this method also to express the "ARRAY contains" operator. |
|
Condition |
contains(T value)
Convenience method for Field.like(String, char) including proper
adding of wildcards and escaping
SQL: this like ('%' || escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).contains(13)
If you're using SQLDialect.POSTGRES, then you can use this method also to express the "ARRAY contains" operator. |
|
Field<BigDecimal> |
cos()
Deprecated. |
|
Field<BigDecimal> |
cosh()
Deprecated. |
|
Field<BigDecimal> |
cot()
Deprecated. |
|
Field<BigDecimal> |
coth()
Deprecated. |
|
Field<Integer> |
count()
Deprecated. |
|
Field<Integer> |
countDistinct()
Deprecated. |
|
WindowPartitionByStep<Integer> |
countOver()
Deprecated. |
|
protected Factory |
create()
Internal convenience method |
|
protected Factory |
create(Configuration configuration)
Internal convenience method |
|
boolean |
declaresFields()
Subclasses may override this |
|
boolean |
declaresTables()
Subclasses may override this |
|
|
decode(Field<T> search,
Field<Z> result)
Deprecated. |
|
|
decode(Field<T> search,
Field<Z> result,
Field<?>... more)
Deprecated. |
|
|
decode(T search,
Z result)
Deprecated. |
|
|
decode(T search,
Z result,
Object... more)
Deprecated. |
|
Field<BigDecimal> |
deg()
Deprecated. |
|
SortField<T> |
desc()
Create a descending sort field from this field |
|
Field<T> |
div(Field<? extends Number> value)
An arithmetic expression dividing this by value If this is a numeric field, then the result is a number of the same type as this field. |
|
Field<T> |
div(Number value)
An arithmetic expression dividing this by value If this is a numeric field, then the result is a number of the same type as this field. |
|
Condition |
endsWith(Field<T> value)
Convenience method for Field.like(String, char) including proper
adding of wildcards and escaping
SQL: this like ('%' || escape(value, '\')) escape '\'
Note: This also works with numbers, for instance
val(1133).endsWith(33) |
|
Condition |
endsWith(T value)
Convenience method for Field.like(String, char) including proper
adding of wildcards and escaping
SQL: this like ('%' || escape(value, '\')) escape '\'
Note: This also works with numbers, for instance
val(1133).endsWith(33) |
|
Condition |
equal(Field<T> field)
this = field |
|
Condition |
equal(Select<?> query)
this = (Select |
|
Condition |
equal(T value)
this = value
If value == null, then this will return a condition
equivalent to Field.isNull() for convenience. |
|
Condition |
equalAll(Field<T[]> array)
this = all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
equalAll(Select<?> query)
this = all (Select |
|
Condition |
equalAll(T... array)
this = all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
equalAny(Field<T[]> array)
this = any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
equalAny(Select<?> query)
this = any (Select |
|
Condition |
equalAny(T... array)
this = any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
equalIgnoreCase(Field<String> value)
lower(this) = lower(value) |
|
Condition |
equalIgnoreCase(String value)
lower(this) = lower(value) |
|
boolean |
equals(Object that)
|
|
Condition |
equalSome(Select<?> query)
Deprecated. |
|
Field<BigDecimal> |
exp()
Deprecated. |
|
Field<Integer> |
extract(DatePart datePart)
Deprecated. |
|
WindowIgnoreNullsStep<T> |
firstValue()
Deprecated. |
|
Field<T> |
floor()
Deprecated. |
|
List<Attachable> |
getAttachables()
Subclasses may further override this method Get the list of dependent Attachables
This method is for JOOQ INTERNAL USE only. |
|
protected List<Attachable> |
getAttachables(Collection<? extends QueryPart> list)
Internal convenience method |
|
protected List<Attachable> |
getAttachables(QueryPart... list)
Internal convenience method |
|
protected List<Attachable> |
getAttachables(Store<?> store)
Internal convenience method |
|
List<Object> |
getBindValues()
This method is also declared as Query.getBindValues()
Retrieve the bind values that will be bound by this QueryPart
This method is exposed publicly in Query.getBindValues() |
|
Configuration |
getConfiguration()
Get the underlying configuration |
|
DataType<T> |
getDataType()
The type of this object (might not be dialect-specific) |
|
DataType<T> |
getDataType(Configuration configuration)
The dialect-specific type of this object |
|
SQLDialect |
getDialect()
Deprecated. |
|
String |
getName()
The name of this query part |
|
Param<?> |
getParam(String name)
This method is also declared as Query.getParam(String)
Retrieve a named parameter that will be bound by this QueryPart
This method is exposed publicly in Query.getParam(String) |
|
Map<String,Param<?>> |
getParams()
This method is also declared as Query.getParams()
Retrieve the named parameters that will be bound by this QueryPart
This method is exposed publicly in Query.getParams() |
|
String |
getSQL()
This method is also declared as Query.getSQL()
Retrieve the SQL that will be rendered by this QueryPart
This method is exposed publicly in Query.getSQL() |
|
String |
getSQL(boolean inline)
This method is also declared as Query.getSQL(boolean)
Retrieve the SQL that will be rendered by this QueryPart
This method is exposed publicly in Query.getSQL(boolean) |
|
protected SQLDataType<T> |
getSQLDataType()
|
|
Class<? extends T> |
getType()
The type of this object |
|
Condition |
greaterOrEqual(Field<T> field)
this >= field |
|
Condition |
greaterOrEqual(Select<?> query)
this >= (Select |
|
Condition |
greaterOrEqual(T value)
this >= value |
|
Condition |
greaterOrEqualAll(Field<T[]> array)
this >= all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
greaterOrEqualAll(Select<?> query)
this >= all (Select |
|
Condition |
greaterOrEqualAll(T... array)
this >= all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
greaterOrEqualAny(Field<T[]> array)
this >= any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
greaterOrEqualAny(Select<?> query)
this >= any (Select |
|
Condition |
greaterOrEqualAny(T... array)
this >= any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
greaterOrEqualSome(Select<?> query)
Deprecated. |
|
Condition |
greaterThan(Field<T> field)
this > field |
|
Condition |
greaterThan(Select<?> query)
this > (Select |
|
Condition |
greaterThan(T value)
this > value |
|
Condition |
greaterThanAll(Field<T[]> array)
this > all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
greaterThanAll(Select<?> query)
this > all (Select |
|
Condition |
greaterThanAll(T... array)
this > all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
greaterThanAny(Field<T[]> array)
this > any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
greaterThanAny(Select<?> query)
this > any (Select |
|
Condition |
greaterThanAny(T... array)
this > any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
greaterThanSome(Select<?> query)
Deprecated. |
|
Field<T> |
greatest(Field<?>... others)
Deprecated. |
|
Field<T> |
greatest(T... others)
Deprecated. |
|
int |
hashCode()
|
|
Condition |
in(Collection<T> values)
Create a condition to check this field against several values SQL: this in (values...) |
|
Condition |
in(Field<?>... values)
Create a condition to check this field against several values SQL: this in (values...) |
|
Condition |
in(Select<?> query)
Create a condition to check this field against a subquery Note that the subquery must return exactly one field. |
|
Condition |
in(T... values)
Create a condition to check this field against several values SQL: this in (values...) |
|
|
internalAPI(Class<I> internalType)
Adapt to an internal type assuming its functionality This is for JOOQ INTERNAL USE only. |
|
Condition |
isFalse()
Create a condition to check this field against known string literals for false
SQL:
lcase(this) in ("0", "n", "no", "false", "off", "disabled") |
|
Condition |
isNotNull()
Create a condition to check this field against null. |
|
Condition |
isNull()
Create a condition to check this field against null. |
|
boolean |
isNullLiteral()
Subclasses may further override this method Whether this field represents a null literal. |
|
Condition |
isTrue()
Create a condition to check this field against known string literals for true
SQL:
lcase(this) in ("1", "y", "yes", "true", "on", "enabled") |
|
WindowIgnoreNullsStep<T> |
lag()
Deprecated. |
|
WindowIgnoreNullsStep<T> |
lag(int offset)
Deprecated. |
|
WindowIgnoreNullsStep<T> |
lag(int offset,
Field<T> defaultValue)
Deprecated. |
|
WindowIgnoreNullsStep<T> |
lag(int offset,
T defaultValue)
Deprecated. |
|
WindowIgnoreNullsStep<T> |
lastValue()
Deprecated. |
|
WindowIgnoreNullsStep<T> |
lead()
Deprecated. |
|
WindowIgnoreNullsStep<T> |
lead(int offset)
Deprecated. |
|
WindowIgnoreNullsStep<T> |
lead(int offset,
Field<T> defaultValue)
Deprecated. |
|
WindowIgnoreNullsStep<T> |
lead(int offset,
T defaultValue)
Deprecated. |
|
Field<T> |
least(Field<?>... others)
Deprecated. |
|
Field<T> |
least(T... others)
Deprecated. |
|
Field<Integer> |
length()
Deprecated. |
|
Condition |
lessOrEqual(Field<T> field)
this <= field |
|
Condition |
lessOrEqual(Select<?> query)
this <= (Select |
|
Condition |
lessOrEqual(T value)
this <= value |
|
Condition |
lessOrEqualAll(Field<T[]> array)
this <= all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
lessOrEqualAll(Select<?> query)
this <= all (Select |
|
Condition |
lessOrEqualAll(T... array)
this <= all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
lessOrEqualAny(Field<T[]> array)
this <= any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
lessOrEqualAny(Select<?> query)
this <= any (Select |
|
Condition |
lessOrEqualAny(T... array)
this <= any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
lessOrEqualSome(Select<?> query)
Deprecated. |
|
Condition |
lessThan(Field<T> field)
this < field |
|
Condition |
lessThan(Select<?> query)
this < (Select |
|
Condition |
lessThan(T value)
this < value |
|
Condition |
lessThanAll(Field<T[]> array)
this < all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
lessThanAll(Select<?> query)
this < all (Select |
|
Condition |
lessThanAll(T... array)
this < all (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
lessThanAny(Field<T[]> array)
this < any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
lessThanAny(Select<?> query)
this < any (Select |
|
Condition |
lessThanAny(T... array)
this < any (array)
This is natively supported by SQLDialect.POSTGRES. |
|
Condition |
lessThanSome(Select<?> query)
Deprecated. |
|
Condition |
like(Field<String> value)
Create a condition to pattern-check this field against a value SQL: this like value |
|
Condition |
like(Field<String> value,
char escape)
Create a condition to pattern-check this field against a value SQL: this like value escape 'e' |
|
Condition |
like(String value)
Create a condition to pattern-check this field against a value SQL: this like value |
|
Condition |
like(String value,
char escape)
Create a condition to pattern-check this field against a value SQL: this like value escape 'e' |
|
Field<BigDecimal> |
ln()
Deprecated. |
|
Field<BigDecimal> |
log(int base)
Deprecated. |
|
Field<String> |
lower()
Deprecated. |
|
Field<String> |
lpad(Field<? extends Number> length)
Deprecated. |
|
Field<String> |
lpad(Field<? extends Number> length,
Field<String> character)
Deprecated. |
|
Field<String> |
lpad(int length)
Deprecated. |
|
Field<String> |
lpad(int length,
char character)
Deprecated. |
|
Field<String> |
ltrim()
Deprecated. |
|
Field<T> |
max()
Deprecated. |
|
WindowPartitionByStep<T> |
maxOver()
Deprecated. |
|
Field<BigDecimal> |
median()
Deprecated. |
|
Field<T> |
min()
Deprecated. |
|
WindowPartitionByStep<T> |
minOver()
Deprecated. |
|
Field<T> |
mod(Field<? extends Number> value)
An arithmetic expression getting the modulo of this divided by value This renders the modulo operation where available: [this] % [value]
... or the modulo function elsewhere:
mod([this], [value]) |
|
Field<T> |
mod(Number value)
An arithmetic expression getting the modulo of this divided by value This renders the modulo operation where available: [this] % [value]
... or the modulo function elsewhere:
mod([this], [value]) |
|
Field<T> |
mul(Field<? extends Number> value)
This default implementation is known to be overridden by Expression to generate neater expressions |
|
Field<T> |
mul(Number value)
An arithmetic expression multiplying this with value If this is a numeric field, then the result is a number of the same type as this field. |
|
Field<T> |
neg()
Negate this field to get its negative value. |
|
Condition |
notBetween(Field<T> minValue,
Field<T> maxValue)
Create a condition to check this field against some bounds SQL: this not between minValue and maxValue |
|
Condition |
notBetween(T minValue,
T maxValue)
Create a condition to check this field against some bounds SQL: this not between minValue and maxValue |
|
Condition |
notEqual(Field<T> field)
this ! |
|
Condition |
notEqual(Select<?> query)
this ! |
|
Condition |
notEqual(T value)
this ! |
|
Condition |
notEqualAll(Field<T[]> array)
this ! |
|
Condition |
notEqualAll(Select<?> query)
this ! |
|
Condition |
notEqualAll(T... array)
this ! |
|
Condition |
notEqualAny(Field<T[]> array)
this ! |
|
Condition |
notEqualAny(Select<?> query)
this ! |
|
Condition |
notEqualAny(T... array)
this ! |
|
Condition |
notEqualIgnoreCase(Field<String> value)
lower(this) ! |
|
Condition |
notEqualIgnoreCase(String value)
lower(this) ! |
|
Condition |
notEqualSome(Select<?> query)
Deprecated. |
|
Condition |
notIn(Collection<T> values)
Create a condition to check this field against several values Note that if any of the passed values is NULL, then the
condition will be NULL (or false, depending on
the dialect) as well. |
|
Condition |
notIn(Field<?>... values)
Create a condition to check this field against several values Note that if any of the passed values is NULL, then the
condition will be NULL (or false, depending on
the dialect) as well. |
|
Condition |
notIn(Select<?> query)
Create a condition to check this field against a subquery Note that the subquery must return exactly one field. |
|
Condition |
notIn(T... values)
Create a condition to check this field against several values Note that if any of the passed values is NULL, then the
condition will be NULL (or false, depending on
the dialect) as well. |
|
Condition |
notLike(Field<String> value)
Create a condition to pattern-check this field against a value SQL: this not like value |
|
Condition |
notLike(Field<String> value,
char escape)
Create a condition to pattern-check this field against a value SQL: this not like value escape 'e' |
|
Condition |
notLike(String value)
Create a condition to pattern-check this field against a value SQL: this not like value |
|
Condition |
notLike(String value,
char escape)
Create a condition to pattern-check this field against a value SQL: this not like value escape 'e' |
|
Field<T> |
nullif(Field<T> other)
Deprecated. |
|
Field<T> |
nullif(T other)
Deprecated. |
|
Field<T> |
nvl(Field<T> defaultValue)
Deprecated. |
|
Field<T> |
nvl(T defaultValue)
Deprecated. |
|
|
nvl2(Field<Z> valueIfNotNull,
Field<Z> valueIfNull)
Deprecated. |
|
|
nvl2(Z valueIfNotNull,
Z valueIfNull)
Deprecated. |
|
Field<Integer> |
octetLength()
Deprecated. |
|
Field<Integer> |
position(Field<String> search)
Deprecated. |
|
Field<Integer> |
position(String search)
Deprecated. |
|
Field<BigDecimal> |
power(Number exponent)
Deprecated. |
|
Field<BigDecimal> |
rad()
Deprecated. |
|
Field<String> |
repeat(Field<? extends Number> count)
Deprecated. |
|
Field<String> |
repeat(Number count)
Deprecated. |
|
Field<String> |
replace(Field<String> search)
Deprecated. |
|
Field<String> |
replace(Field<String> search,
Field<String> replace)
Deprecated. |
|
Field<String> |
replace(String search)
Deprecated. |
|
Field<String> |
replace(String search,
String replace)
Deprecated. |
|
Field<T> |
round()
Deprecated. |
|
Field<T> |
round(int decimals)
Deprecated. |
|
Field<String> |
rpad(Field<? extends Number> length)
Deprecated. |
|
Field<String> |
rpad(Field<? extends Number> length,
Field<String> character)
Deprecated. |
|
Field<String> |
rpad(int length)
Deprecated. |
|
Field<String> |
rpad(int length,
char character)
Deprecated. |
|
Field<String> |
rtrim()
Deprecated. |
|
Field<Integer> |
sign()
Deprecated. |
|
Field<BigDecimal> |
sin()
Deprecated. |
|
Field<BigDecimal> |
sinh()
Deprecated. |
|
|
sort(Map<T,Z> sortMap)
Create a sort field of the form (in pseudo code)
CASE [this] WHEN [sortMap.key(0)] THEN sortMap.value(0)
WHEN [sortMap.key(1)] THEN sortMap.value(1)
... |
|
SortField<Integer> |
sortAsc(Collection<T> sortList)
Create a sort field of the form
CASE [this] WHEN [sortList.get(0)] THEN 0
WHEN [sortList.get(1)] THEN 1
... |
|
SortField<Integer> |
sortAsc(T... sortList)
Create a sort field of the form
CASE [this] WHEN [sortList[0]] THEN 0
WHEN [sortList[1]] THEN 1
... |
|
SortField<Integer> |
sortDesc(Collection<T> sortList)
Create a sort field of the form
CASE [this] WHEN [sortList.get(0)] THEN 0
WHEN [sortList.get(1)] THEN 1
... |
|
SortField<Integer> |
sortDesc(T... sortList)
Create a sort field of the form
CASE [this] WHEN [sortList[0]] THEN 0
WHEN [sortList[1]] THEN 1
... |
|
Field<BigDecimal> |
sqrt()
Deprecated. |
|
Condition |
startsWith(Field<T> value)
Convenience method for Field.like(String, char) including proper
adding of wildcards and escaping
SQL: this like (escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).startsWith(11) |
|
Condition |
startsWith(T value)
Convenience method for Field.like(String, char) including proper
adding of wildcards and escaping
SQL: this like (escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).startsWith(11) |
|
Field<BigDecimal> |
stddevPop()
Deprecated. |
|
WindowPartitionByStep<BigDecimal> |
stddevPopOver()
Deprecated. |
|
Field<BigDecimal> |
stddevSamp()
Deprecated. |
|
WindowPartitionByStep<BigDecimal> |
stddevSampOver()
Deprecated. |
|
Field<T> |
sub(Field<?> value)
An arithmetic expression subtracting value from this. |
|
Field<T> |
sub(Number value)
An arithmetic expression subtracting value from this. |
|
Field<String> |
substring(Field<? extends Number> startingPosition)
Deprecated. |
|
Field<String> |
substring(Field<? extends Number> startingPosition,
Field<? extends Number> length)
Deprecated. |
|
Field<String> |
substring(int startingPosition)
Deprecated. |
|
Field<String> |
substring(int startingPosition,
int length)
Deprecated. |
|
Field<BigDecimal> |
sum()
Deprecated. |
|
WindowPartitionByStep<BigDecimal> |
sumOver()
Deprecated. |
|
Field<BigDecimal> |
tan()
Deprecated. |
|
Field<BigDecimal> |
tanh()
Deprecated. |
|
abstract void |
toSQL(RenderContext context)
Subclasses must implement this method Render this QueryPart to a SQL string contained in
context.sql(). |
|
String |
toString()
|
|
protected DataAccessException |
translate(String task,
String sql,
SQLException e)
Internal convenience method |
|
Field<String> |
trim()
Deprecated. |
|
Field<String> |
upper()
Deprecated. |
|
Field<BigDecimal> |
varPop()
Deprecated. |
|
WindowPartitionByStep<BigDecimal> |
varPopOver()
Deprecated. |
|
Field<BigDecimal> |
varSamp()
Deprecated. |
|
WindowPartitionByStep<BigDecimal> |
varSampOver()
Deprecated. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jooq.Field |
|---|
equals, getName, getType |
| Methods inherited from interface org.jooq.NamedTypeProviderQueryPart |
|---|
getDataType, getDataType |
| Methods inherited from interface org.jooq.Adapter |
|---|
internalAPI |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
protected CustomField(String name,
DataType<T> type)
| Method Detail |
|---|
public abstract void toSQL(RenderContext context)
QueryPart to a SQL string contained in
context.sql(). The context will contain
additional information about how to render this QueryPart,
e.g. whether this QueryPart should be rendered as a
declaration or reference, whether this QueryPart's contained
bind variables should be inlined or replaced by '?', etc.
toSQL in interface QueryPartInternal
public abstract void bind(BindContext context)
throws DataAccessException
QueryPart to a PreparedStatement
This method is for JOOQ INTERNAL USE only. Do not reference directly
bind in interface QueryPartInternalcontext - The context holding the next bind index and other
information for variable binding
DataAccessException - If something went wrong while binding a
variablepublic boolean isNullLiteral()
null literal.
This method is for JOOQ INTERNAL USE only!
This method was added to be able to recognise null literals
within jOOQ and handle them specially, as some SQL dialects have a rather
un-intuitive way of handling null values.
isNullLiteral in interface Field<T>public List<Attachable> getAttachables()
Attachables
This method is for JOOQ INTERNAL USE only. Do not reference directly
public void attach(Configuration configuration)
attach in interface Attachablepublic final Field<T> as(String alias)
Field
as in interface AliasProvider<Field<T>>as in interface Field<T>alias - The alias name
public final Field<T> add(Field<?> value)
Expression to generate neater expressions
add in interface Field<T>public final Field<T> mul(Field<? extends Number> value)
Expression to generate neater expressions
mul in interface Field<T>public final boolean declaresFields()
declaresFields in interface QueryPartInternalpublic final boolean declaresTables()
declaresTables in interface QueryPartInternalpublic final <Z> Field<Z> cast(Field<Z> field)
Field
This results in the same as casting this field to
DataType.getCastTypeName()
cast in interface Field<T>Z - The generic type of the cast fieldfield - The field whose type is used for the cast
Field.cast(DataType)public final <Z> Field<Z> cast(DataType<Z> type)
Field
cast in interface Field<T>Z - The generic type of the cast fieldpublic final <Z> Field<Z> cast(Class<? extends Z> type)
Field
The actual cast may not be accurate as the DataType has to be
"guessed" from the jOOQ-configured data types. Use
Field.cast(DataType) for more accurate casts.
cast in interface Field<T>Z - The generic type of the cast fieldtype - The type that is used for the cast
Field.cast(DataType)public final SortField<T> asc()
Field
asc in interface Field<T>public final SortField<T> desc()
Field
desc in interface Field<T>public final SortField<Integer> sortAsc(Collection<T> sortList)
Field
CASE [this] WHEN [sortList.get(0)] THEN 0
WHEN [sortList.get(1)] THEN 1
...
WHEN [sortList.get(n)] THEN n
ELSE null
END ASC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast() to specify whether the default should
have highest or lowest priority.
sortAsc in interface Field<T>sortList - The list containing sort value preferences
public final SortField<Integer> sortAsc(T... sortList)
Field
CASE [this] WHEN [sortList[0]] THEN 0
WHEN [sortList[1]] THEN 1
...
WHEN [sortList[n]] THEN n
ELSE null
END ASC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast() to specify whether the default should
have highest or lowest priority.
sortAsc in interface Field<T>sortList - The list containing sort value preferences
public final SortField<Integer> sortDesc(Collection<T> sortList)
Field
CASE [this] WHEN [sortList.get(0)] THEN 0
WHEN [sortList.get(1)] THEN 1
...
WHEN [sortList.get(n)] THEN n
ELSE null
END DESC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast() to specify whether the default should
have highest or lowest priority.
sortDesc in interface Field<T>sortList - The list containing sort value preferences
public final SortField<Integer> sortDesc(T... sortList)
Field
CASE [this] WHEN [sortList[0]] THEN 0
WHEN [sortList[1]] THEN 1
...
WHEN [sortList[n]] THEN n
ELSE null
END DESC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast() to specify whether the default should
have highest or lowest priority.
sortDesc in interface Field<T>sortList - The list containing sort value preferences
public final <Z> SortField<Z> sort(Map<T,Z> sortMap)
Field
CASE [this] WHEN [sortMap.key(0)] THEN sortMap.value(0)
WHEN [sortMap.key(1)] THEN sortMap.value(1)
...
WHEN [sortMap.key(n)] THEN sortMap.value(n)
ELSE null
END DESC
Note: You can use this in combination with SortField.nullsFirst()
or SortField.nullsLast() to specify whether the default should
have highest or lowest priority.
sort in interface Field<T>sortMap - The list containing sort value preferences
public final Field<T> neg()
Field
This renders the same on all dialects:
-[this]
neg in interface Field<T>public final Field<T> add(Number value)
Field
add in interface Field<T>Field.add(Field)public final Field<T> sub(Number value)
Field
sub in interface Field<T>Field.sub(Field)public final Field<T> sub(Field<?> value)
Field
| Operand 1 | Operand 2 | Result Type |
|---|---|---|
| Numeric | Numeric | Numeric |
| Date / Time | Numeric | Date / Time |
| Date / Time | Interval | Date / Time |
| Interval | Interval | Interval |
In order to subtract one date time field from another, use any of these methods:
sub in interface Field<T>public final Field<T> mul(Number value)
Field
INTERVAL field, then the result is also an
INTERVAL field (see Interval)
mul in interface Field<T>public final Field<T> div(Number value)
Field
INTERVAL field, then the result is also an
INTERVAL field (see Interval)
div in interface Field<T>public final Field<T> div(Field<? extends Number> value)
Field
INTERVAL field, then the result is also an
INTERVAL field (see Interval)
div in interface Field<T>public final Field<T> mod(Number value)
Field
This renders the modulo operation where available:
... or the modulo function elsewhere:
[this] % [value]
mod([this], [value])
mod in interface Field<T>public final Field<T> mod(Field<? extends Number> value)
Field
This renders the modulo operation where available:
... or the modulo function elsewhere:
[this] % [value]
mod([this], [value])
mod in interface Field<T>public final Condition isNull()
Fieldnull.
SQL: this is null
isNull in interface Field<T>public final Condition isNotNull()
Fieldnull.
SQL: this is not null
isNotNull in interface Field<T>public final Condition isTrue()
Fieldtrue
SQL:
lcase(this) in ("1", "y", "yes", "true", "on", "enabled")
isTrue in interface Field<T>public final Condition isFalse()
Fieldfalse
SQL:
lcase(this) in ("0", "n", "no", "false", "off", "disabled")
isFalse in interface Field<T>public final Condition like(String value)
Field
SQL: this like value
like in interface Field<T>
public final Condition like(String value,
char escape)
Field
SQL: this like value escape 'e'
like in interface Field<T>public final Condition like(Field<String> value)
Field
SQL: this like value
like in interface Field<T>
public final Condition like(Field<String> value,
char escape)
Field
SQL: this like value escape 'e'
like in interface Field<T>public final Condition notLike(String value)
Field
SQL: this not like value
notLike in interface Field<T>
public final Condition notLike(String value,
char escape)
Field
SQL: this not like value escape 'e'
notLike in interface Field<T>public final Condition notLike(Field<String> value)
Field
SQL: this not like value
notLike in interface Field<T>
public final Condition notLike(Field<String> value,
char escape)
Field
SQL: this not like value escape 'e'
notLike in interface Field<T>public final Condition contains(T value)
FieldField.like(String, char) including proper
adding of wildcards and escaping
SQL: this like ('%' || escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).contains(13)
If you're using SQLDialect.POSTGRES, then you can use this method also to express the "ARRAY contains" operator. For example:
// Use this expression
val(new Integer[] { 1, 2, 3 }).contains(new Integer[] { 1, 2 })
// ... to render this SQL
ARRAY[1, 2, 3] @> ARRAY[1, 2]
contains in interface Field<T>Factory.escape(String, char),
Field.like(String, char)public final Condition contains(Field<T> value)
FieldField.like(String, char) including proper
adding of wildcards and escaping
SQL: this like ('%' || escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).contains(13)
If you're using SQLDialect.POSTGRES, then you can use this method also to express the "ARRAY contains" operator. For example:
// Use this expression
val(new Integer[] { 1, 2, 3 }).contains(new Integer[] { 1, 2 })
// ... to render this SQL
ARRAY[1, 2, 3] @> ARRAY[1, 2]
contains in interface Field<T>Factory.escape(Field, char),
Field.like(Field, char)public final Condition startsWith(T value)
FieldField.like(String, char) including proper
adding of wildcards and escaping
SQL: this like (escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).startsWith(11)
startsWith in interface Field<T>Factory.escape(String, char),
Field.like(String, char)public final Condition startsWith(Field<T> value)
FieldField.like(String, char) including proper
adding of wildcards and escaping
SQL: this like (escape(value, '\') || '%') escape '\'
Note: This also works with numbers, for instance
val(1133).startsWith(11)
startsWith in interface Field<T>Factory.escape(Field, char),
Field.like(Field, char)public final Condition endsWith(T value)
FieldField.like(String, char) including proper
adding of wildcards and escaping
SQL: this like ('%' || escape(value, '\')) escape '\'
Note: This also works with numbers, for instance
val(1133).endsWith(33)
endsWith in interface Field<T>Factory.escape(String, char),
Field.like(String, char)public final Condition endsWith(Field<T> value)
FieldField.like(String, char) including proper
adding of wildcards and escaping
SQL: this like ('%' || escape(value, '\')) escape '\'
Note: This also works with numbers, for instance
val(1133).endsWith(33)
endsWith in interface Field<T>Factory.escape(Field, char),
Field.like(Field, char)public final Condition in(T... values)
Field
SQL: this in (values...)
in in interface Field<T>public final Condition in(Field<?>... values)
Field
SQL: this in (values...)
in in interface Field<T>public final Condition in(Collection<T> values)
Field
SQL: this in (values...)
in in interface Field<T>public final Condition in(Select<?> query)
FieldNote that the subquery must return exactly one field. This is not checked by jOOQ and will result in syntax errors on the database, if not used correctly.
SQL: this in (select...)
in in interface Field<T>public final Condition notIn(T... values)
Field
Note that if any of the passed values is NULL, then the
condition will be NULL (or false, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this not in (values...)
notIn in interface Field<T>public final Condition notIn(Field<?>... values)
Field
Note that if any of the passed values is NULL, then the
condition will be NULL (or false, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this not in (values...)
notIn in interface Field<T>public final Condition notIn(Collection<T> values)
Field
Note that if any of the passed values is NULL, then the
condition will be NULL (or false, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this not in (values...)
notIn in interface Field<T>public final Condition notIn(Select<?> query)
FieldNote that the subquery must return exactly one field. This is not checked by jOOQ and will result in syntax errors on the database, if not used correctly.
Note that if any of the passed values is NULL, then the
condition will be NULL (or false, depending on
the dialect) as well. This is standard SQL behaviour.
SQL: this not in (select...)
notIn in interface Field<T>
public final Condition between(T minValue,
T maxValue)
Field
SQL: this between minValue and maxValue
between in interface Field<T>
public final Condition between(Field<T> minValue,
Field<T> maxValue)
Field
SQL: this between minValue and maxValue
between in interface Field<T>
public final Condition notBetween(T minValue,
T maxValue)
Field
SQL: this not between minValue and maxValue
notBetween in interface Field<T>
public final Condition notBetween(Field<T> minValue,
Field<T> maxValue)
Field
SQL: this not between minValue and maxValue
notBetween in interface Field<T>public final Condition equal(T value)
Fieldthis = value
If value == null, then this will return a condition
equivalent to Field.isNull() for convenience. SQL's ternary
NULL logic is rarely of use for Java programmers.
equal in interface Field<T>public final Condition equal(Field<T> field)
Fieldthis = field
equal in interface Field<T>public final Condition equalIgnoreCase(String value)
Fieldlower(this) = lower(value)
equalIgnoreCase in interface Field<T>public final Condition equalIgnoreCase(Field<String> value)
Fieldlower(this) = lower(value)
equalIgnoreCase in interface Field<T>public final Condition equal(Select<?> query)
Fieldthis = (Select> ...)
equal in interface Field<T>public final Condition equalAny(Select<?> query)
Fieldthis = any (Select> ...)
equalAny in interface Field<T>public final Condition equalAny(T... array)
Fieldthis = any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
equalAny in interface Field<T>public final Condition equalAny(Field<T[]> array)
Fieldthis = any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
equalAny in interface Field<T>@Deprecated public final Condition equalSome(Select<?> query)
Fieldthis = some (Select> ...)
equalSome in interface Field<T>public final Condition equalAll(Select<?> query)
Fieldthis = all (Select> ...)
equalAll in interface Field<T>public final Condition equalAll(T... array)
Fieldthis = all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
equalAll in interface Field<T>public final Condition equalAll(Field<T[]> array)
Fieldthis = all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
equalAll in interface Field<T>public final Condition notEqual(T value)
Fieldthis != value
If value == null, then this will return a condition
equivalent to Field.isNotNull() for convenience. SQL's ternary
NULL logic is rarely of use for Java programmers.
notEqual in interface Field<T>public final Condition notEqual(Field<T> field)
Fieldthis != field
notEqual in interface Field<T>public final Condition notEqualIgnoreCase(String value)
Fieldlower(this) != lower(value)
notEqualIgnoreCase in interface Field<T>public final Condition notEqualIgnoreCase(Field<String> value)
Fieldlower(this) != lower(value)
notEqualIgnoreCase in interface Field<T>public final Condition notEqual(Select<?> query)
Fieldthis != (Select> ...)
notEqual in interface Field<T>public final Condition notEqualAny(Select<?> query)
Fieldthis != any (Select> ...)
notEqualAny in interface Field<T>public final Condition notEqualAny(T... array)
Fieldthis != any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
notEqualAny in interface Field<T>public final Condition notEqualAny(Field<T[]> array)
Fieldthis != any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
notEqualAny in interface Field<T>@Deprecated public final Condition notEqualSome(Select<?> query)
Fieldthis != some (Select> ...)
notEqualSome in interface Field<T>public final Condition notEqualAll(Select<?> query)
Fieldthis != all (Select> ...)
notEqualAll in interface Field<T>public final Condition notEqualAll(T... array)
Fieldthis != all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
notEqualAll in interface Field<T>public final Condition notEqualAll(Field<T[]> array)
Fieldthis != all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
notEqualAll in interface Field<T>public final Condition lessThan(T value)
Fieldthis < value
lessThan in interface Field<T>public final Condition lessThan(Field<T> field)
Fieldthis < field
lessThan in interface Field<T>public final Condition lessThan(Select<?> query)
Fieldthis < (Select> ...)
lessThan in interface Field<T>public final Condition lessThanAny(Select<?> query)
Fieldthis < any (Select> ...)
lessThanAny in interface Field<T>public final Condition lessThanAny(T... array)
Fieldthis < any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
lessThanAny in interface Field<T>public final Condition lessThanAny(Field<T[]> array)
Fieldthis < any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
lessThanAny in interface Field<T>@Deprecated public final Condition lessThanSome(Select<?> query)
Fieldthis < some (Select> ...)
lessThanSome in interface Field<T>public final Condition lessThanAll(Select<?> query)
Fieldthis < all (Select> ...)
lessThanAll in interface Field<T>public final Condition lessThanAll(T... array)
Fieldthis < all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
lessThanAll in interface Field<T>public final Condition lessThanAll(Field<T[]> array)
Fieldthis < all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
lessThanAll in interface Field<T>public final Condition lessOrEqual(T value)
Fieldthis <= value
lessOrEqual in interface Field<T>public final Condition lessOrEqual(Field<T> field)
Fieldthis <= field
lessOrEqual in interface Field<T>public final Condition lessOrEqual(Select<?> query)
Fieldthis <= (Select> ...)
lessOrEqual in interface Field<T>public final Condition lessOrEqualAny(Select<?> query)
Fieldthis <= any (Select> ...)
lessOrEqualAny in interface Field<T>public final Condition lessOrEqualAny(T... array)
Fieldthis <= any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
lessOrEqualAny in interface Field<T>public final Condition lessOrEqualAny(Field<T[]> array)
Fieldthis <= any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
lessOrEqualAny in interface Field<T>@Deprecated public final Condition lessOrEqualSome(Select<?> query)
Fieldthis <= some (Select> ...)
lessOrEqualSome in interface Field<T>public final Condition lessOrEqualAll(Select<?> query)
Fieldthis <= all (Select> ...)
lessOrEqualAll in interface Field<T>public final Condition lessOrEqualAll(T... array)
Fieldthis <= all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
lessOrEqualAll in interface Field<T>public final Condition lessOrEqualAll(Field<T[]> array)
Fieldthis <= all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
lessOrEqualAll in interface Field<T>public final Condition greaterThan(T value)
Fieldthis > value
greaterThan in interface Field<T>public final Condition greaterThan(Field<T> field)
Fieldthis > field
greaterThan in interface Field<T>public final Condition greaterThan(Select<?> query)
Fieldthis > (Select> ...)
greaterThan in interface Field<T>public final Condition greaterThanAny(Select<?> query)
Fieldthis > any (Select> ...)
greaterThanAny in interface Field<T>public final Condition greaterThanAny(T... array)
Fieldthis > any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
greaterThanAny in interface Field<T>public final Condition greaterThanAny(Field<T[]> array)
Fieldthis > any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
greaterThanAny in interface Field<T>@Deprecated public final Condition greaterThanSome(Select<?> query)
Fieldthis > some (Select> ...)
greaterThanSome in interface Field<T>public final Condition greaterThanAll(Select<?> query)
Fieldthis > all (Select> ...)
greaterThanAll in interface Field<T>public final Condition greaterThanAll(T... array)
Fieldthis > all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
greaterThanAll in interface Field<T>public final Condition greaterThanAll(Field<T[]> array)
Fieldthis > all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
greaterThanAll in interface Field<T>public final Condition greaterOrEqual(T value)
Fieldthis >= value
greaterOrEqual in interface Field<T>public final Condition greaterOrEqual(Field<T> field)
Fieldthis >= field
greaterOrEqual in interface Field<T>public final Condition greaterOrEqual(Select<?> query)
Fieldthis >= (Select> ...)
greaterOrEqual in interface Field<T>public final Condition greaterOrEqualAny(Select<?> query)
Fieldthis >= any (Select> ...)
greaterOrEqualAny in interface Field<T>public final Condition greaterOrEqualAny(T... array)
Fieldthis >= any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
greaterOrEqualAny in interface Field<T>public final Condition greaterOrEqualAny(Field<T[]> array)
Fieldthis >= any (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
greaterOrEqualAny in interface Field<T>@Deprecated public final Condition greaterOrEqualSome(Select<?> query)
Fieldthis >= some (Select> ...)
greaterOrEqualSome in interface Field<T>public final Condition greaterOrEqualAll(Select<?> query)
Fieldthis >= all (Select> ...)
greaterOrEqualAll in interface Field<T>public final Condition greaterOrEqualAll(T... array)
Fieldthis >= all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
greaterOrEqualAll in interface Field<T>public final Condition greaterOrEqualAll(Field<T[]> array)
Fieldthis >= all (array)
This is natively supported by SQLDialect.POSTGRES. Other dialects
will render a subselect unnesting the array.
greaterOrEqualAll in interface Field<T>@Deprecated public final Field<Integer> sign()
FieldFactory
sign in interface Field<T>Factory.sign(Field)@Deprecated public final Field<T> abs()
FieldFactory
abs in interface Field<T>Factory.abs(Field)@Deprecated public final Field<T> round()
FieldFactory
round in interface Field<T>Factory.round(Field)@Deprecated public final Field<T> round(int decimals)
FieldFactory
round in interface Field<T>Factory.round(Field, int)@Deprecated public final Field<T> floor()
FieldFactory
floor in interface Field<T>Factory.floor(Field)@Deprecated public final Field<T> ceil()
FieldFactory
ceil in interface Field<T>Factory.ceil(Field)@Deprecated public final Field<BigDecimal> sqrt()
FieldFactory
sqrt in interface Field<T>Factory.sqrt(Field)@Deprecated public final Field<BigDecimal> exp()
FieldFactory
exp in interface Field<T>Factory.exp(Field)@Deprecated public final Field<BigDecimal> ln()
FieldFactory
ln in interface Field<T>Factory.ln(Field)@Deprecated public final Field<BigDecimal> log(int base)
FieldFactory
log in interface Field<T>Factory.log(Field, int)@Deprecated public final Field<BigDecimal> power(Number exponent)
FieldFactory
power in interface Field<T>Factory.power(Field, Number)@Deprecated public final Field<BigDecimal> acos()
FieldFactory
acos in interface Field<T>Factory.acos(Field)@Deprecated public final Field<BigDecimal> asin()
FieldFactory
asin in interface Field<T>Factory.asin(Field)@Deprecated public final Field<BigDecimal> atan()
FieldFactory
atan in interface Field<T>Factory.atan(Field)@Deprecated public final Field<BigDecimal> atan2(Number y)
FieldFactory
atan2 in interface Field<T>Factory.atan2(Field, Number)@Deprecated public final Field<BigDecimal> atan2(Field<? extends Number> y)
FieldFactory
atan2 in interface Field<T>Factory.atan2(Field, Field)@Deprecated public final Field<BigDecimal> cos()
FieldFactory
cos in interface Field<T>Factory.cos(Field)@Deprecated public final Field<BigDecimal> sin()
FieldFactory
sin in interface Field<T>Factory.sin(Field)@Deprecated public final Field<BigDecimal> tan()
FieldFactory
tan in interface Field<T>Factory.tan(Field)@Deprecated public final Field<BigDecimal> cot()
FieldFactory
cot in interface Field<T>Factory.cot(Field)@Deprecated public final Field<BigDecimal> sinh()
FieldFactory
sinh in interface Field<T>Factory.sinh(Field)@Deprecated public final Field<BigDecimal> cosh()
FieldFactory
cosh in interface Field<T>Factory.cosh(Field)@Deprecated public final Field<BigDecimal> tanh()
FieldFactory
tanh in interface Field<T>Factory.tanh(Field)@Deprecated public final Field<BigDecimal> coth()
FieldFactory
coth in interface Field<T>Factory.coth(Field)@Deprecated public final Field<BigDecimal> deg()
FieldFactory
deg in interface Field<T>Factory.deg(Field)@Deprecated public final Field<BigDecimal> rad()
FieldFactory
rad in interface Field<T>Factory.rad(Field)@Deprecated public final Field<Integer> count()
FieldFactory
count in interface Field<T>Factory.count(Field)@Deprecated public final Field<Integer> countDistinct()
FieldFactory
countDistinct in interface Field<T>Factory.countDistinct(Field)@Deprecated public final Field<T> max()
FieldFactory
max in interface Field<T>Factory.max(Field)@Deprecated public final Field<T> min()
FieldFactory
min in interface Field<T>Factory.min(Field)@Deprecated public final Field<BigDecimal> sum()
FieldFactory
sum in interface Field<T>Factory.sum(Field)@Deprecated public final Field<BigDecimal> avg()
FieldFactory
avg in interface Field<T>Factory.avg(Field)@Deprecated public final Field<BigDecimal> median()
FieldFactory
median in interface Field<T>Factory.median(Field)@Deprecated public final Field<BigDecimal> stddevPop()
FieldFactory
stddevPop in interface Field<T>Factory.stddevPop(Field)@Deprecated public final Field<BigDecimal> stddevSamp()
FieldFactory
stddevSamp in interface Field<T>Factory.stddevSamp(Field)@Deprecated public final Field<BigDecimal> varPop()
FieldFactory
varPop in interface Field<T>Factory.varPop(Field)@Deprecated public final Field<BigDecimal> varSamp()
FieldFactory
varSamp in interface Field<T>Factory.varSamp(Field)@Deprecated public final WindowPartitionByStep<Integer> countOver()
FieldFactory
countOver in interface Field<T>Factory.count(Field),
AggregateFunction.over()@Deprecated public final WindowPartitionByStep<T> maxOver()
FieldFactory
maxOver in interface Field<T>Factory.max(Field),
AggregateFunction.over()@Deprecated public final WindowPartitionByStep<T> minOver()
FieldFactory
minOver in interface Field<T>Factory.min(Field),
AggregateFunction.over()@Deprecated public final WindowPartitionByStep<BigDecimal> sumOver()
FieldFactory
sumOver in interface Field<T>Factory.sum(Field),
AggregateFunction.over()@Deprecated public final WindowPartitionByStep<BigDecimal> avgOver()
FieldFactory
avgOver in interface Field<T>Factory.avg(Field),
AggregateFunction.over()@Deprecated public final WindowIgnoreNullsStep<T> firstValue()
FieldFactory
firstValue in interface Field<T>Factory.firstValue(Field),
AggregateFunction.over()@Deprecated public final WindowIgnoreNullsStep<T> lastValue()
FieldFactory
lastValue in interface Field<T>Factory.lastValue(Field),
AggregateFunction.over()@Deprecated public final WindowIgnoreNullsStep<T> lead()
FieldFactory
lead in interface Field<T>Factory.lead(Field),
AggregateFunction.over()@Deprecated public final WindowIgnoreNullsStep<T> lead(int offset)
FieldFactory
lead in interface Field<T>Factory.lead(Field, int),
AggregateFunction.over()
@Deprecated
public final WindowIgnoreNullsStep<T> lead(int offset,
T defaultValue)
FieldFactory
lead in interface Field<T>Factory.lead(Field, int, Object),
AggregateFunction.over()
@Deprecated
public final WindowIgnoreNullsStep<T> lead(int offset,
Field<T> defaultValue)
FieldFactory
lead in interface Field<T>Factory.lead(Field, int, Field),
AggregateFunction.over()@Deprecated public final WindowIgnoreNullsStep<T> lag()
FieldFactory
lag in interface Field<T>Factory.lag(Field),
AggregateFunction.over()@Deprecated public final WindowIgnoreNullsStep<T> lag(int offset)
FieldFactory
lag in interface Field<T>Factory.lag(Field, int),
AggregateFunction.over()
@Deprecated
public final WindowIgnoreNullsStep<T> lag(int offset,
T defaultValue)
FieldFactory
lag in interface Field<T>Factory.lag(Field, int, Object),
AggregateFunction.over()
@Deprecated
public final WindowIgnoreNullsStep<T> lag(int offset,
Field<T> defaultValue)
FieldFactory
lag in interface Field<T>Factory.lag(Field, int, Field),
AggregateFunction.over()@Deprecated public final WindowPartitionByStep<BigDecimal> stddevPopOver()
FieldFactory
stddevPopOver in interface Field<T>Factory.stddevPop(Field),
AggregateFunction.over()@Deprecated public final WindowPartitionByStep<BigDecimal> stddevSampOver()
FieldFactory
stddevSampOver in interface Field<T>Factory.stddevSamp(Field),
AggregateFunction.over()@Deprecated public final WindowPartitionByStep<BigDecimal> varPopOver()
FieldFactory
varPopOver in interface Field<T>Factory.varPop(Field),
AggregateFunction.over()@Deprecated public final WindowPartitionByStep<BigDecimal> varSampOver()
FieldFactory
varSampOver in interface Field<T>Factory.varSamp(Field),
AggregateFunction.over()@Deprecated public final Field<String> upper()
FieldFactory
upper in interface Field<T>Factory.upper(Field)@Deprecated public final Field<String> lower()
FieldFactory
lower in interface Field<T>Factory.lower(Field)@Deprecated public final Field<String> trim()
FieldFactory
trim in interface Field<T>Factory.trim(Field)@Deprecated public final Field<String> rtrim()
FieldFactory
rtrim in interface Field<T>Factory.rtrim(Field)@Deprecated public final Field<String> ltrim()
FieldFactory
ltrim in interface Field<T>Factory.ltrim(Field)@Deprecated public final Field<String> rpad(Field<? extends Number> length)
FieldFactory
rpad in interface Field<T>Factory.rpad(Field, Field)@Deprecated public final Field<String> rpad(int length)
FieldFactory
rpad in interface Field<T>Factory.rpad(Field, int)
@Deprecated
public final Field<String> rpad(Field<? extends Number> length,
Field<String> character)
FieldFactory
rpad in interface Field<T>Factory.rpad(Field, Field, Field)
@Deprecated
public final Field<String> rpad(int length,
char character)
FieldFactory
rpad in interface Field<T>Factory.rpad(Field, int, char)@Deprecated public final Field<String> lpad(Field<? extends Number> length)
FieldFactory
lpad in interface Field<T>Factory.lpad(Field, Field)@Deprecated public final Field<String> lpad(int length)
FieldFactory
lpad in interface Field<T>Factory.lpad(Field, int)
@Deprecated
public final Field<String> lpad(Field<? extends Number> length,
Field<String> character)
FieldFactory
lpad in interface Field<T>Factory.lpad(Field, Field, Field)
@Deprecated
public final Field<String> lpad(int length,
char character)
FieldFactory
lpad in interface Field<T>Factory.lpad(Field, int, char)@Deprecated public final Field<String> repeat(Number count)
FieldFactory
repeat in interface Field<T>Factory.repeat(Field, int)@Deprecated public final Field<String> repeat(Field<? extends Number> count)
FieldFactory
repeat in interface Field<T>Factory.repeat(Field, Field)@Deprecated public final Field<String> replace(Field<String> search)
FieldFactory
replace in interface Field<T>Factory.replace(Field, Field)@Deprecated public final Field<String> replace(String search)
FieldFactory
replace in interface Field<T>Factory.replace(Field, String)
@Deprecated
public final Field<String> replace(Field<String> search,
Field<String> replace)
FieldFactory
replace in interface Field<T>Factory.replace(Field, Field, Field)
@Deprecated
public final Field<String> replace(String search,
String replace)
FieldFactory
replace in interface Field<T>Factory.replace(Field, String, String)@Deprecated public final Field<Integer> position(String search)
FieldFactory
position in interface Field<T>Factory.position(Field, String)@Deprecated public final Field<Integer> position(Field<String> search)
FieldFactory
position in interface Field<T>Factory.position(Field, Field)@Deprecated public final Field<Integer> ascii()
FieldFactory
ascii in interface Field<T>Factory.ascii(Field)@Deprecated public final Field<String> concat(Field<?>... fields)
FieldFactory
concat in interface Field<T>Factory.concat(Field...)@Deprecated public final Field<String> concat(String... values)
FieldFactory
concat in interface Field<T>Factory.concat(String...)@Deprecated public final Field<String> substring(int startingPosition)
FieldFactory
substring in interface Field<T>Factory.substring(Field, int)@Deprecated public final Field<String> substring(Field<? extends Number> startingPosition)
FieldFactory
substring in interface Field<T>Factory.substring(Field, Field)
@Deprecated
public final Field<String> substring(int startingPosition,
int length)
FieldFactory
substring in interface Field<T>Factory.substring(Field, int, int)
@Deprecated
public final Field<String> substring(Field<? extends Number> startingPosition,
Field<? extends Number> length)
FieldFactory
substring in interface Field<T>Factory.substring(Field, Field, Field)@Deprecated public final Field<Integer> length()
FieldFactory
length in interface Field<T>Factory.length(Field)@Deprecated public final Field<Integer> charLength()
FieldFactory
charLength in interface Field<T>Factory.charLength(Field)@Deprecated public final Field<Integer> bitLength()
FieldFactory
bitLength in interface Field<T>Factory.bitLength(Field)@Deprecated public final Field<Integer> octetLength()
FieldFactory
octetLength in interface Field<T>Factory.octetLength(Field)@Deprecated public final Field<Integer> extract(DatePart datePart)
FieldFactory
extract in interface Field<T>Factory.extract(Field, DatePart)@Deprecated public final Field<T> greatest(T... others)
FieldFactory
greatest in interface Field<T>Factory.greatest(Field, Field...)@Deprecated public final Field<T> greatest(Field<?>... others)
FieldFactory
greatest in interface Field<T>Factory.greatest(Field, Field...)@Deprecated public final Field<T> least(T... others)
FieldFactory
least in interface Field<T>Factory.least(Field, Field...)@Deprecated public final Field<T> least(Field<?>... others)
FieldFactory
least in interface Field<T>Factory.least(Field, Field...)@Deprecated public final Field<T> nvl(T defaultValue)
FieldFactory
nvl in interface Field<T>Factory.nvl(Field, Object)@Deprecated public final Field<T> nvl(Field<T> defaultValue)
FieldFactory
nvl in interface Field<T>Factory.nvl(Field, Field)
@Deprecated
public final <Z> Field<Z> nvl2(Z valueIfNotNull,
Z valueIfNull)
FieldFactory
nvl2 in interface Field<T>Factory.nvl2(Field, Object, Object)
@Deprecated
public final <Z> Field<Z> nvl2(Field<Z> valueIfNotNull,
Field<Z> valueIfNull)
FieldFactory
nvl2 in interface Field<T>Factory.nvl2(Field, Field, Field)@Deprecated public final Field<T> nullif(T other)
FieldFactory
nullif in interface Field<T>Factory.nullif(Field, Object)@Deprecated public final Field<T> nullif(Field<T> other)
FieldFactory
nullif in interface Field<T>Factory.nullif(Field, Field)
@Deprecated
public final <Z> Field<Z> decode(T search,
Z result)
FieldFactory
decode in interface Field<T>Factory.decode(Object, Object, Object)
@Deprecated
public final <Z> Field<Z> decode(T search,
Z result,
Object... more)
FieldFactory
decode in interface Field<T>Factory.decode(Object, Object, Object, Object...)
@Deprecated
public final <Z> Field<Z> decode(Field<T> search,
Field<Z> result)
FieldFactory
decode in interface Field<T>Factory.decode(Field, Field, Field)
@Deprecated
public final <Z> Field<Z> decode(Field<T> search,
Field<Z> result,
Field<?>... more)
FieldFactory
decode in interface Field<T>Factory.decode(Field, Field, Field, Field...)
@Deprecated
public final Field<T> coalesce(T option,
T... options)
FieldFactory
coalesce in interface Field<T>Factory.coalesce(Object, Object...)
@Deprecated
public final Field<T> coalesce(Field<T> option,
Field<?>... options)
FieldFactory
coalesce in interface Field<T>Factory.coalesce(Field, Field...)public final DataType<T> getDataType()
NamedTypeProviderQueryPart
getDataType in interface NamedTypeProviderQueryPart<T>protected final SQLDataType<T> getSQLDataType()
public final DataType<T> getDataType(Configuration configuration)
NamedTypeProviderQueryPart
getDataType in interface NamedTypeProviderQueryPart<T>public final Class<? extends T> getType()
NamedTypeProviderQueryPart
getType in interface NamedTypeProviderQueryPart<T>public final String getName()
NamedQueryPart
getName in interface NamedQueryPartpublic final int compareTo(NamedQueryPart that)
compareTo in interface Comparable<NamedQueryPart>public final <I> I internalAPI(Class<I> internalType)
AdapterThis is for JOOQ INTERNAL USE only. If you need to access the internal API, these are the known possible interfaces:
QueryPartInternal: The internal API for QueryPart
internalAPI in interface AdapterI - The internal type's generic type parameter.internalType - The internal type
public final Configuration getConfiguration()
AttachableInternal
getConfiguration in interface AttachableInternal@Deprecated public final SQLDialect getDialect()
QueryPartInternalQueryPart was created with
This method is for JOOQ INTERNAL USE only. Do not reference directly
getDialect in interface QueryPartInternalpublic final String getSQL()
Query.getSQL()
Retrieve the SQL that will be rendered by this QueryPart
This method is exposed publicly in Query.getSQL()
getSQL in interface QueryPartInternalpublic final String getSQL(boolean inline)
Query.getSQL(boolean)
Retrieve the SQL that will be rendered by this QueryPart
This method is exposed publicly in Query.getSQL(boolean)
getSQL in interface QueryPartInternalpublic final List<Object> getBindValues()
Query.getBindValues()
Retrieve the bind values that will be bound by this QueryPart
This method is exposed publicly in Query.getBindValues()
getBindValues in interface QueryPartInternalpublic final Map<String,Param<?>> getParams()
Query.getParams()
Retrieve the named parameters that will be bound by this QueryPart
This method is exposed publicly in Query.getParams()
getParams in interface QueryPartInternalpublic final Param<?> getParam(String name)
Query.getParam(String)
Retrieve a named parameter that will be bound by this QueryPart
This method is exposed publicly in Query.getParam(String)
getParam in interface QueryPartInternalpublic boolean equals(Object that)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectprotected final List<Attachable> getAttachables(Collection<? extends QueryPart> list)
protected final List<Attachable> getAttachables(QueryPart... list)
protected final List<Attachable> getAttachables(Store<?> store)
protected final Factory create()
protected final Factory create(Configuration configuration)
protected final DataAccessException translate(String task,
String sql,
SQLException e)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||