|
XBRLAPIA Java API for XBRL |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DBConnection
Data store connection interface.
| Method Summary | |
|---|---|
void |
close()
Close down the connection to the database. |
Collection |
createCollection(String collectionName,
Collection containerCollection)
Create a collection. |
Collection |
createRootCollection(String collectionName)
Convenience method for creating a root collection. |
void |
deleteCollection(String collectionPath)
Delete a collection. |
void |
deleteCollection(String collectionName,
Collection containerCollection)
Delete a collection. |
Collection |
getCollection(String collectionPath)
Get a specific collection from the database connection |
Collection |
getCollection(String collectionName,
Collection container)
Get a collection given the name of the collection (not its full path) and its container collection. |
String |
getDatabaseURI()
Returns the URI to access the Xindice database for this connection. |
boolean |
hasCollection(String collectionPath)
Test if a specific collection exists. |
boolean |
hasCollection(String collectionName,
Collection containerCollection)
Test if a specific collection exists. |
| Method Detail |
|---|
Collection createCollection(String collectionName,
Collection containerCollection)
throws XBRLException
collectionName - The name of the collectioncontainerCollection - The container collection itself
XBRLException
Collection createRootCollection(String collectionName)
throws XBRLException
collectionName - The name of the collection.
XBRLException
void deleteCollection(String collectionPath)
throws XBRLException
collectionPath - The identifier of the collection.
XBRLException
void deleteCollection(String collectionName,
Collection containerCollection)
throws XBRLException
collectionName - The name of the collection.containerCollection - The collection containing the collection to be deleted.
XBRLException
Collection getCollection(String collectionPath)
throws XBRLException
collectionPath - The collection identifier
XBRLException
Collection getCollection(String collectionName,
Collection container)
throws XBRLException
collectionName - The name of the collection (eg: for collection /db/shakespeare/plays this would be plays).container - The container collection (eg: for collection /db/shakespeare/plays this would be the /db/shakespeare collection).
XBRLException - if the required collection cannot be retrieved.
boolean hasCollection(String collectionPath)
throws XBRLException
collectionPath - The name of the collection including its full path.
XBRLException - if the existence of the collection cannot be ascertained.
boolean hasCollection(String collectionName,
Collection containerCollection)
throws XBRLException
collectionName - The name of the collectioncontainerCollection - The container collection for the collection being tested for.
XBRLException - if the existence of the collection cannot be ascertained.String getDatabaseURI()
void close()
throws XBRLException
XBRLException - if the connection does not close cleanly.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||