Package oracle.soda
Interface OracleDatabase
-
- All Superinterfaces:
OracleDocumentFactory
public interface OracleDatabase extends OracleDocumentFactory
A database of document collections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OracleDatabaseAdmin
admin()
Gets aOracleDatabaseAdmin
objectOracleCollection
openCollection(String collectionName)
Opens a collection with the specified name.-
Methods inherited from interface oracle.soda.OracleDocumentFactory
createDocumentFrom, createDocumentFrom, createDocumentFromByteArray, createDocumentFromByteArray, createDocumentFromByteArray, createDocumentFromString, createDocumentFromString, createDocumentFromString
-
-
-
-
Method Detail
-
openCollection
OracleCollection openCollection(String collectionName) throws OracleException
Opens a collection with the specified name.- Parameters:
collectionName
- the name of the collection. Cannot benull
- Returns:
- an
OracleCollection
,null
if the collection with the specifiedcollectionName
doesn't exist - Throws:
OracleException
- if (1) the providedcollectioName
isnull
, or (2) there's an error opening the collection
-
admin
OracleDatabaseAdmin admin()
Gets aOracleDatabaseAdmin
object- Returns:
- a
OracleDatabaseAdmin
object
-
-