Package com.cbe
Class Database
java.lang.Object
com.cbe.Database
A database of hierarcical containers and items.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDatabase()Database(long cPtr, boolean cMemoryOwn) Database(DefaultCtor arg0) -
Method Summary
Modifier and TypeMethodDescriptionlongThe containerId number.longcreated()Timestamp of when it was created.longThe databaseId number.
voiddelete()voidfinalize()static longname()The database name.
longownerId()The userId number of the owner.booleanChecks if it has a read lock.The top container of the database.booleanChecks if it has a write lock.
-
Field Details
-
swigCMemOwn
protected transient boolean swigCMemOwn
-
-
Constructor Details
-
Database
public Database(long cPtr, boolean cMemoryOwn) -
Database
public Database() -
Database
-
-
Method Details
-
getCPtr
-
finalize
public void finalize() -
delete
public void delete() -
name
The database name.
- Returns:
- std::string
-
databaseId
public long databaseId()The databaseId number.
- Returns:
- cbe::DatabaseId
-
containerId
public long containerId()The containerId number.
Refers to the top rootContainer of the database.
- Returns:
- cbe::ContainerId
-
ownerId
public long ownerId()The userId number of the owner.
- Returns:
- cbe::UserId
-
created
public long created()Timestamp of when it was created.
Given in unix epoch number format.
- Returns:
- cbe::Date
-
readLocked
public boolean readLocked()Checks if it has a read lock.
- Returns:
- true
-
writeLocked
public boolean writeLocked()Checks if it has a write lock.
- Returns:
- true
-
rootContainer
The top container of the database.
The whole container object.
- Returns:
- cbe::Container
-