|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jooq.impl.FalseCondition
public class FalseCondition
Field Summary | |
---|---|
static FalseCondition |
FALSE_CONDITION
Deprecated. - Do not use this singleton FalseCondition anymore,
as of 1.5.7 |
Method Summary | ||
---|---|---|
Condition |
and(Condition other)
Combine this condition with another one using the Operator.AND
operator. |
|
Condition |
and(String sql)
Combine this condition with another one using the Operator.AND
operator. |
|
Condition |
and(String sql,
Object... bindings)
Combine this condition with another one using the Operator.AND
operator. |
|
Condition |
andExists(Select<?> select)
Combine this condition with an EXISTS clause using the Operator.AND operator. |
|
Condition |
andNot(Condition other)
Combine this condition with a negated other one using the Operator.AND operator. |
|
Condition |
andNotExists(Select<?> select)
Combine this condition with a NOT EXIST clause using the Operator.AND operator. |
|
void |
attach(Configuration c)
Attach this record to a new Configuration |
|
int |
bind(Configuration c,
PreparedStatement stmt)
Bind all parameters of this QueryPart to a PreparedStatement. |
|
int |
bind(Configuration c,
PreparedStatement stmt,
int initialIndex)
Bind all parameters of this QueryPart to a PreparedStatement. |
|
int |
bindDeclaration(Configuration configuration,
PreparedStatement stmt)
Bind all parameters of this QueryPart to a PreparedStatement. |
|
int |
bindDeclaration(Configuration configuration,
PreparedStatement stmt,
int initialIndex)
The default implementation is the same as that of QueryPartInternal.bindReference(Configuration, PreparedStatement, int) . |
|
int |
bindReference(Configuration configuration,
PreparedStatement stmt)
Bind all parameters of this QueryPart to a PreparedStatement. |
|
int |
bindReference(Configuration configuration,
PreparedStatement stmt,
int initialIndex)
Bind all parameters of this QueryPart to a PreparedStatement. |
|
protected Factory |
create()
Internal convenience method |
|
boolean |
equals(Object that)
|
|
List<Attachable> |
getAttachables()
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 |
|
Configuration |
getConfiguration()
Get the underlying configuration |
|
SQLDialect |
getDialect()
Reproduce the SQL dialect this QueryPart was created with This method is for JOOQ INTERNAL USE only. |
|
String |
getSQL()
Retrieve the SQL code rendered by this query part. |
|
int |
hashCode()
|
|
protected AttachableInternal |
internal(Attachable part)
|
|
protected QueryPartInternal |
internal(QueryPart part)
|
|
|
internalAPI(Class<T> internalType)
Adapt to an internal type assuming its functionality This is for JOOQ INTERNAL USE only. |
|
Condition |
not()
Invert this condition |
|
Condition |
or(Condition other)
Combine this condition with another one using the Operator.OR
operator. |
|
Condition |
or(String sql)
Combine this condition with another one using the Operator.OR
operator. |
|
Condition |
or(String sql,
Object... bindings)
Combine this condition with another one using the Operator.OR
operator. |
|
Condition |
orExists(Select<?> select)
Combine this condition with an EXISTS clause using the Operator.OR operator. |
|
Condition |
orNot(Condition other)
Combine this condition with a negated other one using the Operator.OR operator. |
|
Condition |
orNotExists(Select<?> select)
Combine this condition with a NOT EXIST clause using the Operator.OR operator. |
|
String |
toSQLDeclaration(Configuration c)
Transform this object into SQL, such that it can be used as a declaration. |
|
String |
toSQLDeclaration(Configuration c,
boolean inlineParameters)
The default implementation is the same as that of QueryPartInternal.toSQLReference(Configuration, boolean) . |
|
String |
toSQLReference(Configuration c)
Transform this object into SQL, such that it can be used as a reference. |
|
String |
toSQLReference(Configuration configuration,
boolean inlineParameters)
Transform this object into SQL, such that it can be used as a reference. |
|
String |
toString()
|
|
protected String |
wrapInParentheses(String sql)
Wrap a piece of SQL code in parentheses, if not wrapped already |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jooq.QueryPart |
---|
getSQL |
Methods inherited from interface org.jooq.Attachable |
---|
attach, getConfiguration |
Methods inherited from interface org.jooq.Adapter |
---|
internalAPI |
Field Detail |
---|
@Deprecated public static final FalseCondition FALSE_CONDITION
FalseCondition
anymore,
as of 1.5.7Method Detail |
---|
public int bindReference(Configuration configuration, PreparedStatement stmt, int initialIndex)
QueryPartInternal
This method is for JOOQ INTERNAL USE only. Do not reference directly
configuration
- The configuration overriding dialects and schematastmt
- The statement to bind values toinitialIndex
- The index of the next binding variable
public String toSQLReference(Configuration configuration, boolean inlineParameters)
QueryPartInternal
This method is for JOOQ INTERNAL USE only. Do not reference directly
configuration
- The configuration overriding dialects and schematainlineParameters
- if set to true, all parameters are inlined, not
replaced by "?"
public final List<Attachable> getAttachables()
AttachableInternal
This method is for JOOQ INTERNAL USE only. Do not reference directly
public final Condition and(Condition other)
Condition
Operator.AND
operator.
and
in interface Condition
other
- The other condition
public final Condition or(Condition other)
Condition
Operator.OR
operator.
or
in interface Condition
other
- The other condition
public final Condition and(String sql)
Condition
Operator.AND
operator.
and
in interface Condition
sql
- The other condition
Factory.plainSQLCondition(String)
public final Condition and(String sql, Object... bindings)
Condition
Operator.AND
operator.
and
in interface Condition
sql
- The other conditionbindings
- The bindings
Factory.plainSQLCondition(String, Object...)
public final Condition or(String sql)
Condition
Operator.OR
operator.
or
in interface Condition
sql
- The other condition
Factory.plainSQLCondition(String)
public final Condition or(String sql, Object... bindings)
Condition
Operator.OR
operator.
or
in interface Condition
sql
- The other conditionbindings
- The bindings
Factory.plainSQLCondition(String, Object...)
public final Condition andNot(Condition other)
Condition
Operator.AND
operator.
andNot
in interface Condition
other
- The other condition
public final Condition orNot(Condition other)
Condition
Operator.OR
operator.
orNot
in interface Condition
other
- The other condition
public final Condition andExists(Select<?> select)
Condition
Operator.AND
operator.
andExists
in interface Condition
select
- The EXISTS's subquery
public final Condition andNotExists(Select<?> select)
Condition
Operator.AND
operator.
andNotExists
in interface Condition
select
- The EXISTS's subquery
public final Condition orExists(Select<?> select)
Condition
Operator.OR
operator.
orExists
in interface Condition
select
- The EXISTS's subquery
public final Condition orNotExists(Select<?> select)
Condition
Operator.OR
operator.
orNotExists
in interface Condition
select
- The EXISTS's subquery
public final Condition not()
Condition
not
in interface Condition
public final <T> T internalAPI(Class<T> internalType)
Adapter
This 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 Adapter
T
- The internal type's generic type parameter.internalType
- The internal type
protected final AttachableInternal internal(Attachable part)
protected final QueryPartInternal internal(QueryPart part)
public final String getSQL()
QueryPart
getSQL
in interface QueryPart
public final void attach(Configuration c)
Attachable
Configuration
attach
in interface Attachable
public final Configuration getConfiguration()
Attachable
getConfiguration
in interface Attachable
getConfiguration
in interface AttachableInternal
protected 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()
public final String toSQLReference(Configuration c)
QueryPartInternal
toSQLReference(configuration, false)
This method is for JOOQ INTERNAL USE only. Do not reference directly
toSQLReference
in interface QueryPartInternal
c
- The configuration overriding dialects and schemata
QueryPartInternal.toSQLReference(Configuration, boolean)
public final String toSQLDeclaration(Configuration c)
QueryPartInternal
toSQLReference(configuration, false)
This method is for JOOQ INTERNAL USE only. Do not reference directly
toSQLDeclaration
in interface QueryPartInternal
c
- The configuration overriding dialects and schemata
QueryPartInternal.toSQLDeclaration(Configuration, boolean)
public String toSQLDeclaration(Configuration c, boolean inlineParameters)
QueryPartInternal.toSQLReference(Configuration, boolean)
. Subclasses may override this method.
toSQLDeclaration
in interface QueryPartInternal
c
- The configuration overriding dialects and schematainlineParameters
- if set to true, all parameters are inlined, not
replaced by "?"
public final int bind(Configuration c, PreparedStatement stmt) throws SQLException
QueryPartInternal
bind(configuration, stmt, 1)
This method is for JOOQ INTERNAL USE only. Do not reference directly
bind
in interface QueryPartInternal
c
- The configuration overriding dialects and schematastmt
- The statement to bind values to
SQLException
QueryPartInternal.bind(Configuration, PreparedStatement, int)
public final int bind(Configuration c, PreparedStatement stmt, int initialIndex) throws SQLException
QueryPartInternal
This method is for JOOQ INTERNAL USE only. Do not reference directly
bind
in interface QueryPartInternal
c
- The configuration overriding dialects and schematastmt
- The statement to bind values toinitialIndex
- The index of the next binding variable
SQLException
public final int bindReference(Configuration configuration, PreparedStatement stmt) throws SQLException
QueryPartInternal
bind(configuration, stmt, 1)
This method is for JOOQ INTERNAL USE only. Do not reference directly
bindReference
in interface QueryPartInternal
configuration
- The configuration overriding dialects and schematastmt
- The statement to bind values to
SQLException
QueryPartInternal.bind(Configuration, PreparedStatement, int)
public final int bindDeclaration(Configuration configuration, PreparedStatement stmt) throws SQLException
QueryPartInternal
bind(configuration, stmt, 1)
This method is for JOOQ INTERNAL USE only. Do not reference directly
bindDeclaration
in interface QueryPartInternal
configuration
- The configuration overriding dialects and schematastmt
- The statement to bind values to
SQLException
QueryPartInternal.bind(Configuration, PreparedStatement, int)
public int bindDeclaration(Configuration configuration, PreparedStatement stmt, int initialIndex) throws SQLException
QueryPartInternal.bindReference(Configuration, PreparedStatement, int)
. Subclasses may override this method.
bindDeclaration
in interface QueryPartInternal
configuration
- The configuration overriding dialects and schematastmt
- The statement to bind values toinitialIndex
- The index of the next binding variable
SQLException
public final boolean equals(Object that)
equals
in class Object
public final int hashCode()
hashCode
in class Object
public final String toString()
toString
in class Object
public final SQLDialect getDialect()
QueryPartInternal
This method is for JOOQ INTERNAL USE only. Do not reference directly
getDialect
in interface QueryPartInternal
protected final String wrapInParentheses(String sql)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |