Top Description Methods
org.jooq

public Interface Routine<T>

extends Qualified, Attachable
Known Direct Implementers
org.jooq.impl.AbstractRoutine
Imports
java.util.List, org.jooq.exception.DataAccessException, org.jetbrains.annotations.Blocking, .NotNull, .Nullable

A routine is a callable object in your RDBMS.

Callable objects are mainly stored procedures and stored functions. The distinction between those two object types is very subtle and not well defined across various RDBMS. In general, this can be said:

Procedures:

Functions

But there are exceptions to these rules:

Hence, with #852, jOOQ 1.6.8, the distinction between procedures and functions becomes obsolete. All stored routines are simply referred to as "Routine".

Instances of this type cannot be created directly. They are available from generated code.

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public int
execute(Configuration configuration)

Execute the stored object using a Configuration object

public int
execute()

Execute the stored object on an underlying connection

public <Z> Z

Returns:

The routine's OUT value for an OUT parameter.
get
(Parameter<Z> parameter)

public @NotNull List<Parameter<?>>

Returns:

The list of in parameters
getInParameters
()

A list of IN parameters passed to the stored procedure as argument.

public <Z> Z

Returns:

The routine's IN value for an IN parameter.
getInValue
(Parameter<Z> parameter)

public @NotNull List<Parameter<?>>

Returns:

The list of out parameters
getOutParameters
()

A list of OUT parameters passed to the stored procedure as argument.

public @NotNull List<Parameter<?>>

Returns:

A list of parameters passed to the stored object as argument
getParameters
()

public @NotNull Results

Returns:

The routine's results (if available)
getResults
()

public @Nullable Parameter<T>

Returns:

The return parameter or null if this routine doesn't have a return value.
getReturnParameter
()

The parameter representing this routine's getReturnValue()

public T

Returns:

The routine's return value (if it is a function)
getReturnValue
()

public <Z> Z

Returns:

The routine's OUT value for an OUT parameter.
getValue
(Parameter<Z> parameter)

public <Z> void
set(Parameter<Z> parameter, Z value)

Set the routine's IN value for an IN parameter.

public <Z> void
setValue(Parameter<Z> parameter, Z value)

Set the routine's IN value for an IN parameter.

Inherited from org.jooq.Attachable:
attachconfigurationdetach
Inherited from org.jooq.Qualified:
$schemagetCataloggetSchema

Method Detail

executeback to summary
public int execute(Configuration configuration) throws DataAccessException

Execute the stored object using a Configuration object

Annotations
@Blocking
Exceptions
DataAccessException:
if something went wrong executing the query
executeback to summary
public int execute() throws DataAccessException

Execute the stored object on an underlying connection

Annotations
@Blocking
Exceptions
DataAccessException:
if something went wrong executing the query
getback to summary
public <Z> Z get(Parameter<Z> parameter)
Returns:Z

The routine's OUT value for an OUT parameter.

getInParametersback to summary
public @NotNull List<Parameter<?>> getInParameters()

A list of IN parameters passed to the stored procedure as argument. This list contains all parameters that are either IN or INOUT in their respective order of appearance in getParameters().

Returns:@NotNull List<Parameter<?>>

The list of in parameters

Annotations
@NotNull
See Also
getParameters()
getInValueback to summary
public <Z> Z getInValue(Parameter<Z> parameter)
Returns:Z

The routine's IN value for an IN parameter.

getOutParametersback to summary
public @NotNull List<Parameter<?>> getOutParameters()

A list of OUT parameters passed to the stored procedure as argument. This list contains all parameters that are either OUT or INOUT in their respective order of appearance in getParameters().

Returns:@NotNull List<Parameter<?>>

The list of out parameters

Annotations
@NotNull
See Also
getParameters()
getParametersback to summary
public @NotNull List<Parameter<?>> getParameters()
Returns:@NotNull List<Parameter<?>>

A list of parameters passed to the stored object as argument

Annotations
@NotNull
getResultsback to summary
public @NotNull Results getResults()
Returns:@NotNull Results

The routine's results (if available)

Annotations
@NotNull
getReturnParameterback to summary
public @Nullable Parameter<T> getReturnParameter()

The parameter representing this routine's getReturnValue()

Returns:@Nullable Parameter<T>

The return parameter or null if this routine doesn't have a return value.

Annotations
@Nullable
See Also
getParameters()
getReturnValueback to summary
public T getReturnValue()
Returns:T

The routine's return value (if it is a function)

Annotations
@Nullable
getValueback to summary
public <Z> Z getValue(Parameter<Z> parameter)
Returns:Z

The routine's OUT value for an OUT parameter.

setback to summary
public <Z> void set(Parameter<Z> parameter, Z value)

Set the routine's IN value for an IN parameter.

setValueback to summary
public <Z> void setValue(Parameter<Z> parameter, Z value)

Set the routine's IN value for an IN parameter.