Method Summary |
|
public synchronized void | configure(Configuration newConfig) Sets up all the types now that we know the parent's data context. |
public void | destroy() Destroys the component. |
public Integer | getExpressoToJava(String dbFieldType) Retrieve a DBField to java.sql.Types mapping value. |
public Map | getExpressoToSQLMap() |
public static synchronized TypeMapper | getInstance(String dataContext) Retrieves an instance of the type mapper.
To be deprecated soon. |
public int | getJavaSQLType(String fieldType) Return a java.sql.Types integer that maps to the field type listed
Parameters: fieldType - the type of the field to map. |
public String | getMetadataName() Because we look up our metadata in the parent component, we have to
somehow know WHAT component's metadata is ours. |
public String | getNameForSQL(int sqlType) |
public Map | getSQLToDBMap() |
public String | getTypeForDB(String expressoType) Map a type used in Expresso to an appropriate database-specific type,
utilizing the default type mapping followed by the custom type
mapping(s) for this context (if any)
Parameters: expressoType - The java.sql datatype to check against. |
public String | getTypeForExpresso(int sqlType) Map a type used in SQL to an appropriate expresso-specific type
Parameters: sqlType - The java.sql datatype to check against. |
public String | getTypeForSQL(int sqlType) |
public void | initialize() Any quick initializations here. |
protected void | initializeTypes(String dataContext) Initialize the mappings between java types, expresso types, and SQL
types. |
public synchronized void | reconfigure(Configuration newConfig) Reconfigures the TypeMapper. |