|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.engine.platform.PlatformDefaultImpl
org.apache.torque.engine.platform.PlatformOracleImpl
public class PlatformOracleImpl
Oracle Platform implementation.
| Field Summary |
|---|
| Fields inherited from interface org.apache.torque.engine.platform.Platform |
|---|
IDENTITY, SEQUENCE |
| Constructor Summary | |
|---|---|
PlatformOracleImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
String |
getAutoIncrement()
|
int |
getMaxColumnNameLength()
Returns the max column length supported by the db. |
String |
getNativeIdMethod()
Returns the native IdMethod (sequence|identity) |
List<String> |
getPrimaryKeys(DatabaseMetaData dbMeta,
String dbSchema,
String tableName)
Retrieves a list of the columns composing the primary key for a given table. |
String |
getSchemaName(String artifactId)
Given an artifact id, return a string a schema name based on the artifact id that is allowed by the db vendor |
Long |
getSequenceNextVal(Connection con,
String schema,
String sequenceName)
|
List<String> |
getTableNames(DatabaseMetaData dbMeta,
String databaseSchema)
Get all the table names in the current database that are not system tables. |
String |
getViewDefinition(Connection con,
String schema,
String viewName)
|
boolean |
isSpecialDefault(String defaultValue)
|
| Methods inherited from class org.apache.torque.engine.platform.PlatformDefaultImpl |
|---|
createNotNullBeforeAutoincrement, filterInvalidDefaultValues, getDomainForSchemaType, getNullString, getSequenceNames, getServerUrl, getTableNames, hasScale, hasSize, setSchemaDomainMapping |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlatformOracleImpl()
| Method Detail |
|---|
public String getSchemaName(String artifactId)
Platform
getSchemaName in interface PlatformgetSchemaName in class PlatformDefaultImplpublic int getMaxColumnNameLength()
Platform
getMaxColumnNameLength in interface PlatformgetMaxColumnNameLength in class PlatformDefaultImplPlatform.getMaxColumnNameLength()public String getNativeIdMethod()
Platform
getNativeIdMethod in interface PlatformgetNativeIdMethod in class PlatformDefaultImplPlatform.getNativeIdMethod()public String getAutoIncrement()
getAutoIncrement in interface PlatformgetAutoIncrement in class PlatformDefaultImplPlatform.getAutoIncrement()
public List<String> getPrimaryKeys(DatabaseMetaData dbMeta,
String dbSchema,
String tableName)
throws SQLException
PlatformDefaultImpl
getPrimaryKeys in interface PlatformgetPrimaryKeys in class PlatformDefaultImpldbMeta - JDBC metadata.tableName - Table from which to retrieve PK information.
tableName.
SQLException
public List<String> getTableNames(DatabaseMetaData dbMeta,
String databaseSchema)
throws SQLException
PlatformDefaultImpl
getTableNames in interface PlatformgetTableNames in class PlatformDefaultImpldbMeta - JDBC database metadata.
SQLExceptionpublic boolean isSpecialDefault(String defaultValue)
isSpecialDefault in interface PlatformisSpecialDefault in class PlatformDefaultImpl
public Long getSequenceNextVal(Connection con,
String schema,
String sequenceName)
getSequenceNextVal in interface PlatformgetSequenceNextVal in class PlatformDefaultImpl
public String getViewDefinition(Connection con,
String schema,
String viewName)
getViewDefinition in interface PlatformgetViewDefinition in class PlatformDefaultImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||