File | Line |
---|
org/apache/torque/templates/typemapping/SqlType.java | 161 |
org/apache/torque/templates/typemapping/SqlTypeWithJdbcType.java | 188 |
this(sqlType.getSqlTypeName(), sqlType.getJdbcType());
if (size != null)
{
this.size = size;
}
else
{
this.size = sqlType.getSize();
}
if (scale != null)
{
this.scale = scale;
}
else
{
this.scale = sqlType.getScale();
}
if (defaultValue != null)
{
this.defaultValue = defaultValue;
}
else
{
this.defaultValue = sqlType.getDefaultValue();
}
}
/**
* @return Returns the scale.
*/
public String getScale()
{
return scale;
}
/**
* @return Returns the size.
*/
public String getSize()
{
return size;
}
/**
* @return Returns the defaultValue.
*/
public String getDefaultValue()
{
return defaultValue;
}
/**
* @return Returns the SQL type name for this column type.
*/
public String getSqlTypeName()
{
return sqlTypeName;
}
/**
* @return Returns the jdbc type tas in <code>java.sql.types</code>.
*/
public int getJdbcType() |
File | Line |
---|
org/apache/torque/templates/typemapping/TypeMap.java | 173 |
org/apache/torque/templates/typemapping/TypeMap.java | 205 |
= Collections.unmodifiableMap(schemaToJava);
}
// Fill SCHEMA_TYPE_TO_JAVA_OBJECT_TYPE_MAP
static
{
Map<SchemaType, JavaType> schemaToJava
= new HashMap<SchemaType, JavaType>();
schemaToJava.put(SchemaType.CHAR, JavaType.STRING);
schemaToJava.put(SchemaType.VARCHAR, JavaType.STRING);
schemaToJava.put(SchemaType.LONGVARCHAR, JavaType.STRING);
schemaToJava.put(SchemaType.CLOB, JavaType.STRING);
schemaToJava.put(SchemaType.NUMERIC, JavaType.BIG_DECIMAL);
schemaToJava.put(SchemaType.DECIMAL, JavaType.BIG_DECIMAL);
schemaToJava.put(SchemaType.BIT, JavaType.BOOLEAN_OBJECT); |