org.geotools.arcsde
Class ArcSDEDataStoreFactory

Object
  extended by ArcSDEDataStoreFactory
All Implemented Interfaces:
DataAccessFactory, DataStoreFactorySpi, Factory

public class ArcSDEDataStoreFactory
extends Object
implements DataStoreFactorySpi

Factory to create DataStores over a live ArcSDE instance.

Author:
Gabriel Roldan, Axios Engineering
Module:

Nested Class Summary
 
Nested classes/interfaces inherited from interface DataAccessFactory
DataAccessFactory.Param
 
Field Summary
static String FACTORY_DESCRIPTION
          friendly factory description
static int JSDE_VERSION_90
           
static int JSDE_VERSION_91
           
static int JSDE_VERSION_92
           
static int JSDE_VERSION_DUMMY
           
protected static Logger LOGGER
          package's logger
 
Constructor Summary
ArcSDEDataStoreFactory()
          empty constructor
 
Method Summary
 boolean canProcess(Map params)
          DOCUMENT ME!
 DataStore createDataStore(Map params)
          crates an SdeDataSource based on connection parameters held in params.
 DataStore createNewDataStore(Map map)
           
 String getDescription()
          A human friendly name for this data source factory
 String getDisplayName()
          Display name for this DataStore Factory
 Map getImplementationHints()
          Returns the implementation hints.
 DataAccessFactory.Param[] getParametersInfo()
          MetaData about the required Parameters (for createDataStore).
static int getSdeClientVersion()
           
 boolean isAvailable()
          Test to see if this datastore is available, if it has all the appropriate libraries to construct a datastore.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGGER

protected static final Logger LOGGER
package's logger


FACTORY_DESCRIPTION

public static final String FACTORY_DESCRIPTION
friendly factory description

See Also:
Constant Field Values

JSDE_VERSION_DUMMY

public static final int JSDE_VERSION_DUMMY
See Also:
Constant Field Values

JSDE_VERSION_90

public static final int JSDE_VERSION_90
See Also:
Constant Field Values

JSDE_VERSION_91

public static final int JSDE_VERSION_91
See Also:
Constant Field Values

JSDE_VERSION_92

public static final int JSDE_VERSION_92
See Also:
Constant Field Values
Constructor Detail

ArcSDEDataStoreFactory

public ArcSDEDataStoreFactory()
empty constructor

Method Detail

createNewDataStore

public DataStore createNewDataStore(Map map)
Specified by:
createNewDataStore in interface DataStoreFactorySpi
Throws:
UnsupportedOperationException - always as the operation is not supported
See Also:
DataStoreFactorySpi.createNewDataStore(Map)

createDataStore

public DataStore createDataStore(Map params)
                          throws IOException
crates an SdeDataSource based on connection parameters held in params.

Expected parameters are:

Specified by:
createDataStore in interface DataAccessFactory
Specified by:
createDataStore in interface DataStoreFactorySpi
Parameters:
params - connection parameters
Returns:
a new SdeDataStore pointing to the database defined by params
Throws:
IOException - if something goes wrong creating the datastore.

getDisplayName

public String getDisplayName()
Display name for this DataStore Factory

Specified by:
getDisplayName in interface DataAccessFactory
Returns:
"ArcSDE"

getDescription

public String getDescription()
A human friendly name for this data source factory

Specified by:
getDescription in interface DataAccessFactory
Returns:
this factory's description

canProcess

public boolean canProcess(Map params)
DOCUMENT ME!

Specified by:
canProcess in interface DataAccessFactory
Parameters:
params -
Returns:
booean true if and only if this factory can process the resource indicated by the param set and all the required params are pressent.

isAvailable

public boolean isAvailable()
Test to see if this datastore is available, if it has all the appropriate libraries to construct a datastore.

Specified by:
isAvailable in interface DataAccessFactory
Returns:
true if and only if this factory is available to create DataStores.

getParametersInfo

public DataAccessFactory.Param[] getParametersInfo()
Description copied from interface: DataAccessFactory
MetaData about the required Parameters (for createDataStore).

Interpretation of FeatureDescriptor values:

This should be the same as:


 Object params = factory.getParameters();
 BeanInfo info = getBeanInfo( params );

 return info.getPropertyDescriptors();
 

Specified by:
getParametersInfo in interface DataAccessFactory
Returns:
Param array describing the Map for createDataStore
See Also:
DataAccessFactory.getParametersInfo()

getImplementationHints

public Map getImplementationHints()
Returns the implementation hints. The default implementation returns en empty map.

Specified by:
getImplementationHints in interface Factory
Returns:
The map of hints, or an empty map if none.

getSdeClientVersion

public static int getSdeClientVersion()


Copyright © 1996-2009 Geotools. All Rights Reserved.