org.apache.cayenne.dba.oracle

## Class Oracle8Adapter

- java.lang.Object
- - org.apache.cayenne.dba.JdbcAdapter
  - - org.apache.cayenne.dba.oracle.OracleAdapter
    - - org.apache.cayenne.dba.oracle.Oracle8Adapter

- All Implemented Interfaces:
    DbAdapter

      public class Oracle8Adapter
      extends OracleAdapter

  A flavor of OracleAdapter that implements workarounds for some old driver limitations.
  Since:
    1.2

- - ### Field Summary

    - ### Fields inherited from class org.apache.cayenne.dba.oracle.OracleAdapter

      `initDone, NEW_BLOB_FUNCTION, NEW_CLOB_FUNCTION, ORACLE_BLOB, ORACLE_CLOB, ORACLE_FLOAT, ORACLE_NCLOB, oracleCursorType, supportsOracleLOB, TRIM_FUNCTION`

    - ### Fields inherited from class org.apache.cayenne.dba.JdbcAdapter

      `batchQueryBuilderFactory, caseInsensitiveCollations, ejbqlTranslatorFactory, extendedTypes, logger, quotingStrategy, resourceLocator, supportsBatchUpdates, supportsGeneratedKeys, supportsUniqueConstraints, typesHandler`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Oracle8Adapter(RuntimeProperties runtimeProperties, List<ExtendedType> defaultExtendedTypes, List<ExtendedType> userExtendedTypes, List<ExtendedTypeFactory> extendedTypeFactories, ResourceLocator resourceLocator, ValueObjectTypeRegistry valueObjectTypeRegistry)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected URL` | `findResource(String name)` Locates and returns a named adapter resource.
    `SQLAction` | `getAction(Query query, DataNode node)` Uses OracleActionBuilder to create the right action.
    `QualifierTranslator` | `getQualifierTranslator(QueryAssembler queryAssembler)` Returns a trimming translator.
    `SelectTranslator` | `getSelectTranslator(SelectQuery<?> query, EntityResolver entityResolver)` Returns a SelectTranslator that works with the adapter target database.

    - ### Methods inherited from class org.apache.cayenne.dba.oracle.OracleAdapter

      `bindParameter, buildAttribute, configureExtendedTypes, createEJBQLTranslatorFactory, createPkGenerator, dropTableStatements, getOracleCursorType, initDriverInformation, isSupportsOracleLOB`

    - ### Methods inherited from class org.apache.cayenne.dba.JdbcAdapter

      `createFkConstraint, createQuotingStrategy, createTable, createTableAppendColumn, createTableAppendPKClause, createUniqueConstraint, externalTypesForJdbcType, getBatchQueryBuilderFactory, getBatchTerminator, getEjbqlTranslatorFactory, getExtendedTypes, getJdbcEventLogger, getPkGenerator, getQuotingStrategy, getQuotingStrategy, getType, initExtendedTypes, setBatchQueryBuilderFactory, setEjbqlTranslatorFactory, setPkGenerator, setSupportsBatchUpdates, setSupportsGeneratedKeys, setSupportsUniqueConstraints, sizeAndPrecision, supportsBatchUpdates, supportsCatalogsOnReverseEngineering, supportsGeneratedKeys, supportsUniqueConstraints, tableTypeForTable, tableTypeForView, typeSupportsLength, unwrap`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Oracle8Adapter

          public Oracle8Adapter(RuntimeProperties runtimeProperties,
                                List<ExtendedType> defaultExtendedTypes,
                                List<ExtendedType> userExtendedTypes,
                                List<ExtendedTypeFactory> extendedTypeFactories,
                                ResourceLocator resourceLocator,
                                ValueObjectTypeRegistry valueObjectTypeRegistry)

  - ### Method Detail

    - #### getSelectTranslator

          public SelectTranslator getSelectTranslator(SelectQuery<?> query,
                                                      EntityResolver entityResolver)

      Description copied from interface: `DbAdapter`
      Returns a SelectTranslator that works with the adapter target database.
      Specified by:
        `getSelectTranslator` in interface `DbAdapter`
      Overrides:
        `getSelectTranslator` in class `OracleAdapter`
      Since:
        4.0

    - #### getAction

          public SQLAction getAction(Query query,
                                     DataNode node)

      Uses OracleActionBuilder to create the right action.
      Specified by:
        `getAction` in interface `DbAdapter`
      Overrides:
        `getAction` in class `OracleAdapter`

    - #### findResource

          protected URL findResource(String name)

      Description copied from class: `JdbcAdapter`
      Locates and returns a named adapter resource. A resource can be an XML file, etc.

      This implementation is based on the premise that each adapter is located in its own Java package and all resources are in the same package as well. Resource lookup is recursive, so that if DbAdapter is a subclass of another adapter, parent adapter package is searched as a failover.

      Overrides:
        `findResource` in class `JdbcAdapter`

    - #### getQualifierTranslator

          public QualifierTranslator getQualifierTranslator(QueryAssembler queryAssembler)

      Description copied from class: `OracleAdapter`
      Returns a trimming translator.
      Specified by:
        `getQualifierTranslator` in interface `DbAdapter`
      Overrides:
        `getQualifierTranslator` in class `OracleAdapter`

Copyright © 2001–2023 Apache Cayenne. All rights reserved.