|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jooq.impl.AbstractRoutine<T>
public abstract class AbstractRoutine<T>
A common base class for stored procedures
This type is for JOOQ INTERNAL USE only. Do not reference directly
Constructor Summary | |
---|---|
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)
|
Method Summary | ||
---|---|---|
protected void |
addInOutParameter(Parameter<?> parameter)
|
|
protected void |
addInParameter(Parameter<?> parameter)
|
|
protected void |
addOutParameter(Parameter<?> parameter)
|
|
Field<T> |
asField()
|
|
Field<T> |
asField(String alias)
|
|
void |
attach(Configuration configuration)
By default, nothing is done on an attachment event. |
|
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
|
createParameter(String name,
DataType<T> type)
Subclasses may call this method to create UDTField objects that
are linked to this table. |
|
protected static
|
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 configuration)
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. |
|
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 |
|
protected List<Attachable> |
getAttachables0()
|
|
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
|
getValue(Parameter<Z> parameter)
|
|
int |
hashCode()
|
|
|
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 task,
String sql,
SQLException e)
Internal convenience method |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jooq.NamedQueryPart |
---|
getName |
Methods inherited from interface org.jooq.Adapter |
---|
internalAPI |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.jooq.SchemaProvider |
---|
getSchema |
Constructor Detail |
---|
@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 AbstractRoutine(String name, Schema schema)
protected AbstractRoutine(String name, Schema schema, Package pkg)
protected AbstractRoutine(String name, Schema schema, DataType<T> type)
protected AbstractRoutine(String name, Schema schema, Package pkg, DataType<T> type)
Method Detail |
---|
protected final void setNumber(Parameter<? extends Number> parameter, Number value)
protected final void setNumber(Parameter<? extends Number> parameter, Field<? extends Number> value)
protected final void setValue(Parameter<?> parameter, Object value)
protected final void setField(Parameter<?> parameter, Field<?> value)
public final void attach(Configuration configuration)
attach
in interface Attachable
protected final List<Attachable> getAttachables0()
public final int execute(Configuration configuration)
Routine
Configuration
object
execute
in interface Routine<T>
public final int execute()
Routine
execute
in interface Routine<T>
public final void bind(BindContext context)
QueryPartInternal
QueryPart
to a PreparedStatement
This method is for JOOQ INTERNAL USE only. Do not reference directly
bind
in interface QueryPartInternal
context
- The context holding the next bind index and other
information for variable bindingpublic final void toSQL(RenderContext context)
QueryPartInternal
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 final T getReturnValue()
getReturnValue
in interface Routine<T>
protected final <Z> Z getValue(Parameter<Z> parameter)
protected final Map<Parameter<?>,Field<?>> getInValues()
public final List<Parameter<?>> getOutParameters()
Routine
Routine.getParameters()
.
getOutParameters
in interface Routine<T>
Routine.getParameters()
public final List<Parameter<?>> getInParameters()
Routine
Routine.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)
protected final void setReturnParameter(Parameter<T> parameter)
public final Field<T> asField()
public final Field<T> asField(String alias)
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 final List<Attachable> getAttachables()
AttachableInternal
Attachables
This method is for JOOQ INTERNAL USE only. Do not reference directly
getAttachables
in interface AttachableInternal
public final Schema getSchema()
getSchema
in interface SchemaProvider
public final String getName()
NamedQueryPart
getName
in interface NamedQueryPart
public final int compareTo(NamedQueryPart that)
compareTo
in interface Comparable<NamedQueryPart>
public final <I> I internalAPI(Class<I> 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
I
- 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()
QueryPartInternal
QueryPart
was created with
This method is for JOOQ INTERNAL USE only. Do not reference directly
getDialect
in interface QueryPartInternal
public 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 QueryPartInternal
public 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 QueryPartInternal
public 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 QueryPartInternal
public 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 QueryPartInternal
public 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 QueryPartInternal
public boolean declaresFields()
declaresFields
in interface QueryPartInternal
public boolean declaresTables()
declaresTables
in interface QueryPartInternal
public boolean equals(Object that)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
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()
protected final Factory create(Configuration configuration)
protected final DataAccessException translate(String task, String sql, SQLException e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |