|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Admin API for the Schema.
Method Summary | |
void |
createIndex(java.lang.String vdbName,
java.lang.String createIndexStatement)
Creates an index in the Schema instance for the given VDB. |
void |
createSchema(java.lang.String vdbName,
java.lang.String schemaService)
Creates a Schema instance for the given VDB on the specified service. |
void |
createTable(java.lang.String vdbName,
java.lang.String createTableStatement,
TableAuthorization tableAuthz)
Creates a table in the Schema instance for the given VDB. |
void |
createView(java.lang.String vdbName,
java.lang.String createViewStatement,
TableAuthorization viewAuthz)
Creates a view in the Schema instance for the given VDB. |
void |
destroySchema(java.lang.String vdbName,
java.lang.String schemaService)
Removes the schema instance for the given VDB from the specified service. |
void |
dropIndex(java.lang.String vdbName,
java.lang.String indexName)
Drops an index from the Schema instance for the given VDB. |
void |
dropTable(java.lang.String vdbName,
java.lang.String tableName)
Drops a table from the Schema instance for the given VDB. |
void |
dropView(java.lang.String vdbName,
java.lang.String viewName)
Drops a view from the Schema instance for the given VDB. |
StringList |
getAllTables(java.lang.String vdbName)
Gets a list of all tables in the schema for the given VDB. |
TableAuthorization |
getAuthorizationRules(java.lang.String vdbName,
java.lang.String tableName)
Gets the authorization rules for the given table. |
TableDefinition |
getTableDefinition(java.lang.String vdbName,
java.lang.String tableName)
Gets the definition for table tableName in the given VDB. |
IndexList |
getTableIndexes(java.lang.String vdbName,
java.lang.String tableName)
Gets the list of indexes defined on the given table in the given VDB. |
void |
setAuthorizationRules(java.lang.String vdbName,
java.lang.String tableName,
TableAuthorization tableAuthz)
Sets the authorization rules for the given table. |
Methods inherited from interface org.glite.rgma.Service |
getProperty, getVersion, setProperty |
Method Detail |
public void createSchema(java.lang.String vdbName, java.lang.String schemaService) throws RGMAException, RemoteException
vdbName
- The VDB that owns the Schema instance.schemaService
- Schema service URL.
RemoteException
- If the service could not be contacted.
RGMAException
- If the Schema cannot be created.public void destroySchema(java.lang.String vdbName, java.lang.String schemaService) throws RGMAException, RemoteException
vdbName
- The VDB that owns the Schema instance.schemaService
- Schema service URL.
RemoteException
- If the service could not be contacted.
RGMAException
- If the Schema instance cannot be removed or does
not exist.public void createTable(java.lang.String vdbName, java.lang.String createTableStatement, TableAuthorization tableAuthz) throws RGMAException, RemoteException
vdbName
- Name of VDB.createTableStatement
- SQL CREATE TABLE statement.tableAuthz
- Table authorization details (for no authorization, use null
)
RemoteException
- If the service could not be contacted.
RGMAException
- If the table already exists and the Schema
definition given by createTableStatement does not match with the
stored R-GMA Schema description.public void dropTable(java.lang.String vdbName, java.lang.String tableName) throws RGMAException, RemoteException
vdbName
- Name of VDB.tableName
- Table to drop.
RemoteException
- If the service can not be contacted.
RGMAException
- If the table does not exist.public void createIndex(java.lang.String vdbName, java.lang.String createIndexStatement) throws RGMAException, RemoteException
vdbName
- Name of VDB.createIndexStatement
- SQL CREATE INDEX statement.
RemoteException
- If the service could not be contacted.
RGMAException
- If the index already exists or the CREATE INDEX statement
is invalid.public void dropIndex(java.lang.String vdbName, java.lang.String indexName) throws RGMAException, RemoteException
vdbName
- Name of VDB.indexName
- Index to drop.
RemoteException
- If the service can not be contacted.
RGMAException
- If the index does not exist.public void createView(java.lang.String vdbName, java.lang.String createViewStatement, TableAuthorization viewAuthz) throws RGMAException, RemoteException
vdbName
- Name of VDB.createViewStatement
- SQL CREATE VIEW statement.viewAuthz
- View authorization details (for no authorization, set
as null
)
RemoteException
- If the service could not be contacted.
RGMAException
- If the view already exists or the CREATE VIEW statement
is invalid.public void dropView(java.lang.String vdbName, java.lang.String viewName) throws RGMAException, RemoteException
vdbName
- Name of VDB.viewName
- View to drop.
RemoteException
- If the service can not be contacted.
RGMAException
- If the view does not exist.public StringList getAllTables(java.lang.String vdbName) throws RemoteException
vdbName
- Name of VDB.
RemoteException
- If the service could not be contacted.public TableDefinition getTableDefinition(java.lang.String vdbName, java.lang.String tableName) throws RGMAException, RemoteException
tableName
in the given VDB.
vdbName
- Name of VDB.tableName
- Name of table.
RemoteException
- If the service could not be contacted.
RGMAException
- If the table could not be foundpublic IndexList getTableIndexes(java.lang.String vdbName, java.lang.String tableName) throws RGMAException, RemoteException
vdbName
- Name of VDB.tableName
- Name of table.
RemoteException
- If the service could not be contacted.
RGMAException
- If the table could not be foundpublic void setAuthorizationRules(java.lang.String vdbName, java.lang.String tableName, TableAuthorization tableAuthz) throws RGMAException, RemoteException
vdbName
- Name of VDB.tableName
- Table name.tableAuthz
- Table authorization details (for no authorization, set
as null
).
RemoteException
- If the service could not be contacted.
RGMAException
- If the table does not exist or the rules are invalid.public TableAuthorization getAuthorizationRules(java.lang.String vdbName, java.lang.String tableName) throws RGMAException, RemoteException
vdbName
- Name of VDB.tableName
- Table name.
RemoteException
- If the service could not be contacted.
RGMAException
- If the table does not exist.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |