Module org.jooq.postgres.extensions
Class AbstractPostgresBinding<T,U>
- java.lang.Object
-
- org.jooq.impl.AbstractBinding<T,U>
-
- org.jooq.postgres.extensions.bindings.AbstractPostgresBinding<T,U>
-
- All Implemented Interfaces:
Serializable
,Binding<T,U>
- Direct Known Subclasses:
HstoreBinding
public abstract class AbstractPostgresBinding<T,U> extends AbstractBinding<T,U>
A common base class for bindings in this module.- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractPostgresBinding()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
castType()
Provide the data type name for casts.void
get(BindingGetSQLInputContext<U> ctx)
void
set(BindingSetSQLOutputContext<U> ctx)
protected void
sqlBind(BindingSQLContext<U> ctx)
protected void
sqlInline(BindingSQLContext<U> ctx)
-
Methods inherited from class org.jooq.impl.AbstractBinding
get, register, sql
-
-
-
-
Method Detail
-
castType
protected String castType()
Provide the data type name for casts.Most PostgreSQL vendor specific data types need to be cast explicitly, e.g.
?::hstore
. Implementations should provide this cast type, e.g.hstore
.
-
sqlInline
protected void sqlInline(BindingSQLContext<U> ctx) throws SQLException
- Overrides:
sqlInline
in classAbstractBinding<T,U>
- Throws:
SQLException
-
sqlBind
protected void sqlBind(BindingSQLContext<U> ctx) throws SQLException
- Overrides:
sqlBind
in classAbstractBinding<T,U>
- Throws:
SQLException
-
set
public void set(BindingSetSQLOutputContext<U> ctx) throws SQLException
- Specified by:
set
in interfaceBinding<T,U>
- Overrides:
set
in classAbstractBinding<T,U>
- Throws:
SQLException
-
get
public void get(BindingGetSQLInputContext<U> ctx) throws SQLException
- Specified by:
get
in interfaceBinding<T,U>
- Overrides:
get
in classAbstractBinding<T,U>
- Throws:
SQLException
-
-