| org.geotools.data.DataAccess
DataAccess | public interface DataAccess (Code) | | Interface providing Open Web Service style access to geo resource content.
The basic idea is to have simple, very general interface to access and query
data that is in some way or another spatially enabled. Extending interfaces can
add methods that make it easier to access data for their specific model.
This should become a super interface of
DataStore and may be viewed
as a future direciton for feature access.
author: Jody Garnett author: Thomas Marti author: Stefan Schmid version: $Id: DataAccess.java 26649 2007-08-22 09:55:31Z groldan $ since: 2.4 author: Jody Garnett, Refractions Research Inc. |
Method Summary | |
Source | access(Name typeName) Provides access to the data source for the given type name. | Object | describe(Name typeName) Description of content in an appropriate format. | void | dispose() Clean up any and all data connections.
Please note the DataAccess instance will not
be useable after this method is called. | ServiceInfo | getInfo() Information about this data acess point. | List | getNames() Names for the content we are providing access to. |
access | Source access(Name typeName)(Code) | | Provides access to the data source for the given type name.
Data source, null if typeName is not available |
describe | Object describe(Name typeName)(Code) | | Description of content in an appropriate format.
- AttributeDescriptor: when serving up features
- Class: when providing access to a java domain model
- URL: of XSD document when working with XML document
- etc...
Please note this is a direct description of the
content, and contains no fluffy human readible concerns (like
title) for that kind of information please use
DataAccess.getInfo() .
See Also: Source.getInfo Parameters: typeName - FeatureType, ResultSetMetaData, Class, whatever? |
dispose | void dispose()(Code) | | Clean up any and all data connections.
Please note the DataAccess instance will not
be useable after this method is called. All methods should throw
an
IllegalStateException (but probably will just throw a
NullPointerException when implementators are lazy).
|
getInfo | ServiceInfo getInfo()(Code) | | Information about this data acess point.
Contains a human readable description of the service,
with enough information for searching.
GridServiceInfo ? |
getNames | List getNames()(Code) | | Names for the content we are providing access to.
List, may be emtpy, but never null |
|
|