|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabaseStorage
Nested Class Summary | |
---|---|
static class |
DatabaseStorage.UserDatabase
Info about a connection to the database that a user has. |
Field Summary | |
---|---|
static java.lang.String |
READ
|
static java.lang.String |
WRITE
|
Method Summary | |
---|---|
void |
close()
|
void |
connect()
Connect to the database. |
boolean |
createDatabase(java.lang.String databaseName)
|
void |
createDatabaseUser(java.lang.String username,
java.lang.String password)
|
boolean |
deleteDatabase(java.lang.String databaseName)
|
void |
deleteDatabaseUser(java.lang.String username)
|
boolean |
doesDatabaseExist(java.lang.String databaseName)
|
java.util.Vector |
getAccessibleDatabases()
|
java.util.List<DatabaseStorage.UserDatabase> |
getCurrentUsers()
Get the current users connected to databases. |
java.lang.String |
getDatabaseHelpURL()
Optionally, return a URL as a string that the user can go to for help installing and running this database, especially when it doesn't work, etc. |
HasKeyValues |
getDatabaseKeyValuesForDatabase(java.lang.String hostName,
java.lang.String databaseName,
java.lang.String userID,
java.lang.String password)
|
java.lang.String |
getDatabaseName()
Optionally, return a database name for the user to se. |
java.lang.String |
getDatabaseStringForDatabase(java.lang.String hostName,
java.lang.String databaseName,
java.lang.String userID,
java.lang.String password)
|
boolean |
grantDatabasePrivs(java.lang.String dbname,
java.lang.String userName,
java.lang.String priv)
|
void |
renameDatabaseUser(java.lang.String username,
java.lang.String newUsername)
|
boolean |
revokeDatabasePrivs(java.lang.String dbname,
java.lang.String userName,
java.lang.String priv)
|
void |
updateDatabaseUser(java.lang.String username,
java.lang.String password)
|
Field Detail |
---|
static final java.lang.String READ
static final java.lang.String WRITE
Method Detail |
---|
void connect() throws java.lang.Throwable
java.lang.Throwable
java.lang.String getDatabaseStringForDatabase(java.lang.String hostName, java.lang.String databaseName, java.lang.String userID, java.lang.String password)
HasKeyValues getDatabaseKeyValuesForDatabase(java.lang.String hostName, java.lang.String databaseName, java.lang.String userID, java.lang.String password)
java.util.Vector getAccessibleDatabases()
boolean createDatabase(java.lang.String databaseName)
boolean deleteDatabase(java.lang.String databaseName)
boolean doesDatabaseExist(java.lang.String databaseName)
java.util.List<DatabaseStorage.UserDatabase> getCurrentUsers()
void close()
java.lang.String getDatabaseName()
java.lang.String getDatabaseHelpURL()
boolean revokeDatabasePrivs(java.lang.String dbname, java.lang.String userName, java.lang.String priv)
boolean grantDatabasePrivs(java.lang.String dbname, java.lang.String userName, java.lang.String priv)
void createDatabaseUser(java.lang.String username, java.lang.String password)
void updateDatabaseUser(java.lang.String username, java.lang.String password)
void renameDatabaseUser(java.lang.String username, java.lang.String newUsername)
void deleteDatabaseUser(java.lang.String username)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |