Package org.basex.core
Class Datas
java.lang.Object
org.basex.core.Datas
This class organizes currently opened databases.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPins and returns a database with the specified name.voidPins a data reference.intReturns the number of pins for the database with the specified name, or0if the database is not opened.voidUnpins a data reference and closes the database if no references exist anymore.
-
Constructor Details
-
Datas
public Datas()
-
-
Method Details
-
pin
Pins and returns a database with the specified name.- Parameters:
name- name of the database- Returns:
- data reference, or
nullif the database is not registered
-
pin
Pins a data reference.- Parameters:
data- data reference
-
unpin
Unpins a data reference and closes the database if no references exist anymore.- Parameters:
data- data reference
-
pins
Returns the number of pins for the database with the specified name, or0if the database is not opened.- Parameters:
name- name of the database- Returns:
- number of references
-