Module org.eclipse.persistence.core
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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DatabasePlatformprotected booleanprotected booleanprotected intprotected StringFields inherited from class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
obj -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOutputParameterForCallableStatement(DatabaseField field, AbstractSession session) OutputParameterForCallableStatement(DatabaseField field, AbstractSession session, boolean isCursor) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisCursor()booleanvoidprepare(AbstractSession session) voidset(DatabasePlatform platform, CallableStatement statement, String parameterName, AbstractSession session) Sets this bound parameter, on the given statement, for the given parameterName.voidset(DatabasePlatform platform, PreparedStatement statement, int parameterIndex, AbstractSession session) Sets this bound parameter, on the given statement, at the given parameterIndex.voidsetIsCursor(boolean isCursor) toString()Methods inherited from class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
convert, shouldUseUnwrappedConnection
-
Field Details
-
isCursor
protected boolean isCursor -
jdbcType
protected int jdbcType -
typeName
-
isTypeNameRequired
protected boolean isTypeNameRequired -
dbplatform
-
-
Constructor Details
-
OutputParameterForCallableStatement
-
OutputParameterForCallableStatement
-
OutputParameterForCallableStatement
public OutputParameterForCallableStatement(DatabaseField field, AbstractSession session, boolean isCursor) -
OutputParameterForCallableStatement
-
OutputParameterForCallableStatement
protected OutputParameterForCallableStatement()
-
-
Method Details
-
setIsCursor
public void setIsCursor(boolean isCursor) -
isCursor
public boolean isCursor() -
isTypeNameRequired
public boolean isTypeNameRequired() -
getJdbcType
public int getJdbcType() -
getTypeName
-
getOutputField
-
prepare
-
set
public void set(DatabasePlatform platform, PreparedStatement statement, int parameterIndex, AbstractSession session) throws SQLException Description copied from class:BindCallCustomParameterSets this bound parameter, on the given statement, at the given parameterIndex. Note:PreparedStatementcontains setX(int parameterIndex, X x) methods. This method aligns with that pattern.- Overrides:
setin classBindCallCustomParameter- Throws:
SQLException
-
set
public void set(DatabasePlatform platform, CallableStatement statement, String parameterName, AbstractSession session) throws SQLException Description copied from class:BindCallCustomParameterSets this bound parameter, on the given statement, for the given parameterName. Note:CallableStatementcontains setX(int parameterName, X x) methods. This method aligns with that pattern.- Overrides:
setin classBindCallCustomParameter- Throws:
SQLException
-
toString
- Overrides:
toStringin classBindCallCustomParameter
-