public abstract class AbstractRoutine<T> extends Object implements Routine<T>, AttachableInternal
This type is for JOOQ INTERNAL USE only. Do not reference directly
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRoutine(SQLDialect dialect,
String name,
Schema schema)
Deprecated.
- 2.1.0 [#625] - Regenerate your schema
|
protected |
AbstractRoutine(SQLDialect dialect,
String name,
Schema schema,
DataType<T> type)
Deprecated.
- 2.1.0 [#625] - Regenerate your schema
|
protected |
AbstractRoutine(SQLDialect dialect,
String name,
Schema schema,
Package pkg)
Deprecated.
- 2.1.0 [#625] - Regenerate your schema
|
protected |
AbstractRoutine(SQLDialect dialect,
String name,
Schema schema,
Package pkg,
DataType<T> type)
Deprecated.
- 2.1.0 [#625] - Regenerate your schema
|
protected |
AbstractRoutine(String name,
Schema schema) |
protected |
AbstractRoutine(String name,
Schema schema,
DataType<T> type) |
protected |
AbstractRoutine(String name,
Schema schema,
Package pkg) |
protected |
AbstractRoutine(String name,
Schema schema,
Package pkg,
DataType<T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInOutParameter(Parameter<?> parameter) |
protected void |
addInParameter(Parameter<?> parameter) |
protected void |
addOutParameter(Parameter<?> parameter) |
AggregateFunction<T> |
asAggregateFunction() |
Field<T> |
asField() |
Field<T> |
asField(String alias) |
void |
attach(Configuration c)
Attach this object to a new
Configuration |
void |
bind(BindContext context)
Bind all parameters of this
QueryPart to a PreparedStatement
This method is for JOOQ INTERNAL USE only. |
int |
compareTo(NamedQueryPart that) |
protected Factory |
create()
Internal convenience method
|
protected Factory |
create(Configuration configuration)
Internal convenience method
|
protected static <T> Parameter<T> |
createParameter(String name,
DataType<T> type)
Subclasses may call this method to create
UDTField objects that
are linked to this table. |
protected static <T> Parameter<T> |
createParameter(String name,
DataType<T> type,
boolean isDefaulted)
Subclasses may call this method to create
UDTField objects that
are linked to this table. |
boolean |
declaresFields()
Subclasses may override this
|
boolean |
declaresTables()
Subclasses may override this
|
boolean |
equals(Object that) |
int |
execute()
Execute the stored object on an underlying connection
|
int |
execute(Configuration c)
Execute the stored object using a
Configuration object |
List<Attachable> |
getAttachables()
Get the list of dependent
Attachables
This method is for JOOQ INTERNAL USE only. |
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
|
SQLDialect |
getDialect()
Deprecated.
|
List<Parameter<?>> |
getInParameters()
A list of IN parameters passed to the stored procedure as argument.
|
protected Map<Parameter<?>,Field<?>> |
getInValues() |
String |
getName()
The name of this query part
|
List<Parameter<?>> |
getOutParameters()
A list of OUT parameters passed to the stored procedure as argument.
|
Package |
getPackage()
The container package of this stored procedure or function.
|
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) |
List<Parameter<?>> |
getParameters() |
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() |
protected Parameter<?> |
getReturnParameter() |
T |
getReturnValue() |
Schema |
getSchema() |
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 <Z> Z |
getValue(Parameter<Z> parameter) |
int |
hashCode() |
<I> I |
internalAPI(Class<I> internalType)
Adapt to an internal type assuming its functionality
This is for JOOQ INTERNAL USE only.
|
protected boolean |
isOverloaded() |
protected void |
setField(Parameter<?> parameter,
Field<?> value) |
protected void |
setNumber(Parameter<? extends Number> parameter,
Field<? extends Number> value) |
protected void |
setNumber(Parameter<? extends Number> parameter,
Number value) |
protected void |
setOverloaded(boolean overloaded) |
protected void |
setReturnParameter(Parameter<T> parameter) |
protected void |
setValue(Parameter<?> parameter,
Object value) |
void |
toSQL(RenderContext context)
Render this
QueryPart to a SQL string contained in
context.sql(). |
String |
toString() |
protected DataAccessException |
translate(String sql,
SQLException e)
Internal convenience method
|
protected DataAccessException |
translate(String task,
String sql,
SQLException e)
Deprecated.
- 2.3.0 - Do not reuse
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitinternalAPIcompareTo@Deprecated protected AbstractRoutine(SQLDialect dialect, String name, Schema schema)
@Deprecated protected AbstractRoutine(SQLDialect dialect, String name, Schema schema, Package pkg)
@Deprecated protected AbstractRoutine(SQLDialect dialect, String name, Schema schema, DataType<T> type)
@Deprecated protected AbstractRoutine(SQLDialect dialect, String name, Schema schema, Package pkg, DataType<T> type)
protected final void setNumber(Parameter<? extends Number> parameter, Field<? extends Number> value)
public final void attach(Configuration c)
QueryPartConfigurationattach in interface Attachableattach in interface QueryPartc - A configuration or null, if you wish to
detach this Attachable from its previous
configuration.public final List<Attachable> getAttachables()
AttachableInternalAttachables
This method is for JOOQ INTERNAL USE only. Do not reference directly
getAttachables in interface AttachableInternalpublic final Configuration getConfiguration()
AttachableInternalgetConfiguration in interface AttachableInternalpublic final int execute(Configuration c)
RoutineConfiguration objectpublic final int execute()
Routinepublic final void bind(BindContext context)
QueryPartInternalQueryPart 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 bindingpublic final void toSQL(RenderContext context)
QueryPartInternalQueryPart 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 QueryPartInternalpublic final T getReturnValue()
getReturnValue in interface Routine<T>protected final <Z> Z getValue(Parameter<Z> parameter)
public final List<Parameter<?>> getOutParameters()
RoutineRoutine.getParameters().getOutParameters in interface Routine<T>Routine.getParameters()public final List<Parameter<?>> getInParameters()
RoutineRoutine.getParameters().getInParameters in interface Routine<T>Routine.getParameters()public final List<Parameter<?>> getParameters()
getParameters in interface Routine<T>public final Package getPackage()
Routine
This is only supported in the SQLDialect.ORACLE dialect.
getPackage in interface Routine<T>null if
there is no such container.protected final Parameter<?> getReturnParameter()
protected final void setOverloaded(boolean overloaded)
protected final boolean isOverloaded()
protected final void addInParameter(Parameter<?> parameter)
protected final void addInOutParameter(Parameter<?> parameter)
protected final void addOutParameter(Parameter<?> parameter)
public final AggregateFunction<T> asAggregateFunction()
protected static final <T> Parameter<T> createParameter(String name, DataType<T> type)
UDTField objects that
are linked to this table.name - The name of the field (case-sensitive!)type - The data type of the fieldprotected static final <T> Parameter<T> createParameter(String name, DataType<T> type, boolean isDefaulted)
UDTField objects that
are linked to this table.name - The name of the field (case-sensitive!)type - The data type of the fieldisDefaulted - Whether the parameter is defaulted (see
Parameter.isDefaulted()public int hashCode()
public final Schema getSchema()
getSchema in interface SchemaProviderpublic final String getName()
NamedQueryPartgetName 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 QueryPartinternalAPI in interface AdapterI - The internal type's generic type parameter.internalType - The internal type@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 declaresFields()
declaresFields in interface QueryPartInternalpublic boolean declaresTables()
declaresTables in interface QueryPartInternalprotected final Factory create()
protected final Factory create(Configuration configuration)
@Deprecated protected final DataAccessException translate(String task, String sql, SQLException e)
protected final DataAccessException translate(String sql, SQLException e)
Copyright © 2013. All Rights Reserved.