Revision 38081
branches/v2_0_0_prep/extensions/org.gvsig.oracle/src/org/gvsig/fmap/dal/store/oracle/OracleHelper.java | ||
---|---|---|
1062 | 1062 |
} |
1063 | 1063 |
}); |
1064 | 1064 |
} |
1065 |
|
|
1066 |
protected EditableFeatureAttributeDescriptor getAttributeFromJDBC( |
|
1067 |
EditableFeatureType fType, Connection conn, |
|
1068 |
ResultSetMetaData rsMetadata, int colIndex) throws JDBCException { |
|
1069 |
EditableFeatureAttributeDescriptor column; |
|
1070 |
try { |
|
1065 | 1071 |
|
1072 |
column = createAttributeFromJDBC(fType, conn, rsMetadata, colIndex); |
|
1073 |
column.setAllowNull(true); |
|
1074 |
column.setIsAutomatic(rsMetadata.isAutoIncrement(colIndex)); |
|
1075 |
column.setIsReadOnly(rsMetadata.isReadOnly(colIndex)); |
|
1076 |
column.setPrecision(rsMetadata.getPrecision(colIndex)); |
|
1077 |
column.setSize(rsMetadata.getColumnDisplaySize(colIndex)); |
|
1078 |
|
|
1079 |
} catch (java.sql.SQLException e) { |
|
1080 |
throw new JDBCSQLException(e); |
|
1081 |
} |
|
1082 |
|
|
1083 |
return column; |
|
1084 |
|
|
1085 |
} |
|
1086 |
|
|
1066 | 1087 |
public String getOraTableSrid(OracleStoreParameters params, |
1067 | 1088 |
String geo_field) { |
1068 | 1089 |
|
Also available in: Unified diff