* @param mconn Managed connection to use
*/
public void removeUnsupportedMappings(StoreSchemaHandler handler, ManagedConnection mconn)
{
RDBMSStoreManager storeMgr = (RDBMSStoreManager)handler.getStoreManager();
RDBMSMappingManager mapMgr = (RDBMSMappingManager)storeMgr.getMappingManager();
RDBMSTypesInfo types = (RDBMSTypesInfo)handler.getSchemaData(mconn.getConnection(), "types", null);
int[] jdbcTypes = JDBCUtils.getJDBCTypes();
for (int i=0;i<jdbcTypes.length;i++)
{
if (types.getChild("" + jdbcTypes[i]) == null)
{
// JDBC type not supported by adapter so deregister the mapping
// Means that we don't need to add "excludes" definitions to plugin.xml
mapMgr.deregisterDatastoreMappingsForJDBCType(JDBCUtils.getNameForJDBCType(jdbcTypes[i]));
}
}
}