public String getJDBCType() { return getInternal().getJdbcTypeName(); }
if (elemmd != null && elemmd.getColumnMetaData() != null && elemmd.getColumnMetaData().length > 0) jdbcType = elemmd.getColumnMetaData()[0].getJdbcTypeName(); if (keymd != null && keymd.getColumnMetaData() != null && keymd.getColumnMetaData().length > 0) jdbcType = keymd.getColumnMetaData()[0].getJdbcTypeName(); if (valmd != null && valmd.getColumnMetaData() != null && valmd.getColumnMetaData().length > 0) jdbcType = valmd.getColumnMetaData()[0].getJdbcTypeName(); jdbcType = mmd.getColumnMetaData()[0].getJdbcTypeName();
if (colmd.getJdbcTypeName() != null) str.append(" jdbc-type=\"" + colmd.getJdbcTypeName() + "\"");
DatastoreIdentifier colIdentifier = idFactory.newIdentifier(IdentifierType.COLUMN, colmd.getName()); Column col = addColumn(null, colIdentifier, null, colmd); SQLTypeInfo sqlTypeInfo = storeMgr.getSQLTypeInfoForJDBCType(dba.getJDBCTypeForName(colmd.getJdbcTypeName())); col.setTypeInfo(sqlTypeInfo);
/** * Method to create the datastore mapping for a particular column and java type. * If the column is specified it is linked to the created datastore mapping. * @param mapping The java mapping * @param column The column (can be null) * @param javaType The java type * @return The datastore mapping */ public DatastoreMapping createDatastoreMapping(JavaTypeMapping mapping, Column column, String javaType) { Column col = column; String jdbcType = null; String sqlType = null; if (col != null && col.getColumnMetaData() != null) { // Utilise the jdbc and sql types if specified jdbcType = col.getColumnMetaData().getJdbcTypeName(); sqlType = col.getColumnMetaData().getSqlType(); } Class datastoreMappingClass = storeMgr.getDatastoreAdapter().getDatastoreMappingClass(javaType, jdbcType, sqlType, clr, null); DatastoreMapping datastoreMapping = DatastoreMappingFactory.createMapping(datastoreMappingClass, mapping, storeMgr, column); if (column != null) { column.setDatastoreMapping(datastoreMapping); } return datastoreMapping; }
if (colmds != null && colmds.length > 0) jdbcType = colmds[index].getJdbcTypeName(); sqlType = colmds[index].getSqlType(); if (colmds != null && colmds.length > 0) jdbcType = colmds[index].getJdbcTypeName(); sqlType = colmds[index].getSqlType(); if (colmds != null && colmds.length > 0) jdbcType = colmds[index].getJdbcTypeName(); sqlType = colmds[index].getSqlType(); jdbcType = mmd.getColumnMetaData()[index].getJdbcTypeName(); sqlType = mmd.getColumnMetaData()[index].getSqlType();