|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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)
|
SqlProducer |
getSqlProducer()
|
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 Platform
getSchemaName
in class PlatformDefaultImpl
public int getMaxColumnNameLength()
Platform
getMaxColumnNameLength
in interface Platform
getMaxColumnNameLength
in class PlatformDefaultImpl
Platform.getMaxColumnNameLength()
public String getNativeIdMethod()
Platform
getNativeIdMethod
in interface Platform
getNativeIdMethod
in class PlatformDefaultImpl
Platform.getNativeIdMethod()
public String getAutoIncrement()
getAutoIncrement
in interface Platform
getAutoIncrement
in class PlatformDefaultImpl
Platform.getAutoIncrement()
public List<String> getPrimaryKeys(DatabaseMetaData dbMeta, String dbSchema, String tableName) throws SQLException
PlatformDefaultImpl
getPrimaryKeys
in interface Platform
getPrimaryKeys
in class PlatformDefaultImpl
dbMeta
- 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 Platform
getTableNames
in class PlatformDefaultImpl
dbMeta
- JDBC database metadata.
SQLException
public boolean isSpecialDefault(String defaultValue)
isSpecialDefault
in interface Platform
isSpecialDefault
in class PlatformDefaultImpl
public Long getSequenceNextVal(Connection con, String schema, String sequenceName)
getSequenceNextVal
in interface Platform
getSequenceNextVal
in class PlatformDefaultImpl
public String getViewDefinition(Connection con, String schema, String viewName)
getViewDefinition
in interface Platform
getViewDefinition
in class PlatformDefaultImpl
public SqlProducer getSqlProducer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |