|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.kodo.impl.jdbc.schema.dict.SQLTypeMap
Maps of java types to their SQL counterparts for a particular database. The default mappings are as follows:
SQLTypes.STRING: VARCHAR(255)SQLTypes.CLOB: CLOBSQLTypes.LENSTRING: VARCHAR(length)SQLTypes.BOOLEAN: TINYINTSQLTypes.BYTE: SMALLINTSQLTypes.CHARACTER: CHAR(1)SQLTypes.DOUBLE: DOUBLESQLTypes.FLOAT: REALSQLTypes.INTEGER: INTEGERSQLTypes.LONG: BIGINTSQLTypes.SHORT: SMALLINTSQLTypes.DATE: TIMESTAMPSQLTypes.BLOB: BLOBSQLTypes.BIGINTEGER: BIGINTSQLTypes.BIGDECIMAL: DECIMALSQLTypes.LOCALE: VARCHAR(50)
| Constructor Summary | |
|---|---|
SQLTypeMap()
Constructor. |
|
| Method Summary | |
|---|---|
String |
getBigDecimalType()
Return the SQL type for java.math.BigDecimals. |
String |
getBigIntegerType()
Return the SQL type for java.math.BigIntegers. |
String |
getBlobType()
Return the SQL type for binary objects. |
String |
getBooleanType()
Return the SQL type for booleans. |
String |
getByteType()
Return the SQL type for bytes. |
String |
getCharType()
Return the SQL type for chars. |
String |
getClobType()
Return the SQL type for unlimited length Strings. |
String |
getDateType()
Return the SQL type for Dates. |
String |
getDefaultStringType()
Return the SQL type for default length Strings. |
String |
getDoubleType()
Return the SQL type for doubles. |
String |
getFloatType()
Return the SQL type for floats. |
String |
getIntType()
Return the SQL type for ints. |
String |
getLenStringType()
Return the SQL type for limited length Strings. |
String |
getLocaleType()
Return the SQL type for java.util.Locales. |
String |
getLongType()
Return the SQL type for longs. |
String |
getShortType()
Return the SQL type for shorts. |
String |
getStringType()
Return the SQL type for limited length Strings. |
String |
getType(int constant)
Return the SQL column type for the given symbolic constant type. |
String |
getType(int constant,
int length)
Return the SQL column type for the given symbolic constant type. |
void |
setBigDecimalType(String type)
Set the SQL type for java.math.BigDecimals. |
void |
setBigIntegerType(String type)
Set the SQL type for java.math.BigIntegers. |
void |
setBlobType(String type)
Set the SQL type for binary objects. |
void |
setBooleanType(String type)
Set the SQL type for booleans; this should be a numeric type. |
void |
setByteType(String type)
Set the SQL type for bytes; this should be a numeric type. |
void |
setCharType(String type)
Set the SQL type for chars. |
void |
setClobType(String type)
Set the SQL type for unlimited length Strings. |
void |
setDateType(String type)
Set the SQL type for Dates. |
void |
setDefaultStringType(String type)
Set the SQL type for default length Strings. |
void |
setDoubleType(String type)
Set the SQL type for doubles. |
void |
setFloatType(String type)
Set the SQL type for floats. |
void |
setIntType(String type)
Set the SQL type for ints. |
void |
setLenStringType(String type)
Set the SQL type for limited length Strings. |
void |
setLocaleType(String type)
Set the SQL type for java.util.Locales. |
void |
setLongType(String type)
Set the SQL type for longs. |
void |
setShortType(String type)
Set the SQL type for shorts. |
void |
setStringType(String type)
Set the SQL type for limited length Strings. |
void |
setType(int constant,
String type)
Set the SQL column type fo rthe given symbolic constant from SQLTypes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SQLTypeMap()
| Method Detail |
public String getBlobType()
public void setBlobType(String type)
public String getClobType()
public void setClobType(String type)
public String getLenStringType()
public void setLenStringType(String type)
java.text.MessageFormat with the desired length, so it can use
the '{0}' symbol to denote the placement of the length in the type
signature if needed.public String getStringType()
public void setStringType(String type)
java.util.MessageFormat with the desired length, so it can use
the '{0}' symbol to denote the placement of the length in the type
signature if needed.public String getDefaultStringType()
public void setDefaultStringType(String type)
public String getBooleanType()
public void setBooleanType(String type)
public String getByteType()
public void setByteType(String type)
public String getCharType()
public void setCharType(String type)
public String getDoubleType()
public void setDoubleType(String type)
public String getFloatType()
public void setFloatType(String type)
public String getIntType()
public void setIntType(String type)
public String getLongType()
public void setLongType(String type)
public String getShortType()
public void setShortType(String type)
public String getDateType()
public void setDateType(String type)
public String getBigIntegerType()
public void setBigIntegerType(String type)
public String getBigDecimalType()
public void setBigDecimalType(String type)
public String getLocaleType()
public void setLocaleType(String type)
public String getType(int constant)
public String getType(int constant,
int length)
public void setType(int constant,
String type)
|
SolarMetric Kodo JDO 2.4.3 generated on March 27 2003 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||