|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractDataStoreFactory
JDBCDataStoreFactory
OracleNGDataStoreFactory
OracleNGOCIDataStoreFactory
public class OracleNGOCIDataStoreFactory
Creates an Oracle datastore based on a thick OCI client connection, instead of the traditional (thin) jdbc connection. The thin JDBC connection was designed for clients requiring no more classes than just ojdbc14.jar. The OCI JDBC drivers are based on the Oracle client software and rely mostly on the C/C++ based OCI (Oracle Call Interface) runtime.
Looking over the internet it's not clear whether the OCI setup is faster than thin driver, different benchmarks report different results, but for sure OCI allows to expose a wider set of configurations and in particular it's recognized as the best way to connect to an Oracle cluster.
Instead of the instance, host, port requirements of the normal oracle factory this driver just requires the 'alias', which refers to values defined by the Oracle Net Configuration assistant and stored in $ORACLE_HOME/NETWORK/ADMIN/tnsnames.ora. We have also had luck on the same computer with just leaving 'alias' as an empty string, and it seems to have a reasonable default behavior.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface DataAccessFactory |
---|
DataAccessFactory.Param |
Field Summary | |
---|---|
static DataAccessFactory.Param |
ALIAS
The alias parameter used to specify the database to connect to |
Fields inherited from class OracleNGDataStoreFactory |
---|
DBTYPE, LOOSEBBOX, PORT |
Fields inherited from class JDBCDataStoreFactory |
---|
DATABASE, DATASOURCE, EXPOSE_PK, FETCHSIZE, HOST, MAX_OPEN_PREPARED_STATEMENTS, MAXCONN, MAXWAIT, MINCONN, NAMESPACE, PASSWD, PK_METADATA_TABLE, SCHEMA, USER, VALIDATECONN |
Constructor Summary | |
---|---|
OracleNGOCIDataStoreFactory()
|
Method Summary | |
---|---|
String |
getDescription()
Describe the nature of the datasource constructed by this factory. |
String |
getDisplayName()
Default Implementation abuses the naming convention. |
protected String |
getJDBCUrl(Map params)
Builds up the JDBC url in a jdbc: |
protected void |
setupParameters(Map parameters)
Sets up the database connection parameters. |
Methods inherited from class OracleNGDataStoreFactory |
---|
checkDBType, createDataStoreInternal, createSQLDialect, getDatabaseID, getDriverClassName, getValidationQuery |
Methods inherited from class JDBCDataStoreFactory |
---|
canProcess, checkDBType, createDataSource, createDataSource, createDataStore, createNewDataStore, getImplementationHints, getParametersInfo, isAvailable |
Methods inherited from class AbstractDataStoreFactory |
---|
getParameters |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DataAccessFactory.Param ALIAS
Constructor Detail |
---|
public OracleNGOCIDataStoreFactory()
Method Detail |
---|
public String getDisplayName()
AbstractDataStoreFactory
Will return Foo
for
org.geotools.data.foo.FooFactory
.
getDisplayName
in interface DataAccessFactory
getDisplayName
in class OracleNGDataStoreFactory
public String getDescription()
DataAccessFactory
A non localized description of this data store type.
getDescription
in interface DataAccessFactory
getDescription
in class OracleNGDataStoreFactory
protected String getJDBCUrl(Map params) throws IOException
JDBCDataStoreFactory
getJDBCUrl
in class OracleNGDataStoreFactory
IOException
protected void setupParameters(Map parameters)
JDBCDataStoreFactory
Subclasses may extend, but should not override. This implementation registers the following parameters.
JDBCDataStoreFactory.HOST
JDBCDataStoreFactory.PORT
JDBCDataStoreFactory.DATABASE
JDBCDataStoreFactory.SCHEMA
JDBCDataStoreFactory.USER
JDBCDataStoreFactory.PASSWD
setupParameters
in class OracleNGDataStoreFactory
parameters
- Map of Param
objects.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |