public interface DatabaseApi
Modifier and Type | Method and Description |
---|---|
boolean |
create(String database)
Same as create(String, null, null)
|
boolean |
create(String database,
String character_set,
String collate)
This operation creates a new database within the specified instance.
|
boolean |
delete(String databaseName)
This operation deletes the specified database for the specified database instance.
|
com.google.common.collect.FluentIterable<String> |
list()
This operation lists the databases for the specified database instance.
|
@Named(value="database:create") boolean create(String database)
create(String, String, String)
@Named(value="database:create") boolean create(String database, String character_set, String collate)
database
- The name of the database to be createdcharacter_set
- Optional. Set of symbols and encodings. The default character set is utf8.collate
- Optional. Set of rules for comparing characters in a character set. The default value for collate is utf8_general_ci.@Named(value="databases:delete") boolean delete(String databaseName)
databaseName
- The name for the specified database.@Named(value="database:list") com.google.common.collect.FluentIterable<String> list()
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.