|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Platform
Interface for RDBMS platform specific behaviour.
Field Summary | |
---|---|
static String |
IDENTITY
constant for native id method |
static String |
SEQUENCE
constant for native id method |
Method Summary | |
---|---|
boolean |
createNotNullBeforeAutoincrement()
Returns whether the "not null part" of the definition of a column should be generated before the "autoincrement part" in a "create table" statement. |
String |
filterInvalidDefaultValues(String defaultValue)
|
String |
getAutoIncrement()
|
Domain |
getDomainForSchemaType(SchemaType jdbcType)
Returns the db specific domain for a jdbcType. |
int |
getMaxColumnNameLength()
Returns the max column length supported by the db. |
String |
getNativeIdMethod()
Returns the native IdMethod (sequence|identity) |
String |
getNullString(boolean notNull)
|
List<String> |
getPrimaryKeys(DatabaseMetaData dbMeta,
String dbSchema,
String tableName)
|
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)
|
String |
getServerUrl(String url)
Given a JDBC url return a url that can connect directly to the database server itself. |
List<String> |
getTableNames(DatabaseMetaData dbMeta,
String databaseSchema)
|
String |
getViewDefinition(Connection con,
String schema,
String viewName)
|
boolean |
hasScale(String sqlType)
Returns if the RDBMS-specific SQL type has a scale attribute. |
boolean |
hasSize(String sqlType)
Returns if the RDBMS-specific SQL type has a size attribute. |
boolean |
isSpecialDefault(String defaultValue)
|
Field Detail |
---|
static final String IDENTITY
static final String SEQUENCE
Method Detail |
---|
String getServerUrl(String url)
String getSchemaName(String artifactId)
String getNativeIdMethod()
int getMaxColumnNameLength()
Domain getDomainForSchemaType(SchemaType jdbcType)
jdbcType
- the jdbcType name
String getNullString(boolean notNull)
NULL
or NOT NULL
.String getAutoIncrement()
boolean hasSize(String sqlType)
sqlType
- the SQL type
boolean hasScale(String sqlType)
sqlType
- the SQL type
boolean createNotNullBeforeAutoincrement()
String filterInvalidDefaultValues(String defaultValue)
boolean isSpecialDefault(String defaultValue)
String getViewDefinition(Connection con, String schema, String viewName)
Long getSequenceNextVal(Connection con, String schema, String sequenceName)
List<String> getPrimaryKeys(DatabaseMetaData dbMeta, String dbSchema, String tableName) throws SQLException
SQLException
List<String> getTableNames(DatabaseMetaData dbMeta, String databaseSchema) throws SQLException
SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |