@Test public void testMetadataGenerationForAllTypes() throws Exception { Set<String> dataTypes = DataTypeManager.getAllDataTypeNames(); for (String type : dataTypes) { Class<?> typeClass = DataTypeManager.getDataTypeClass(type); MetaDataProcessor processor = new MetaDataProcessor(null, null, "vdb", 1); Map<Integer, Object> columnMetadata = processor.getDefaultColumn("t", "c", typeClass); verifyColumn(columnMetadata, type); } }
public Map<Integer, Object> getDefaultColumn(String tableName, String columnName, Class<?> javaType) { return getDefaultColumn(tableName, columnName, columnName, javaType); }
MetaDataProcessor { public Map<Integer, Object> getDefaultColumn(String tableName, String columnName, Class<?> javaType) { return getDefaultColumn(tableName, columnName, columnName, javaType); } }
MetaDataProcessor { public Map<Integer, Object> getDefaultColumn(String tableName, String columnName, Class<?> javaType) { return getDefaultColumn(tableName, columnName, columnName, javaType); } MetaDataProcessor(DQPCore requestManager, SessionAwareCache<PreparedPlan> planCache, String vdbName, Object vdbVersion); }
MetaDataProcessor { public Map<Integer, Object> getDefaultColumn(String tableName, String columnName, Class<?> javaType) { return getDefaultColumn(tableName, columnName, columnName, javaType); } MetaDataProcessor(DQPCore requestManager, SessionAwareCache<PreparedPlan> planCache, String vdbName, Object vdbVersion); static void updateMetadataAcrossBranches(SetQuery originalCommand, List<Column> columns, QueryMetadataInterface metadata); static String getColumnName(boolean pgColumnNames, Expression symbol); static void setColumnMetadata(Column column, Expression symbol, QueryMetadataInterface metadata); Map<Integer, Object> getDefaultColumn(String tableName, String columnName,
        Class<?> javaType); Map<Integer, Object> getDefaultColumn(String tableName, String columnName, String columnLabel, Class<?> javaType ); }
MetaDataProcessor { public Map<Integer, Object> getDefaultColumn(String tableName, String columnName, Class<?> javaType) { return getDefaultColumn(tableName, columnName, columnName, javaType); } MetaDataProcessor(DQPCore requestManager, SessionAwareCache<PreparedPlan> planCache, String vdbName, Object vdbVersion); static void updateMetadataAcrossBranches(SetQuery originalCommand, List<Column> columns, QueryMetadataInterface metadata); static String getColumnName(boolean pgColumnNames, Expression symbol); static void setColumnMetadata(Column column, Expression symbol, QueryMetadataInterface metadata); Map<Integer, Object> getDefaultColumn(String tableName, String columnName,
        Class<?> javaType); Map<Integer, Object> getDefaultColumn(String tableName, String columnName, String columnLabel, Class<?> javaType ); final static String XML_COLUMN_NAME; }