|
||||||||||
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
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 Platform
Platform.getMaxColumnNameLength()
public java.lang.String getNativeIdMethod()
Platform
getNativeIdMethod
in interface Platform
Platform.getNativeIdMethod()
public Domain getDomainForSchemaType(SchemaType jdbcType)
Platform
getDomainForSchemaType
in interface Platform
jdbcType
- the jdbcType name
Platform.getDomainForSchemaType(SchemaType)
public java.lang.String getNullString(boolean notNull)
getNullString
in interface Platform
Platform.getNullString(boolean)
public java.lang.String getAutoIncrement()
getAutoIncrement
in interface Platform
Platform.getAutoIncrement()
public boolean hasScale(java.lang.String sqlType)
Platform
hasScale
in interface Platform
sqlType
- the SQL type
TODO collect info for all platforms
public boolean hasSize(java.lang.String sqlType)
Platform
hasSize
in interface Platform
sqlType
- the SQL type
TODO collect info for all platforms
public boolean createNotNullBeforeAutoincrement()
Platform
createNotNullBeforeAutoincrement
in interface Platform
Platform.createNotNullBeforeAutoincrement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |