com.db4o
Interface ObjectServer
- All Known Subinterfaces:
- ExtObjectServer
- public interface ObjectServer
the db4o server class.
- See Also:
-
Db4o.openServer()
,
ExtObjectServer for
extended functionality.
Method Summary |
boolean |
close()
closes the ObjectServer and writes all cached data.
|
ExtObjectServer |
ext()
returns an ObjectServer with extended functionality.
|
void |
grantAccess(java.lang.String userName,
java.lang.String password)
grants client access to the specified user with the specified password.
|
close
public boolean close()
- closes the
ObjectServer
and writes all cached data.
- Returns:
- true - denotes that the last instance connected to the
used database file was closed.
ext
public ExtObjectServer ext()
- returns an ObjectServer with extended functionality.
Use this method as a convient accessor to extended methods.
Every ObjectServer can be casted to an ExtObjectServer.
The functionality is split to two interfaces to allow newcomers to
focus on the essential methods.
grantAccess
public void grantAccess(java.lang.String userName,
java.lang.String password)
- grants client access to the specified user with the specified password.
If the user already exists, the password is changed to
the specified password.
- Parameters:
userName
- the name of the userpassword
- the password to be used