Ojdbc7 doesn't contain oracle.jdbc.driver.OracleTypes.CURSOR

Currently we are using (oracle.jdbc.driver.OracleTypes.CURSOR) with registerOutParameter using ojdb14

Now we are migrating ojdbc7. What is new mode as oracle.jdbc.OracleTypes is even not visible?

Upvotes: 1

Views: 6382

Answers (1)

user330315
user330315

Reputation:

According to the Oracle JavaDocs this is oracle.jdbc.OracleTypes.CURSOR

The class is defined public, so it is accessible.

The following code compiles fine:

public class OracleTest
{
  public static void main(String[] args)
  {
    System.out.println("CURSOR is: " + oracle.jdbc.OracleTypes.CURSOR);
  }
}

And prints:

CURSOR is: -10

Upvotes: 2

Related Questions