|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.vti.VTITemplate
org.apache.derby.diag.ContainedRoles
public class ContainedRoles
Contained roles shows all roles contained in the given identifier, or if the second argument, if given, is not 0, the inverse relation; all roles who contain the given role identifier.
To use it, query it as follows:
SELECT * FROM TABLE(SUSCS_DIAG.CONTAINED_ROLES('FOO')) t;
SELECT * FROM TABLE(CONTAINED_ROLES('FOO', 1)) t;
The following columns will be returned:
Field Summary | |
---|---|
private static ResultColumnDescriptor[] |
columnInfo
|
(package private) boolean |
initialized
|
(package private) boolean |
inverse
|
private static java.sql.ResultSetMetaData |
metadata
|
(package private) java.lang.String |
nextRole
|
(package private) RoleClosureIterator |
rci
|
(package private) java.lang.String |
role
|
Fields inherited from interface java.sql.ResultSet |
---|
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
Constructor Summary | |
---|---|
ContainedRoles(java.lang.String roleid)
Constructor. |
|
ContainedRoles(java.lang.String roleid,
int inverse)
Constructor. |
Method Summary | |
---|---|
void |
close()
|
java.sql.ResultSetMetaData |
getMetaData()
|
java.lang.String |
getString(int columnIndex)
|
boolean |
next()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.sql.ResultSet |
---|
getHoldability, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getRowId, getRowId, getSQLXML, getSQLXML, isClosed, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateRowId, updateRowId, updateSQLXML, updateSQLXML |
Methods inherited from interface java.sql.Wrapper |
---|
isWrapperFor, unwrap |
Field Detail |
---|
RoleClosureIterator rci
java.lang.String nextRole
boolean initialized
java.lang.String role
boolean inverse
private static final ResultColumnDescriptor[] columnInfo
private static final java.sql.ResultSetMetaData metadata
Constructor Detail |
---|
public ContainedRoles(java.lang.String roleid, int inverse) throws java.sql.SQLException
roleid
- The role identifier for which we want to find the set of
contained roles (inclusive). The identifier is expected to
be in SQL form (not case normal form).inverse
- If != 0, use the inverse relation: find those roles which
all contain roleid (inclusive).
java.sql.SQLException
- This is a public API, so the internal exception is
wrapped in SQLException.public ContainedRoles(java.lang.String roleid) throws java.sql.SQLException
roleid
- The role identifier for which we want to find the set of
contained roles (inclusive). The identifier is expected to
be in SQL form (not case normal form).
java.sql.SQLException
- This is a public API, so the internal exception is
wrapped in SQLException.Method Detail |
---|
public boolean next() throws java.sql.SQLException
java.sql.SQLException
ResultSet.next()
public void close()
ResultSet.close()
public java.sql.ResultSetMetaData getMetaData()
ResultSet.getMetaData()
public java.lang.String getString(int columnIndex) throws java.sql.SQLException
getString
in interface java.sql.ResultSet
getString
in class VTITemplate
java.sql.SQLException
- on unexpected JDBC errorResultSet.getString(int)
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |