|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.vti.VTITemplateBase
org.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 org.apache.derby.vti.VTITemplate |
|---|
getBigDecimal, getBigDecimal, getBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getObject, getShort, getString, getTime, getTimestamp |
| 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
next in interface java.sql.ResultSetnext in class VTITemplatejava.sql.SQLExceptionResultSet.next()public void close()
close in interface java.sql.ResultSetclose in class VTITemplateResultSet.close()public java.sql.ResultSetMetaData getMetaData()
getMetaData in interface java.sql.ResultSetgetMetaData in class VTITemplateBaseResultSet.getMetaData()
public java.lang.String getString(int columnIndex)
throws java.sql.SQLException
getString in interface java.sql.ResultSetgetString in class VTITemplateBasejava.sql.SQLExceptionResultSet.getString(int)
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||