public final class Datas extends Object
Constructor and Description |
---|
Datas() |
Modifier and Type | Method and Description |
---|---|
void |
add(Data data)
Adds an already pinned data reference to the pool.
|
void |
pin(Data data)
Pins a data reference.
|
Data |
pin(String db)
Pins and returns an existing data reference for the specified database, or
returns
null . |
int |
pins(String db)
Returns the number of pins for the specified database,
or
0 if the database is not opened. |
boolean |
unpin(Data data)
Unpins a data reference.
|
public Data pin(String db)
null
.db
- name of the databasepublic void pin(Data data)
data
- data referencepublic boolean unpin(Data data)
data
- data referencepublic void add(Data data)
data
- data referencepublic int pins(String db)
0
if the database is not opened.db
- name of the databaseCopyright © 2005–2015 BaseX Team. All rights reserved.