| java.lang.Object org.apache.ojb.broker.platforms.PlatformDefaultImpl org.apache.ojb.broker.platforms.PlatformOracleImpl
All known Subclasses: org.apache.ojb.broker.platforms.PlatformOracle9iImpl, org.apache.ojb.broker.platforms.PlatformWLOracle9iImpl,
PlatformOracleImpl | public class PlatformOracleImpl extends PlatformDefaultImpl (Code) | | This class is a concrete implementation of Platform . Provides an implementation
that works around some issues with Oracle in general and Oracle's Thin driver in particular.
Many of the database sequence specific properties can be specified using
custom attributes within the sequence-manager element.
The database sequence specific properties are generally speaking, see database user guide
for detailed description.
Implementation configuration properties:
Property Key |
Property Values |
sequenceStart |
DEPRECATED. Database sequence specific property.
Specifies the first sequence number to be
generated. Allowed: 1 or greater.
|
seq.start |
Database sequence specific property.
Specifies the first sequence number to be
generated. Allowed: 1 or greater.
|
seq.incrementBy |
Database sequence specific property.
Specifies the interval between sequence numbers.
This value can be any positive or negative
integer, but it cannot be 0.
|
seq.maxValue |
Database sequence specific property.
Set max value for sequence numbers.
|
seq.minValue |
Database sequence specific property.
Set min value for sequence numbers.
|
seq.cycle |
Database sequence specific property.
If true, specifies that the sequence continues to generate
values after reaching either its maximum or minimum value.
If false, specifies that the sequence cannot generate more values after
reaching its maximum or minimum value.
|
seq.cache |
Database sequence specific property.
Specifies how many values of the sequence Oracle
preallocates and keeps in memory for faster access.
Allowed values: 2 or greater. If set 0,
an explicite nocache expression will be set.
|
seq.order |
Database sequence specific property.
If set true, guarantees that sequence numbers
are generated in order of request.
If false, a no order expression will be set.
|
author: Thomas Mahler version: $Id: PlatformOracleImpl.java,v 1.20.2.4 2005/08/16 20:11:19 arminw Exp $ |
THIN_BLOB_MAX_SIZE | final protected static int THIN_BLOB_MAX_SIZE(Code) | | |
THIN_CLOB_MAX_SIZE | final protected static int THIN_CLOB_MAX_SIZE(Code) | | |
THIN_URL_PREFIX | final protected static String THIN_URL_PREFIX(Code) | | |
PlatformOracleImpl | public PlatformOracleImpl()(Code) | | Default constructor.
|
afterStatementCreate | public void afterStatementCreate(Statement stmt) throws PlatformException(Code) | | In Oracle we set escape processing explizit 'true' after a statement was created.
|
changePreparedStatementResultSetType | protected void changePreparedStatementResultSetType(PreparedStatement ps)(Code) | | Attempts to modify a private member in the Oracle thin driver's resultset to allow proper
setting of large binary streams.
|
getJoinSyntaxType | public byte getJoinSyntaxType()(Code) | | Get join syntax type for this RDBMS - one on of the constants from JoinSyntaxType interface
|
initOracleReflectedVars | protected void initOracleReflectedVars()(Code) | | Initializes static variables needed for getting Oracle-specific JDBC types.
|
isUsingOracleThinDriver | protected static boolean isUsingOracleThinDriver(Connection conn)(Code) | | Checks if the supplied connection is using the Oracle thin driver.
Parameters: conn - database connection for which to check JDBC-driver true if the connection is using Oracle thin driver, false otherwise. |
setObjectForStatement | public void setObjectForStatement(PreparedStatement ps, int index, Object value, int sqlType) throws SQLException(Code) | | For objects beyond 4k, weird things happen in Oracle if you try to use "setBytes", so for
all cases it's better to use setBinaryStream. Oracle also requires a change in the resultset
type of the prepared statement. MBAIRD NOTE: BLOBS may not work with Oracle database/thin
driver versions prior to 8.1.6.
See Also: Platform.setObjectForStatement |
Methods inherited from org.apache.ojb.broker.platforms.PlatformDefaultImpl | public void addBatch(PreparedStatement stmt) throws PlatformException(Code)(Java Doc) public void addPagingSql(StringBuffer anSqlString)(Code)(Java Doc) public void afterStatementClose(Statement stmt, ResultSet rs) throws PlatformException(Code)(Java Doc) public void afterStatementCreate(Statement stmt) throws PlatformException(Code)(Java Doc) public void beforeBatch(PreparedStatement stmt) throws PlatformException(Code)(Java Doc) public void beforeStatementClose(Statement stmt, ResultSet rs) throws PlatformException(Code)(Java Doc) public int bindPagingParameters(PreparedStatement ps, int index, int startAt, int endAt) throws SQLException(Code)(Java Doc) public boolean bindPagingParametersFirst()(Code)(Java Doc) public void changeAutoCommitState(JdbcConnectionDescriptor jcd, Connection con, boolean newState)(Code)(Java Doc) protected void checkForBatchSupport(Connection conn)(Code)(Java Doc) public String concatenate(String[] theColumns)(Code)(Java Doc) public String createSequenceQuery(String sequenceName, Properties prop)(Code)(Java Doc) public String createSequenceQuery(String sequenceName)(Code)(Java Doc) public String dropSequenceQuery(String sequenceName)(Code)(Java Doc) public int[] executeBatch(PreparedStatement stmt) throws PlatformException(Code)(Java Doc) protected String getConcatenationCharacter()(Code)(Java Doc) public String getEscapeClause(LikeCriteria aCriteria)(Code)(Java Doc) public byte getJoinSyntaxType()(Code)(Java Doc) public String getLastInsertIdentityQuery(String tableName)(Code)(Java Doc) public void initializeJdbcConnection(JdbcConnectionDescriptor jcd, Connection conn) throws PlatformException(Code)(Java Doc) public String nextSequenceQuery(String sequenceName)(Code)(Java Doc) public CallableStatement prepareNextValProcedureStatement(Connection con, String procedureName, String sequenceName) throws PlatformException(Code)(Java Doc) public void registerOutResultSet(CallableStatement stmt, int position) throws SQLException(Code)(Java Doc) public void setNullForStatement(PreparedStatement ps, int index, int sqlType) throws SQLException(Code)(Java Doc) public void setObjectForStatement(PreparedStatement ps, int index, Object value, int sqlType) throws SQLException(Code)(Java Doc) public boolean supportsBatchOperations()(Code)(Java Doc) public boolean supportsMultiColumnCountDistinct()(Code)(Java Doc) public boolean supportsPaging()(Code)(Java Doc) public boolean useCountForResultsetSize()(Code)(Java Doc)
|
|
|