Package tethys.dbxml
Class DBXMLQueries
java.lang.Object
tethys.dbxml.DBXMLQueries
Some standard queries we're going to want to make from various
parts of the system as the user interacts with the GUI.
- Author:
- dg50
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertStringToXMLDocument(String xmlString) intcountData(PamDataBlock dataBlock, String deploymentId) intcountDetections2(String docName) Count on effort detections in a Detections documentintcountLocalizations2(String docName) Count on effort detections in a Detections documentbooleandocumentExists(String collection, String documentId) Find out if a document exists ?executeQuery(String jsonQueryString) Execute a DBXML query.getCollectionDocumentList(Collection collection) Get a list of all documents in a collection.getDeploymentDocuments(Collection collection, String deploymentId) Get the names of all the detection or localisation documents for a given deployment id.getDeploymnetCalibrations(String deploymentId) nilus.DetectionsgetDetectionsDocInfo(String detectionsDocName) Get the basic information about a Detections document.getDetectionsDocuments(String deploymentId) Get the names of all detection documents for a given deployment for all data streams.getDetectionsDocuments(PamDataBlock dataBlock, String deploymentId) Get a list of Detections documents which associate with a datablock and a deploymentId.getDocument(String collection, String documentId) getElementAttribute(Element root, String elName, String attribute) getElementData(Element root, String elName) nilus.LocalizegetLocalizationDocInfo(String locDocName) Get the basic information about a Detections document.getLocalizationDocuments(PamDataBlock dataBlock, String deploymentId) Get a list of Localization documents which associate with a datablock and a deploymentId.getLocalizationsDocuments(String deploymentId) Get the names of all localisation documents for a given deployment for all data streams.ArrayList<nilus.Deployment> getProjectDeployments(String projectName) Get some basic (not all) data for deployments associated with a project.ArrayList<nilus.Deployment> getProjectDeployments(String projectName, String instrumentId) Get project deployments that use a specific instrument id.Get a list of project names.voidlabelDocumentList(Collection collection, ArrayList<DocumentInfo> documentList)
-
Constructor Details
-
DBXMLQueries
-
-
Method Details
-
executeQuery
Execute a DBXML query. Returns an object which included the time taken to execute the query and either a returned Document or an Exception. Or will return null if the server is not connected- Parameters:
jsonQueryString-- Returns:
- query result
- Throws:
TethysQueryException
-
getCollectionDocumentList
Get a list of all documents in a collection.- Parameters:
collection-- Returns:
- list of all documents in a collection, or null if no collection.
-
labelDocumentList
-
getProjectNames
Get a list of project names.- Returns:
-
getProjectDeployments
Get project deployments that use a specific instrument id. More use than the call without this extra clause since it can handle overlapping deployments.- Parameters:
projectName-instrumentId-- Returns:
-
getProjectDeployments
Get some basic (not all) data for deployments associated with a project. Note that this may include deployments which are NOT part of the current dataset. That requires a search on Instrument as well.- Parameters:
projectName-- Returns:
-
getDeploymnetCalibrations
-
getDetectionsDocuments
Get a list of Detections documents which associate with a datablock and a deploymentId.- Parameters:
dataBlock-deploymentId- can be null to get all docs for data block- Returns:
-
getLocalizationDocuments
Get a list of Localization documents which associate with a datablock and a deploymentId.- Parameters:
dataBlock-deploymentId- can be null to get all docs for data block- Returns:
-
getDeploymentDocuments
Get the names of all the detection or localisation documents for a given deployment id.- Parameters:
collection- Localizations or DetetectionsdeploymentId- Deployment document id.- Returns:
- list of document id's.
-
getDetectionsDocuments
Get the names of all detection documents for a given deployment for all data streams.- Parameters:
deploymentId-- Returns:
-
getLocalizationsDocuments
Get the names of all localisation documents for a given deployment for all data streams.- Parameters:
deploymentId-- Returns:
-
countData
-
getDocument
-
documentExists
Find out if a document exists ?- Parameters:
collection-documentId-- Returns:
-
countDetections2
Count on effort detections in a Detections document- Parameters:
docName-- Returns:
-
countLocalizations2
Count on effort detections in a Detections document- Parameters:
docName-- Returns:
-
getElementData
-
getElementAttribute
-
convertStringToXMLDocument
-
getDetectionsDocInfo
Get the basic information about a Detections document. This is basically everything apart from the actual detections themselves.- Parameters:
aDoc-- Returns:
-
getLocalizationDocInfo
Get the basic information about a Detections document. This is basically everything apart from the actual detections themselves.- Parameters:
aDoc-- Returns:
-