borland Packages Class Hierarchy datastore Package
com.borland.datastore.DataStoreRights
Variables
DataStoreRights
defines the rights which can be assigned to a user in the /SYS/USERS
table. By default, JDataStore databases do not require users to be authenticated to access the database. User authentication becomes enabled for a database when the first user is added to the /SYS/USERS
table. Note that a user that exists in the table, but has no rights assigned can open table or file streams in read-only mode.
static final int ADMINISTRATOR = 0x02A user with the
ADMINISTRATOR
right can read the /SYS/USERS table. They can also add/remove users from the /SYS/USERS table. This right also allows encryption of the database. If a database has user authentication enabled, there must always be at least one ADMINISTRATOR
.
static final int CREATE = 0x010A user with the
CREATE
right can create table and file streams in the database.
static final int DROP = 0x020A user with the
DROP
right can drop a table or file stream in the database.
static final int FULL_RIGHTS = ADMINISTRATOR|WRITE|CREATE|DROP|RENAME|STARTUP
FULL_RIGHTS
includes all of the rights for the database.
static final int RENAME = 0x040A user with the
RENAME
right can rename a table or file stream in the database.
static final int STARTUP = 0x01A user with the
STARTUP
right can start up the database. The first connection opened "starts up" the database. Connections that do not have the STARTUP
right cannot open a database that is not currently open by any other connections. For encrypted databases the master key is encrypted for every user that has the STARTUP
right. Whenever a database is closed, it requires a user with the STARTUP
right to open it. This right is only needed for the first user to open a JDataStore database.
static final int WRITE = 0x08A user with the
WRITE
right can read and write any table or file stream in the database.