Class Oracle10Platform

  • All Implemented Interfaces:
    Serializable, Cloneable, org.eclipse.persistence.internal.core.databaseaccess.CorePlatform<org.eclipse.persistence.internal.helper.ConversionManager>, org.eclipse.persistence.internal.databaseaccess.Platform
    Direct Known Subclasses:
    Oracle11Platform

    public class Oracle10Platform
    extends Oracle9Platform

    Purpose: Supports usage of certain Oracle JDBC specific APIs.

    See Also:
    Serialized Form
    • Constructor Detail

      • Oracle10Platform

        public Oracle10Platform()
    • Method Detail

      • buildFirstRowsHint

        protected String buildFirstRowsHint​(int max)
        Build the hint string used for first rows. Allows it to be overridden
        Overrides:
        buildFirstRowsHint in class Oracle9Platform
        Parameters:
        max -
        Returns:
      • executeBatch

        public int executeBatch​(Statement statement,
                                boolean isStatementPrepared)
                         throws SQLException
        Internal: This gets called on each batch statement execution Needs to be implemented so that it returns the number of rows successfully modified by this statement for optimistic locking purposes (if useNativeBatchWriting is enabled, and the call uses optimistic locking).
        Overrides:
        executeBatch in class Oracle9Platform
        Parameters:
        isStatementPrepared - - flag is set to true if this statement is prepared
        Returns:
        - number of rows modified/deleted by this statement
        Throws:
        SQLException
      • isNativeConnectionRequiredForLobLocator

        public boolean isNativeConnectionRequiredForLobLocator()
        INTERNAL: Indicate whether app. server should unwrap connection to use lob locator. No need to unwrap connection because writeLob method doesn't use oracle proprietary classes.
        Overrides:
        isNativeConnectionRequiredForLobLocator in class Oracle8Platform
      • canBatchWriteWithOptimisticLocking

        public boolean canBatchWriteWithOptimisticLocking​(org.eclipse.persistence.internal.databaseaccess.DatabaseCall call)
        INTERNAL: Supports Batch Writing with Optimistic Locking.
        Overrides:
        canBatchWriteWithOptimisticLocking in class org.eclipse.persistence.internal.databaseaccess.DatabasePlatform