@Test public void testVersioned() throws IOException, UnavailableConnectionException { ISession session = testData.getConnectionPool().getSession(true); final String versionName = "testVersioned"; try { testData.createVersion(session, versionName, SeVersion.SE_QUALIFIED_DEFAULT_VERSION_NAME); } finally { session.dispose(); } Map<String, Serializable> paramsWithVersion = new HashMap<String, Serializable>( workingParams); paramsWithVersion.put(VERSION_PARAM_NAME, versionName); DataStore ds = dsFactory.createDataStore(paramsWithVersion); assertNotNull(ds); ds.dispose(); String qualifiedVersionName = session.getUser() + "." + versionName; paramsWithVersion.put(VERSION_PARAM_NAME, qualifiedVersionName); ds = dsFactory.createDataStore(paramsWithVersion); assertNotNull(ds); ds.dispose(); }
public DataStore createDataStore(final Map<String, Serializable> params) throws java.io.IOException { if (JSDE_CLIENT_VERSION == JSDE_VERSION_DUMMY) { throw new DataSourceException("Can't connect to ArcSDE with the dummy jar."); } ArcSDEDataStore sdeDStore = null; ArcSDEDataStoreConfig config = new ArcSDEDataStoreConfig(params); sdeDStore = createDataStore(config); ViewRegisteringFactoryHelper.registerSqlViews(sdeDStore, params); return sdeDStore; }
ArcSDEDataStoreFactory implements DataStoreFactorySpi { public DataStore createDataStore(final Map<String, Serializable> params) throws java.io.IOException { if (JSDE_CLIENT_VERSION == JSDE_VERSION_DUMMY) { throw new DataSourceException("Can't connect to ArcSDE with the dummy jar."); } ArcSDEDataStore sdeDStore = null; ArcSDEDataStoreConfig config = new ArcSDEDataStoreConfig(params); sdeDStore = createDataStore(config); ViewRegisteringFactoryHelper.registerSqlViews(sdeDStore, params); return sdeDStore; } }
ArcSDEDataStoreFactory implements DataStoreFactorySpi { public DataStore createDataStore(final Map<String, Serializable> params) throws java.io.IOException { if (JSDE_CLIENT_VERSION == JSDE_VERSION_DUMMY) { throw new DataSourceException("Can't connect to ArcSDE with the dummy jar."); } ArcSDEDataStore sdeDStore = null; ArcSDEDataStoreConfig config = new ArcSDEDataStoreConfig(params); sdeDStore = createDataStore(config); ViewRegisteringFactoryHelper.registerSqlViews(sdeDStore, params); return sdeDStore; } ArcSDEDataStoreFactory(); }
ArcSDEDataStoreFactory implements DataStoreFactorySpi { public DataStore createDataStore(final Map<String, Serializable> params) throws java.io.IOException { if (JSDE_CLIENT_VERSION == JSDE_VERSION_DUMMY) { throw new DataSourceException("Can't connect to ArcSDE with the dummy jar."); } ArcSDEDataStore sdeDStore = null; ArcSDEDataStoreConfig config = new ArcSDEDataStoreConfig(params); sdeDStore = createDataStore(config); ViewRegisteringFactoryHelper.registerSqlViews(sdeDStore, params); return sdeDStore; } ArcSDEDataStoreFactory(); DataStore createNewDataStore(java.util.Map<String, Serializable> map); DataStore createDataStore(final Map<String, Serializable> params); String getDisplayName(); String getDescription(); boolean canProcess(Map<String, Serializable> params); boolean isAvailable(); DataStoreFactorySpi.Param[] getParametersInfo(); Map<RenderingHints.Key, ?> getImplementationHints(); static int getSdeClientVersion(); }
ArcSDEDataStoreFactory implements DataStoreFactorySpi { public DataStore createDataStore(final Map<String, Serializable> params) throws java.io.IOException { if (JSDE_CLIENT_VERSION == JSDE_VERSION_DUMMY) { throw new DataSourceException("Can't connect to ArcSDE with the dummy jar."); } ArcSDEDataStore sdeDStore = null; ArcSDEDataStoreConfig config = new ArcSDEDataStoreConfig(params); sdeDStore = createDataStore(config); ViewRegisteringFactoryHelper.registerSqlViews(sdeDStore, params); return sdeDStore; } ArcSDEDataStoreFactory(); DataStore createNewDataStore(java.util.Map<String, Serializable> map); DataStore createDataStore(final Map<String, Serializable> params); String getDisplayName(); String getDescription(); boolean canProcess(Map<String, Serializable> params); boolean isAvailable(); DataStoreFactorySpi.Param[] getParametersInfo(); Map<RenderingHints.Key, ?> getImplementationHints(); static int getSdeClientVersion(); static final String FACTORY_DESCRIPTION; static final int JSDE_VERSION_DUMMY; static final int JSDE_VERSION_90; static final int JSDE_VERSION_91; static final int JSDE_VERSION_92; static final int JSDE_VERSION_93; static final Param NAMESPACE_PARAM; static final Param DBTYPE_PARAM; static final Param SERVER_PARAM; static final Param PORT_PARAM; static final Param INSTANCE_PARAM; static final Param USER_PARAM; static final Param PASSWORD_PARAM; static final Param MIN_CONNECTIONS_PARAM; static final Param MAX_CONNECTIONS_PARAM; static final Param TIMEOUT_PARAM; static final Param VERSION_PARAM; static final Param ALLOW_NON_SPATIAL_PARAM; }