|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.modello.generator.database.type.TypeMapping
public class TypeMapping
Associates an SQL type with its JDBC mapping
Constructor Summary | |
---|---|
TypeMapping()
Construct a new TypeMapping |
|
TypeMapping(Type type,
Mapping mapping)
Construct a new TypeMapping |
Method Summary | |
---|---|
java.lang.String |
getFormat()
Returns the format of the type |
Mapping |
getMapping()
Returns the JDBC mapping of the type |
short |
getMaximumScale()
Returns the maximum scale of the type |
short |
getMinimumScale()
Returns the minimum scale of the type |
java.lang.String |
getName()
Returns the JBDC name of the type |
long |
getSize()
Returns the maximum size (length or precision) of the type |
java.lang.String |
getSQLName()
Returns the SQL type name |
java.lang.String |
getSQLType(Column column)
Returns the SQL type for a column |
Type |
getType()
Returns the SQL type |
void |
setMapping(Mapping mapping)
Sets the JDBC mapping of the type |
void |
setType(Type type)
Sets the SQL type |
java.lang.String |
toString()
Helper to return a stringified version of the object, for debug purposes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypeMapping()
TypeMapping
public TypeMapping(Type type, Mapping mapping)
TypeMapping
Method Detail |
---|
public Type getType()
public void setType(Type type)
public Mapping getMapping()
public void setMapping(Mapping mapping)
public java.lang.String getName()
public java.lang.String getSQLName()
public long getSize()
public short getMinimumScale()
public short getMaximumScale()
public java.lang.String getFormat()
public java.lang.String getSQLType(Column column)
column
- the column
column
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |