java.lang.Object
java.lang.Enum<OraclePLSQLTypes>
org.eclipse.persistence.platform.database.oracle.plsql.OraclePLSQLTypes
All Implemented Interfaces:
Serializable, Comparable<OraclePLSQLTypes>, org.eclipse.persistence.internal.helper.DatabaseType, org.eclipse.persistence.internal.helper.SimpleDatabaseType, OraclePLSQLType

public enum OraclePLSQLTypes extends Enum<OraclePLSQLTypes> implements org.eclipse.persistence.internal.helper.SimpleDatabaseType, OraclePLSQLType
PUBLIC: Oracle PL/SQL types
Author:
Mike Norman - michael.norman@oracle.com
  • Enum Constant Details

  • Method Details

    • values

      public static OraclePLSQLTypes[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static OraclePLSQLTypes valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • isComplexDatabaseType

      public boolean isComplexDatabaseType()
      Specified by:
      isComplexDatabaseType in interface org.eclipse.persistence.internal.helper.DatabaseType
    • getSqlCode

      public int getSqlCode()
      Specified by:
      getSqlCode in interface org.eclipse.persistence.internal.helper.DatabaseType
    • getConversionCode

      public int getConversionCode()
      Specified by:
      getConversionCode in interface org.eclipse.persistence.internal.helper.DatabaseType
    • getTypeName

      public String getTypeName()
      Specified by:
      getTypeName in interface org.eclipse.persistence.internal.helper.DatabaseType
    • isJDBCType

      public boolean isJDBCType()
      Specified by:
      isJDBCType in interface org.eclipse.persistence.internal.helper.DatabaseType
    • computeInIndex

      public int computeInIndex(PLSQLargument inArg, int newIndex, ListIterator<PLSQLargument> i)
      INTERNAL: Return the parameter index for the IN parameter.
      Specified by:
      computeInIndex in interface org.eclipse.persistence.internal.helper.DatabaseType
    • computeOutIndex

      public int computeOutIndex(PLSQLargument outArg, int newIndex, ListIterator<PLSQLargument> i)
      INTERNAL: Return the parameter index for the OUT parameter.
      Specified by:
      computeOutIndex in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildInDeclare

      public void buildInDeclare(StringBuilder sb, PLSQLargument inArg)
      INTERNAL: Append the variable declaration for the type.
      Specified by:
      buildInDeclare in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildOutDeclare

      public void buildOutDeclare(StringBuilder sb, PLSQLargument outArg)
      INTERNAL: Append the variable declaration for the type.
      Specified by:
      buildOutDeclare in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildBeginBlock

      public void buildBeginBlock(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
      INTERNAL: Append any code or translation required for the type.
      Specified by:
      buildBeginBlock in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildOutAssignment

      public void buildOutAssignment(StringBuilder sb, PLSQLargument arg, PLSQLStoredProcedureCall call)
      INTERNAL: Append any code or translation for assigning the output value.
      Specified by:
      buildOutAssignment in interface org.eclipse.persistence.internal.helper.DatabaseType
    • translate

      public void translate(PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, org.eclipse.persistence.internal.sessions.AbstractRecord copyOfTranslationRow, List<org.eclipse.persistence.internal.helper.DatabaseField> copyOfTranslationFields, List<org.eclipse.persistence.internal.helper.DatabaseField> translationRowFields, List translationRowValues, StoredProcedureCall call)
      INTERNAL: Translate the argument value from the query translation row to call translation row.
      Specified by:
      translate in interface org.eclipse.persistence.internal.helper.DatabaseType
    • buildOutputRow

      public void buildOutputRow(PLSQLargument outArg, org.eclipse.persistence.internal.sessions.AbstractRecord outputRow, DatabaseRecord newOutputRow, List<org.eclipse.persistence.internal.helper.DatabaseField> outputRowFields, List outputRowValues)
      INTERNAL: Build the query output row from the call output row.
      Specified by:
      buildOutputRow in interface org.eclipse.persistence.internal.helper.DatabaseType
    • logParameter

      @Deprecated public void logParameter(StringBuilder sb, Integer direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform)
      Deprecated.
      INTERNAL: Append the parameter for logging purposes.
      Specified by:
      logParameter in interface org.eclipse.persistence.internal.helper.DatabaseType
    • logParameter

      public void logParameter(StringBuilder sb, org.eclipse.persistence.internal.databaseaccess.DatasourceCall.ParameterType direction, PLSQLargument arg, org.eclipse.persistence.internal.sessions.AbstractRecord translationRow, DatabasePlatform platform)
      INTERNAL: Append the parameter for logging purposes.
      Specified by:
      logParameter in interface org.eclipse.persistence.internal.helper.DatabaseType
    • getDatabaseTypeForCode

      public static org.eclipse.persistence.internal.helper.DatabaseType getDatabaseTypeForCode(String typeName)