|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.engine.platform.PlatformDefaultImpl
public class PlatformDefaultImpl
Default implementation for the Platform interface.
| Field Summary |
|---|
| Fields inherited from interface org.apache.torque.engine.platform.Platform |
|---|
IDENTITY, SEQUENCE |
| Constructor Summary | |
|---|---|
PlatformDefaultImpl()
Default constructor. |
|
| 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. |
java.lang.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. |
java.lang.String |
getNativeIdMethod()
Returns the native IdMethod (sequence|identity) |
java.lang.String |
getNullString(boolean notNull)
|
boolean |
hasScale(java.lang.String sqlType)
Returns if the RDBMS-specific SQL type has a scale attribute. |
boolean |
hasSize(java.lang.String sqlType)
Returns if the RDBMS-specific SQL type has a size attribute. |
protected void |
setSchemaDomainMapping(Domain domain)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlatformDefaultImpl()
| Method Detail |
|---|
protected void setSchemaDomainMapping(Domain domain)
public int getMaxColumnNameLength()
Platform
getMaxColumnNameLength in interface PlatformPlatform.getMaxColumnNameLength()public java.lang.String getNativeIdMethod()
Platform
getNativeIdMethod in interface PlatformPlatform.getNativeIdMethod()public Domain getDomainForSchemaType(SchemaType jdbcType)
Platform
getDomainForSchemaType in interface PlatformjdbcType - the jdbcType name
Platform.getDomainForSchemaType(SchemaType)public java.lang.String getNullString(boolean notNull)
getNullString in interface PlatformPlatform.getNullString(boolean)public java.lang.String getAutoIncrement()
getAutoIncrement in interface PlatformPlatform.getAutoIncrement()public boolean hasScale(java.lang.String sqlType)
Platform
hasScale in interface PlatformsqlType - the SQL type
TODO collect info for all platformspublic boolean hasSize(java.lang.String sqlType)
Platform
hasSize in interface PlatformsqlType - the SQL type
TODO collect info for all platformspublic boolean createNotNullBeforeAutoincrement()
Platform
createNotNullBeforeAutoincrement in interface PlatformPlatform.createNotNullBeforeAutoincrement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||