com.metamatrix.common.jdbc.db
Class OraclePlatform

java.lang.Object
  extended by com.metamatrix.common.jdbc.JDBCPlatform
      extended by com.metamatrix.common.jdbc.db.OraclePlatform
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
MMOraclePlatform, MMOracleSecurePlatform

public class OraclePlatform
extends JDBCPlatform

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.metamatrix.common.jdbc.JDBCPlatform
JDBCPlatform.TableTypes
 
Field Summary
 
Fields inherited from class com.metamatrix.common.jdbc.JDBCPlatform
AND, classTypes, COMMA, DELETE_FROM, DISTINCT, EQUAL, fieldTypes, FROM, GROUP_BY, IN, INSERT_INTO, INTO, isSecure, LENGTH, maximumValues, minimumValues, ON, ORDER_BY, PARAM, PERIOD, platformOperators, SELECT, SET, SPACE, tableTypes, UPDATE, usesStreamsForBlobBinding, usesStreamsForClobBinding, VALUES, WHERE
 
Constructor Summary
OraclePlatform()
           
 
Method Summary
protected  java.util.Map buildFieldTypes()
           
protected  java.util.Map buildPlatformOperators()
           
 java.lang.String createInsertStatement(Table tableMetadata)
          This will create an insert statement that can be used to insert rows using a PreparedStatement.
 int getMaxFieldNameSize()
          INTERNAL: returns the maximum number of characters that can be used in a field name on this platform.
 boolean isClosed(java.sql.Connection connection)
           
 boolean isDefault()
           
 boolean isOracle()
           
 java.util.Map maximumNumericValues()
          Builds a table of maximum numeric values keyed on java class.
 java.util.Map minimumNumericValues()
          Builds a table of minimum numeric values keyed on java class.
 int setBlob(java.sql.ResultSet results, byte[] data, java.lang.String columnName)
           
 
Methods inherited from class com.metamatrix.common.jdbc.JDBCPlatform
addOperator, buildClassTypes, buildCommaSeperatedColumns, buildSetParmClause, buildWhereParameterClause, buildWhereUsingUiqueKeys, convertClobToByteArray, convertToByteArray, convertToByteArray, convertToByteArray, createDeleteStatement, createDeleteStatement, createDeleteStatement, createInsertStatement, createInsertStatement, createSelectStatement, createSelectStatement, createSelectStatement, createTruncateStatement, createTruncateStatement, createUpdateStatement, createUpdateStatement, getClassTypes, getDatabaseColumnSize, getFieldTypes, getMaximumValue, getMinimumValue, getNonExecutableDelimiters, getOperator, getPlatformName, getPlatformOperators, getTableTypes, isDB2, isDerby, isInformix, isMetaMatrix, isMSSQL, isMYSQL, isPostgres, isSecure, isSybase, parseToExecutableStatements, setBlob, setClob, setClob, setClob, setConnection, setIsSecure, setPlatformName, usesStreamsForBlobBinding, usesStreamsForClobBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OraclePlatform

public OraclePlatform()
Method Detail

isOracle

public boolean isOracle()
Overrides:
isOracle in class JDBCPlatform

getMaxFieldNameSize

public int getMaxFieldNameSize()
INTERNAL: returns the maximum number of characters that can be used in a field name on this platform.

Overrides:
getMaxFieldNameSize in class JDBCPlatform

buildFieldTypes

protected java.util.Map buildFieldTypes()
Overrides:
buildFieldTypes in class JDBCPlatform

buildPlatformOperators

protected java.util.Map buildPlatformOperators()
Overrides:
buildPlatformOperators in class JDBCPlatform

maximumNumericValues

public java.util.Map maximumNumericValues()
Builds a table of maximum numeric values keyed on java class. This is used for type testing but might also be useful to end users attempting to sanitize values.

NOTE: BigInteger & BigDecimal maximums are dependent upon their precision & Scale

Overrides:
maximumNumericValues in class JDBCPlatform

minimumNumericValues

public java.util.Map minimumNumericValues()
Builds a table of minimum numeric values keyed on java class. This is used for type testing but might also be useful to end users attempting to sanitize values.

NOTE: BigInteger & BigDecimal minimums are dependent upon their precision & Scale

Overrides:
minimumNumericValues in class JDBCPlatform

isClosed

public boolean isClosed(java.sql.Connection connection)
Overrides:
isClosed in class JDBCPlatform

setBlob

public int setBlob(java.sql.ResultSet results,
                   byte[] data,
                   java.lang.String columnName)
            throws java.sql.SQLException,
                   java.io.IOException
Overrides:
setBlob in class JDBCPlatform
Throws:
java.sql.SQLException
java.io.IOException

createInsertStatement

public java.lang.String createInsertStatement(Table tableMetadata)
This will create an insert statement that can be used to insert rows using a PreparedStatement. This method override its parent to handle the Blob specialized for Oracle platform.

Overrides:
createInsertStatement in class JDBCPlatform
Parameters:
tableMetadata - the definition of the table in which records are to be updated; may not be null;

isDefault

public boolean isDefault()
Overrides:
isDefault in class JDBCPlatform


Copyright © 2009. All Rights Reserved.