Class OutputParameterForCallableStatement
- java.lang.Object
-
- org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
-
- org.eclipse.persistence.internal.databaseaccess.OutputParameterForCallableStatement
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InOutputParameterForCallableStatement
public class OutputParameterForCallableStatement extends BindCallCustomParameter
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DatabasePlatform
dbplatform
protected boolean
isCursor
protected boolean
isTypeNameRequired
protected int
jdbcType
protected String
typeName
-
Fields inherited from class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
obj
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OutputParameterForCallableStatement()
OutputParameterForCallableStatement(OutputParameterForCallableStatement outParameter)
OutputParameterForCallableStatement(DatabaseField field)
OutputParameterForCallableStatement(DatabaseField field, AbstractSession session)
OutputParameterForCallableStatement(DatabaseField field, AbstractSession session, boolean isCursor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getJdbcType()
DatabaseField
getOutputField()
String
getTypeName()
boolean
isCursor()
boolean
isTypeNameRequired()
void
prepare(AbstractSession session)
void
set(DatabasePlatform platform, CallableStatement statement, String parameterName, AbstractSession session)
Sets this bound parameter, on the given statement, for the given parameterName.void
set(DatabasePlatform platform, PreparedStatement statement, int parameterIndex, AbstractSession session)
Sets this bound parameter, on the given statement, at the given parameterIndex.void
setIsCursor(boolean isCursor)
String
toString()
-
Methods inherited from class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
convert, shouldUseUnwrappedConnection
-
-
-
-
Field Detail
-
isCursor
protected boolean isCursor
-
jdbcType
protected int jdbcType
-
typeName
protected String typeName
-
isTypeNameRequired
protected boolean isTypeNameRequired
-
dbplatform
protected transient DatabasePlatform dbplatform
-
-
Constructor Detail
-
OutputParameterForCallableStatement
public OutputParameterForCallableStatement(DatabaseField field)
-
OutputParameterForCallableStatement
public OutputParameterForCallableStatement(DatabaseField field, AbstractSession session)
-
OutputParameterForCallableStatement
public OutputParameterForCallableStatement(DatabaseField field, AbstractSession session, boolean isCursor)
-
OutputParameterForCallableStatement
public OutputParameterForCallableStatement(OutputParameterForCallableStatement outParameter)
-
OutputParameterForCallableStatement
protected OutputParameterForCallableStatement()
-
-
Method Detail
-
setIsCursor
public void setIsCursor(boolean isCursor)
-
isCursor
public boolean isCursor()
-
isTypeNameRequired
public boolean isTypeNameRequired()
-
getJdbcType
public int getJdbcType()
-
getTypeName
public String getTypeName()
-
getOutputField
public DatabaseField getOutputField()
-
prepare
public void prepare(AbstractSession session)
-
set
public void set(DatabasePlatform platform, PreparedStatement statement, int parameterIndex, AbstractSession session) throws SQLException
Description copied from class:BindCallCustomParameter
Sets this bound parameter, on the given statement, at the given parameterIndex. Note:PreparedStatement
contains setX(int parameterIndex, X x) methods. This method aligns with that pattern.- Overrides:
set
in classBindCallCustomParameter
- Throws:
SQLException
-
set
public void set(DatabasePlatform platform, CallableStatement statement, String parameterName, AbstractSession session) throws SQLException
Description copied from class:BindCallCustomParameter
Sets this bound parameter, on the given statement, for the given parameterName. Note:CallableStatement
contains setX(int parameterName, X x) methods. This method aligns with that pattern.- Overrides:
set
in classBindCallCustomParameter
- Throws:
SQLException
-
toString
public String toString()
- Overrides:
toString
in classBindCallCustomParameter
-
-