Class Oracle9Platform.NTypeBindCallCustomParameter
java.lang.Object
org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
org.eclipse.persistence.platform.database.oracle.Oracle9Platform.NTypeBindCallCustomParameter
- All Implemented Interfaces:
Serializable
- Enclosing class:
Oracle9Platform
INTERNAL:
This class used for binding of NCHAR, NSTRING, NCLOB types.
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
obj
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
set
(DatabasePlatform platform, PreparedStatement statement, int index, AbstractSession session) INTERNAL: Binds the custom parameter (obj) into the passed PreparedStatement for the passed DatabaseCall.boolean
Return if unwrapped connection should be used.Methods inherited from class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
convert, set, toString
-
Constructor Details
-
NTypeBindCallCustomParameter
-
-
Method Details
-
shouldUseUnwrappedConnection
public boolean shouldUseUnwrappedConnection()Description copied from class:BindCallCustomParameter
Return if unwrapped connection should be used.- Overrides:
shouldUseUnwrappedConnection
in classBindCallCustomParameter
-
set
public void set(DatabasePlatform platform, PreparedStatement statement, int index, AbstractSession session) throws SQLException INTERNAL: Binds the custom parameter (obj) into the passed PreparedStatement for the passed DatabaseCall. Note that parameter numeration for PreparedStatement starts with 1, therefore statement.set...(index + 1, ...) should be used. DatabaseCall will carry this object as its parameter: call.getParameters().elementAt(index). The reason for passing DatabaseCall and DatabasePlatform into this method is that this method may set obj as a new value of index parameter: call.getParameters().setElementAt(obj, index); and call again the method which has called it: platform.setParameterValueInDatabaseCall(call, statement, index); so obj will be bound. Called only by DatabasePlatform.setParameterValueInDatabaseCall method- Overrides:
set
in classBindCallCustomParameter
- Throws:
SQLException
-