Index: plugin.xml =================================================================== --- plugin.xml (revision 1190) +++ plugin.xml (working copy) @@ -115,6 +115,18 @@ name="com.metamatrix.modeler.jdbc.relational.impl.custom.ExcelModelProcessor"> + + + + + + + ModeShapeModelProcessor performs special processing when performing an import using the ModeShape JDBC driver. + */ +public class ModeShapeModelProcessor extends RelationalModelProcessorImpl { + + /** + * + */ + public ModeShapeModelProcessor() { + super(); + } + + /** + * @param factory + */ + public ModeShapeModelProcessor( final RelationalFactory factory ) { + super(factory); + } + + /** + * @param factory + * @param mapping + */ + public ModeShapeModelProcessor( final RelationalFactory factory, + final RelationalTypeMapping mapping ) { + super(factory, mapping); + } + + /** + * {@inheritDoc} + * + * @see com.metamatrix.modeler.jdbc.relational.impl.RelationalModelProcessorImpl#setColumnInfo(com.metamatrix.metamodels.relational.Column, + * com.metamatrix.modeler.jdbc.metadata.JdbcTable, com.metamatrix.modeler.jdbc.relational.impl.Context, java.util.List, + * java.lang.String, int, java.lang.String, int, int, int, int, java.lang.String, int) + */ + @Override + protected void setColumnInfo( final Column column, + final JdbcTable tableNode, + final Context context, + final List problems, + final String name, + final int type, + final String typeName, + final int columnSize, + final int numDecDigits, + final int numPrecRadix, + final int nullable, + final String defaultValue, + final int charOctetLen ) { + super.setColumnInfo(column, + tableNode, + context, + problems, + name, + type, + typeName, + columnSize, + numDecDigits, + numPrecRadix, + nullable, + defaultValue, + charOctetLen); + + // set all columns to not be updateable + column.setUpdateable(false); + + // make sure mode:properties is not selectable + if ("mode:properties".equals(name)) { + column.setSelectable(false); + } + } + +}