Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.platform.database.oracle
Class Oracle9Platform.NTypeBindCallCustomParameter

java.lang.Object
  extended by org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
      extended by org.eclipse.persistence.platform.database.oracle.Oracle9Platform.NTypeBindCallCustomParameter

Enclosing class:
Oracle9Platform

protected static class Oracle9Platform.NTypeBindCallCustomParameter
extends org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter

INTERNAL: This class used for binding of NCHAR, NSTRING, NCLOB types.


Field Summary

 

Fields inherited from class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
obj

 

Constructor Summary
Oracle9Platform.NTypeBindCallCustomParameter(java.lang.Object obj)
           

 

Method Summary
 void set(org.eclipse.persistence.internal.databaseaccess.DatabasePlatform platform, java.sql.PreparedStatement statement, int index, org.eclipse.persistence.internal.sessions.AbstractSession session)
          INTERNAL: Binds the custom parameter (obj) into the passed PreparedStatement for the passed DatabaseCall.
 boolean shouldUseUnwrappedConnection()
           

 

Methods inherited from class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
convert, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

Oracle9Platform.NTypeBindCallCustomParameter

public Oracle9Platform.NTypeBindCallCustomParameter(java.lang.Object obj)

Method Detail

shouldUseUnwrappedConnection

public boolean shouldUseUnwrappedConnection()
Overrides:
shouldUseUnwrappedConnection in class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter

set

public void set(org.eclipse.persistence.internal.databaseaccess.DatabasePlatform platform,
                java.sql.PreparedStatement statement,
                int index,
                org.eclipse.persistence.internal.sessions.AbstractSession session)
         throws java.sql.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 class org.eclipse.persistence.internal.databaseaccess.BindCallCustomParameter
Throws:
java.sql.SQLException

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.