|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.core.Context
public final class Context
This class offers as central database context. It references the currently opened database. Moreover, it provides references to the currently used, marked and copied node sets.
| Field Summary | |
|---|---|
Prop |
prop
Database properties. |
| Constructor Summary | |
|---|---|
Context()
Constructor. |
|
Context(Context ctx)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addToPool(Data d)
Adds the specified data reference to the pool. |
void |
close()
Closes the database instance. |
void |
closeDB()
Removes the current database context. |
Nodes |
copied()
Returns the copied context set. |
void |
copy(Nodes copy)
Sets the current node set as copy. |
Nodes |
current()
Returns the current context set. |
void |
current(Nodes curr)
Sets the current context set. |
Data |
data()
Returns data reference. |
void |
data(Data d)
Sets the data reference. |
Nodes |
marked()
Returns the marked context set. |
void |
marked(Nodes mark)
Sets the marked context set. |
void |
openDB(Data d)
Sets the specified data instance as current database. |
Data |
pin(java.lang.String name)
Pins the pool. |
boolean |
pinned(java.lang.String db)
Checks if the specified database is pinned. |
boolean |
root()
Returns true if all current nodes refer to document nodes. |
boolean |
unpin(Data d)
Unpins a data reference. |
void |
update()
Updates references to the document nodes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Prop prop
| Constructor Detail |
|---|
public Context()
public Context(Context ctx)
ctx - parent context| Method Detail |
|---|
public void close()
public boolean root()
public Data data()
public void openDB(Data d)
d - data referencepublic void closeDB()
public void update()
public Nodes current()
public void current(Nodes curr)
curr - current context setpublic void data(Data d)
d - data referencepublic Nodes copied()
public void copy(Nodes copy)
copy - current node set as copy.public Nodes marked()
public void marked(Nodes mark)
mark - marked context setpublic Data pin(java.lang.String name)
name - name of database
public boolean unpin(Data d)
d - data reference
public void addToPool(Data d)
d - data referencepublic boolean pinned(java.lang.String db)
db - name of database
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||