| org.geotools.data.jdbc.JDBCDataStore org.geotools.data.geometryless.JDBCDataStore org.geotools.data.geometryless.BBOXDataStore
buildAttributeType | protected AttributeType buildAttributeType(ResultSet rs) throws IOException(Code) | | Constructs an AttributeType from a row in a ResultSet. The ResultSet
contains the information retrieved by a call to getColumns() on the
DatabaseMetaData object. This information can be used to construct an
Attribute Type.
In addition to standard SQL types, this method identifies MySQL 4.1's geometric
datatypes and creates attribute types accordingly. This happens when the
datatype, identified by column 5 of the ResultSet parameter, is equal to
java.sql.Types.OTHER. If a Types.OTHER ends up not being geometric, this
method simply calls the parent class's buildAttributeType method to do something
with it.
Note: Overriding methods must never move the current row pointer in the
result set.
Parameters: rs - The ResultSet containing the result of aDatabaseMetaData.getColumns call. The AttributeType built from the ResultSet. throws: SQLException - If an error occurs processing the ResultSet. throws: DataSourceException - Provided for overriding classes to wrapexceptions caused by other operations they may perform todetermine additional types. This will only be thrown by thedefault implementation if a type is present that is not presentin the TYPE_MAPPINGS. |
getFeatureWriter | public FeatureWriter getFeatureWriter(String typeName) throws IOException(Code) | | Utility method for getting a FeatureWriter for modifying existing features,
using no feature filtering and auto-committing. Not used for adding new
features.
Parameters: typeName - the feature type name (the table name) a FeatureWriter for modifying existing features throws: IOException - if the database cannot be properly accessed |
getFeatureWriterAppend | public FeatureWriter getFeatureWriterAppend(String typeName) throws IOException(Code) | | Utility method for getting a FeatureWriter for adding new features, using
auto-committing. Not used for modifying existing features.
Parameters: typeName - the feature type name (the table name) a FeatureWriter for adding new features throws: IOException - if the database cannot be properly accessed |
Fields inherited from org.geotools.data.geometryless.JDBCDataStore | public static String DEFAULT_NAMESPACE(Code)(Java Doc)
|
|
|