Package com.oracle.nosql.spring.data
Class NosqlDbFactory
java.lang.Object
com.oracle.nosql.spring.data.NosqlDbFactory
Factory class for connecting to an Oracle NoSQL Database on premise
 database or cloud service.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classA simple provider that uses a manufactured id for use by the Cloud Simulator.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic NosqlDbFactorycreateCloudFactory(String endpoint, String configFile) Creates a NosqlDbFactory object for a cloud service configuration.static NosqlDbFactorycreateCloudFactory(String endpoint, String configFile, String profileName) Creates a NosqlDbFactory object for a cloud service configuration.static NosqlDbFactorycreateCloudSimFactory(String endpoint) Creates a NosqlDbFactory object for a cloud sim configuration.static NosqlDbFactorycreateProxyFactory(String endpoint) Creates a NosqlDbFactory object for an on-prem server configuration.static NosqlDbFactorycreateProxyFactory(String endpoint, String user, char[] password) Creates a NosqlDbFactory object for an on-prem server configuration.Returns the config valueNosqlDbConfig.getDefaultCapacityMode().intReturns the config valueNosqlDbConfig.getDefaultReadUnits().intReturns the config valueNosqlDbConfig.getDefaultStorageGB().intReturns the config valueNosqlDbConfig.getDefaultWriteUnits().static StringReturns the current version of the NoSQL DB Sprint Data SDK, as a string in an x.y.z format.intReturns the capacity of the prepared query cache.intReturns the lifetime of the prepared query cache in milliseconds.intReturns the table request poll interval in milliseconds.intReturns the table request timeout in milliseconds.intReturns the precision of the Timestamp NoSQL DB type when creating a new table.
- 
Constructor Details- 
NosqlDbFactory
 
- 
- 
Method Details- 
getNosqlClient
- 
createCloudFactorypublic static NosqlDbFactory createCloudFactory(String endpoint, String configFile) throws IOException Creates a NosqlDbFactory object for a cloud service configuration.- Throws:
- IOException
 
- 
createCloudFactorypublic static NosqlDbFactory createCloudFactory(String endpoint, String configFile, String profileName) throws IOException Creates a NosqlDbFactory object for a cloud service configuration.- Throws:
- IOException
 
- 
createCloudSimFactoryCreates a NosqlDbFactory object for a cloud sim configuration.
- 
createProxyFactoryCreates a NosqlDbFactory object for an on-prem server configuration.
- 
createProxyFactoryCreates a NosqlDbFactory object for an on-prem server configuration.
- 
getQueryCacheCapacitypublic int getQueryCacheCapacity()Returns the capacity of the prepared query cache. By default, this is set toConstants.DEFAULT_QUERY_CACHE_CAPACITY.
- 
getQueryCacheLifetimepublic int getQueryCacheLifetime()Returns the lifetime of the prepared query cache in milliseconds. By default, this is set toConstants.DEFAULT_QUERY_CACHE_LIFETIME_MS.
- 
getTableReqTimeoutpublic int getTableReqTimeout()Returns the table request timeout in milliseconds. By default, this is set toConstants.DEFAULT_TABLE_REQ_TIMEOUT_MS
- 
getTableReqPollIntervalpublic int getTableReqPollInterval()Returns the table request poll interval in milliseconds. By default, this is set toConstants.DEFAULT_TABLE_RED_POLL_INTERVAL_MS
- 
getTimestampPrecisionpublic int getTimestampPrecision()Returns the precision of the Timestamp NoSQL DB type when creating a new table. By default, this is set toConstants.DEFAULT_TIMESTAMP_PRECISION.In the context of a CREATE TABLE statement, a precision must be explicitly specified. This restriction is to prevent users from inadvertently creating TIMESTAMP values with precision 9 (which takes more space) when in reality they don't need that high precision. See Timestamp documentation for more details. 
- 
getDefaultStorageGBpublic int getDefaultStorageGB()Returns the config valueNosqlDbConfig.getDefaultStorageGB().
- 
getDefaultCapacityModeReturns the config valueNosqlDbConfig.getDefaultCapacityMode().
- 
getDefaultReadUnitspublic int getDefaultReadUnits()Returns the config valueNosqlDbConfig.getDefaultReadUnits().
- 
getDefaultWriteUnitspublic int getDefaultWriteUnits()Returns the config valueNosqlDbConfig.getDefaultWriteUnits().
- 
getLibraryVersionReturns the current version of the NoSQL DB Sprint Data SDK, as a string in an x.y.z format.
 
-