|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jooq.impl.AbstractStoredProcedure
org.jooq.util.postgres.PostgresSingleUDTOutParameterProcedure
public class PostgresSingleUDTOutParameterProcedure
Constructor Summary | |
---|---|
PostgresSingleUDTOutParameterProcedure(Configuration configuration,
String name,
Schema schema)
|
|
PostgresSingleUDTOutParameterProcedure(SQLDialect dialect,
String name,
Schema schema)
|
Method Summary | ||
---|---|---|
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. |
|
int |
compareTo(NamedQueryPart that)
|
|
protected Factory |
create()
Internal convenience method |
|
boolean |
equals(Object that)
|
|
int |
execute()
Execute the stored object on an underlying connection |
|
int |
execute(Connection connection)
Execute the stored object on a connection |
|
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()
|
|
protected List<Attachable> |
getAttachables2()
|
|
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. |
|
List<Parameter<?>> |
getInParameters()
|
|
protected Map<Parameter<?>,Field<?>> |
getInValues()
|
|
String |
getName()
The name of this query part |
|
Package |
getPackage()
The container package of this stored procedure or function. |
|
Schema |
getSchema()
|
|
String |
getSQL()
Retrieve the SQL code rendered by this query part. |
|
protected
|
getValue(Parameter<T> parameter)
|
|
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. |
|
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 |
setValue(Parameter<?> parameter,
Object value)
|
|
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) . |
|
protected String |
toSQLQualifiedName(Configuration configuration)
|
|
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 org.jooq.impl.AbstractStoredProcedure |
---|
addInOutParameter, addInParameter, addOutParameter, getAttachables1, getOutParameters, getParameters, getReturnParameter, setReturnParameter |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jooq.StoredProcedure |
---|
getInParameters |
Methods inherited from interface org.jooq.StoredObject |
---|
execute, getPackage |
Methods inherited from interface org.jooq.NamedQueryPart |
---|
getName |
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 |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.jooq.SchemaProvider |
---|
getSchema |
Constructor Detail |
---|
public PostgresSingleUDTOutParameterProcedure(SQLDialect dialect, String name, Schema schema)
public PostgresSingleUDTOutParameterProcedure(Configuration configuration, String name, Schema schema)
Method Detail |
---|
protected final List<Attachable> getAttachables2()
getAttachables2
in class AbstractStoredProcedure
public final int execute() throws SQLException
StoredObject
SQLException
- If anything went wrong with executing the stored
object
DetachedException
- If this stored object is not attachedpublic final 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 int bindReference(Configuration configuration, PreparedStatement stmt, int initialIndex) throws SQLException
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
SQLException
protected final <T> T getValue(Parameter<T> parameter)
getValue
in class AbstractStoredProcedure
public final Package getPackage()
StoredObject
This is only supported in the SQLDialect.ORACLE
dialect.
getPackage
in interface StoredObject
null
if
there is no such container.protected final String toSQLQualifiedName(Configuration configuration)
protected final List<Attachable> getAttachables0()
public final int execute(Connection connection) throws SQLException
StoredObject
execute
in interface StoredObject
SQLException
protected final Map<Parameter<?>,Field<?>> getInValues()
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 List<Parameter<?>> getInParameters()
protected final void setOverloaded(boolean overloaded)
protected final boolean isOverloaded()
public final List<Attachable> getAttachables()
AttachableInternal
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 <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 |