Package oracle.jdbc
Enum Class OracleTranslatingConnection.SqlTranslationVersion
java.lang.Object
java.lang.Enum<OracleTranslatingConnection.SqlTranslationVersion>
oracle.jdbc.OracleTranslatingConnection.SqlTranslationVersion
- All Implemented Interfaces:
Serializable,Comparable<OracleTranslatingConnection.SqlTranslationVersion>,Constable
- Enclosing interface:
- OracleTranslatingConnection
public static enum OracleTranslatingConnection.SqlTranslationVersion
extends Enum<OracleTranslatingConnection.SqlTranslationVersion>
Enumeration of various Translation versions of a query.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJDBC parameter markers ('?') replaced with Oracle style parameter markers (':b<n>').Original vendor specific sql.The translated query returned from the server. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ORIGINAL_SQL
Original vendor specific sql. -
JDBC_MARKER_CONVERTED
JDBC parameter markers ('?') replaced with Oracle style parameter markers (':b<n>'). So consecutive '?'s will be converted to :b1, :b2, :b3 ... and so on. This change is required to take care of any changes in the order of parameters during translation. This version is sent to the server for translation so any custom translations on the server must be registered from this version and not the ORIGINAL_SQL version. -
TRANSLATED
The translated query returned from the server.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-