|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectArcSDEDataStoreFactory
public final class ArcSDEDataStoreFactory
Factory to create DataStores over a live ArcSDE instance.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface DataAccessFactory |
---|
DataAccessFactory.Param |
Field Summary | |
---|---|
static DataAccessFactory.Param |
ALLOW_NON_SPATIAL_PARAM
|
static DataAccessFactory.Param |
DBTYPE_PARAM
|
static String |
FACTORY_DESCRIPTION
friendly factory description |
static DataAccessFactory.Param |
INSTANCE_PARAM
|
static int |
JSDE_VERSION_90
|
static int |
JSDE_VERSION_91
|
static int |
JSDE_VERSION_92
|
static int |
JSDE_VERSION_93
|
static int |
JSDE_VERSION_DUMMY
|
protected static Logger |
LOGGER
package's logger |
static DataAccessFactory.Param |
MAX_CONNECTIONS_PARAM
|
static DataAccessFactory.Param |
MIN_CONNECTIONS_PARAM
|
static DataAccessFactory.Param |
NAMESPACE_PARAM
|
static DataAccessFactory.Param |
PASSWORD_PARAM
|
static DataAccessFactory.Param |
PORT_PARAM
In order to use Direct Connect, port parameter has to be of type String |
static DataAccessFactory.Param |
SERVER_PARAM
|
static DataAccessFactory.Param |
TIMEOUT_PARAM
|
static DataAccessFactory.Param |
USER_PARAM
|
static DataAccessFactory.Param |
VERSION_PARAM
|
Constructor Summary | |
---|---|
ArcSDEDataStoreFactory()
empty constructor |
Method Summary | |
---|---|
boolean |
canProcess(Map<String,Serializable> params)
Test to see if this factory is suitable for processing the data pointed to by the params map. |
DataStore |
createDataStore(Map<String,Serializable> params)
crates an SdeDataSource based on connection parameters held in params . |
DataStore |
createNewDataStore(Map<String,Serializable> map)
|
String |
getDescription()
A human friendly name for this data source factory |
String |
getDisplayName()
Display name for this DataStore Factory |
Map<RenderingHints.Key,?> |
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 |
---|
protected static final Logger LOGGER
public static final String FACTORY_DESCRIPTION
public static final int JSDE_VERSION_DUMMY
public static final int JSDE_VERSION_90
public static final int JSDE_VERSION_91
public static final int JSDE_VERSION_92
public static final int JSDE_VERSION_93
public static final DataAccessFactory.Param NAMESPACE_PARAM
public static final DataAccessFactory.Param DBTYPE_PARAM
public static final DataAccessFactory.Param SERVER_PARAM
public static final DataAccessFactory.Param PORT_PARAM
public static final DataAccessFactory.Param INSTANCE_PARAM
public static final DataAccessFactory.Param USER_PARAM
public static final DataAccessFactory.Param PASSWORD_PARAM
public static final DataAccessFactory.Param MIN_CONNECTIONS_PARAM
public static final DataAccessFactory.Param MAX_CONNECTIONS_PARAM
public static final DataAccessFactory.Param TIMEOUT_PARAM
public static final DataAccessFactory.Param VERSION_PARAM
public static final DataAccessFactory.Param ALLOW_NON_SPATIAL_PARAM
Constructor Detail |
---|
public ArcSDEDataStoreFactory()
Method Detail |
---|
public DataStore createNewDataStore(Map<String,Serializable> map)
createNewDataStore
in interface DataStoreFactorySpi
UnsupportedOperationException
- always as the operation is not supportedDataStoreFactorySpi.createNewDataStore(Map)
public DataStore createDataStore(Map<String,Serializable> params) throws IOException
params
.
Expected parameters are:
dbtype
: MUST be "arcsde"
server
: machine name where ArcSDE is runningport
: port number where ArcSDE listens for connections on serverinstance
: database instance name to connect touser
: database user name with at least reading privileges over SDE instancepassword
: database user passwordOptional parameters:
pool.minConnections
: how many connections to open when the datastore is created
pool.maxConnections
: max limit of connections for the connection pool
pool.timeOut
: how many milliseconds to wait for a free connection before failing
to execute a request
version
: name of the ArcSDE version for the data store to work upon
createDataStore
in interface DataAccessFactory
createDataStore
in interface DataStoreFactorySpi
params
- connection parameters
SdeDataStore
pointing to the database defined by
params
IOException
- if something goes wrong creating the datastore.public String getDisplayName()
getDisplayName
in interface DataAccessFactory
"ArcSDE"
public String getDescription()
getDescription
in interface DataAccessFactory
public boolean canProcess(Map<String,Serializable> params)
DataAccessFactory
If this datasource requires a number of parameters then this mehtod should check that they are all present and that they are all valid. If the datasource is a file reading data source then the extentions or mime types of any files specified should be checked. For example, a Shapefile datasource should check that the url param ends with shp, such tests should be case insensative.
canProcess
in interface DataAccessFactory
params
- The full set of information needed to construct a live
data source.
public boolean isAvailable()
isAvailable
in interface DataAccessFactory
public DataAccessFactory.Param[] getParametersInfo()
DataAccessFactory
Interpretation of FeatureDescriptor values:
This should be the same as:
Object params = factory.getParameters();
BeanInfo info = getBeanInfo( params );
return info.getPropertyDescriptors();
getParametersInfo
in interface DataAccessFactory
DataAccessFactory.getParametersInfo()
public Map<RenderingHints.Key,?> getImplementationHints()
getImplementationHints
in interface Factory
Factory.getImplementationHints()
public static int getSdeClientVersion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |