|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.iapi.sql.dictionary.CatalogRowFactory
org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory
org.apache.derby.impl.sql.catalog.SYSTABLEPERMSRowFactory
public class SYSTABLEPERMSRowFactory
Factory for creating a SYSTABLEPERMS row.
| Field Summary | |
|---|---|
private static int |
COLUMN_COUNT
|
private static int |
DELETEPRIV_COL_NUM
|
private static int |
GRANTEE_COL_NUM
|
static int |
GRANTEE_COL_NUM_IN_GRANTEE_TABLE_GRANTOR_INDEX
|
static int |
GRANTEE_TABLE_GRANTOR_INDEX_NUM
|
private static int |
GRANTOR_COL_NUM
|
private static int[][] |
indexColumnPositions
|
private static boolean[] |
indexUniqueness
|
private static int |
INSERTPRIV_COL_NUM
|
private static int |
REFERENCESPRIV_COL_NUM
|
private static int |
SELECTPRIV_COL_NUM
|
private static int |
TABLEID_COL_NUM
|
static int |
TABLEID_INDEX_NUM
|
(package private) static java.lang.String |
TABLENAME_STRING
|
private static int |
TABLEPERMSID_COL_NUM
|
static int |
TABLEPERMSID_INDEX_NUM
|
private static int |
TRIGGERPRIV_COL_NUM
|
private static int |
UPDATEPRIV_COL_NUM
|
private static java.lang.String[] |
uuids
|
| Fields inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory |
|---|
dvf, heapUUID, indexNames, indexUUID, tableUUID |
| Constructor Summary | |
|---|---|
SYSTABLEPERMSRowFactory(UUIDFactory uuidf,
ExecutionFactory ef,
DataValueFactory dvf)
|
|
| Method Summary | |
|---|---|
SystemColumn[] |
buildColumnList()
builds a column list for the catalog |
TupleDescriptor |
buildDescriptor(ExecRow row,
TupleDescriptor parentTuple,
DataDictionary dataDictionary)
builds a tuple descriptor from a row |
ExecIndexRow |
buildIndexKeyRow(int indexNumber,
PermissionsDescriptor perm)
builds a key row given for a given index number. |
int |
getPrimaryKeyIndexNumber()
Get the index number for the primary key index on this catalog. |
ExecRow |
makeRow(TupleDescriptor td,
TupleDescriptor parent)
most subclasses should provide this method. |
private int |
orOnePermission(ExecRow row,
boolean[] colsChanged,
int column,
java.lang.String permission)
|
int |
orPermissions(ExecRow row,
PermissionsDescriptor perm,
boolean[] colsChanged)
Or a set of permissions in with a row from this catalog table |
private boolean |
removeOnePermission(ExecRow row,
boolean[] colsChanged,
int column,
java.lang.String permission)
|
int |
removePermissions(ExecRow row,
PermissionsDescriptor perm,
boolean[] colsChanged)
Remove a set of permissions from a row from this catalog table |
void |
setUUIDOfThePassedDescriptor(ExecRow row,
PermissionsDescriptor perm)
Set the uuid of the passed permission descriptor to the uuid of the row from the system table. |
| Methods inherited from class org.apache.derby.impl.sql.catalog.PermissionsCatalogRowFactory |
|---|
getAuthorizationID, getAuthorizationID, getNullAuthorizationID |
| Methods inherited from class org.apache.derby.iapi.sql.dictionary.CatalogRowFactory |
|---|
generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateHeapProperties, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final java.lang.String TABLENAME_STRING
private static final int TABLEPERMSID_COL_NUM
private static final int GRANTEE_COL_NUM
private static final int GRANTOR_COL_NUM
private static final int TABLEID_COL_NUM
private static final int SELECTPRIV_COL_NUM
private static final int DELETEPRIV_COL_NUM
private static final int INSERTPRIV_COL_NUM
private static final int UPDATEPRIV_COL_NUM
private static final int REFERENCESPRIV_COL_NUM
private static final int TRIGGERPRIV_COL_NUM
private static final int COLUMN_COUNT
public static final int GRANTEE_TABLE_GRANTOR_INDEX_NUM
public static final int TABLEPERMSID_INDEX_NUM
public static final int TABLEID_INDEX_NUM
private static final int[][] indexColumnPositions
public static final int GRANTEE_COL_NUM_IN_GRANTEE_TABLE_GRANTOR_INDEX
private static final boolean[] indexUniqueness
private static final java.lang.String[] uuids
| Constructor Detail |
|---|
SYSTABLEPERMSRowFactory(UUIDFactory uuidf,
ExecutionFactory ef,
DataValueFactory dvf)
| Method Detail |
|---|
public ExecRow makeRow(TupleDescriptor td,
TupleDescriptor parent)
throws StandardException
CatalogRowFactory
makeRow in class CatalogRowFactoryStandardException
public TupleDescriptor buildDescriptor(ExecRow row,
TupleDescriptor parentTuple,
DataDictionary dataDictionary)
throws StandardException
buildDescriptor in class CatalogRowFactoryStandardException
public SystemColumn[] buildColumnList()
throws StandardException
buildColumnList in class CatalogRowFactoryStandardException
public ExecIndexRow buildIndexKeyRow(int indexNumber,
PermissionsDescriptor perm)
throws StandardException
buildIndexKeyRow in class PermissionsCatalogRowFactoryperm - a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.
StandardException - standard error policypublic int getPrimaryKeyIndexNumber()
CatalogRowFactory
getPrimaryKeyIndexNumber in class CatalogRowFactory
public int orPermissions(ExecRow row,
PermissionsDescriptor perm,
boolean[] colsChanged)
throws StandardException
orPermissions in class PermissionsCatalogRowFactoryrow - an existing rowperm - a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.colsChanged - An array with one element for each column in row. It is updated to
indicate which columns in row were changed
StandardException - standard error policy
private int orOnePermission(ExecRow row,
boolean[] colsChanged,
int column,
java.lang.String permission)
throws StandardException
StandardException
public int removePermissions(ExecRow row,
PermissionsDescriptor perm,
boolean[] colsChanged)
throws StandardException
removePermissions in class PermissionsCatalogRowFactoryrow - an existing rowperm - a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.colsChanged - An array with one element for each column in row. It is updated to
indicate which columns in row were changed
StandardException - standard error policy
private boolean removeOnePermission(ExecRow row,
boolean[] colsChanged,
int column,
java.lang.String permission)
throws StandardException
StandardException
public void setUUIDOfThePassedDescriptor(ExecRow row,
PermissionsDescriptor perm)
throws StandardException
PermissionsCatalogRowFactory
setUUIDOfThePassedDescriptor in class PermissionsCatalogRowFactoryrow - The row from the system table for the passed permission descriptorperm - Permission descriptor
StandardExceptionPermissionsCatalogRowFactory.setUUIDOfThePassedDescriptor(org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor)
|
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 | ||||||||