Package com.cbe
Class Database
java.lang.Object
com.cbe.Database
A database of hierarcical containers and items.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDatabase()
Database
(long cPtr, boolean cMemoryOwn) Database
(DefaultCtor arg0) -
Method Summary
Modifier and TypeMethodDescriptionlong
The containerId number.long
created()
Timestamp of when it was created.long
The databaseId number.
void
delete()
void
finalize()
static long
name()
The database name.
long
ownerId()
The userId number of the owner.boolean
Checks if it has a read lock.The top container of the database.boolean
Checks 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
-