org.jclouds.openstack.trove.v1.features
Interface DatabaseApi


public interface DatabaseApi

This API is for creating, listing, and deleting a Database

See Also:
api doc, api src

Method Summary
 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.
 

Method Detail

create

@Named(value="database:create")
boolean create(String database)
Same as create(String, null, null)

See Also:
create(String, String, String)

create

@Named(value="database:create")
boolean create(String database,
                     String character_set,
                     String collate)
This operation creates a new database within the specified instance.

Parameters:
database - The name of the database to be created
character_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.
Returns:
true if successful.

delete

@Named(value="databases:delete")
boolean delete(String databaseName)
This operation deletes the specified database for the specified database instance.

Parameters:
databaseName - The name for the specified database.
Returns:
true if successful.

list

@Named(value="database:list")
com.google.common.collect.FluentIterable<String> list()
This operation lists the databases for the specified database instance.

Returns:
The list of Databases.


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.