class SYSCOLPERMSRowFactory extends PermissionsCatalogRowFactory
| Modifier and Type | Field and Description |
|---|---|
private static int |
COLPERMSID_COL_NUM |
(package private) static int |
COLPERMSID_INDEX_NUM |
private static int |
COLUMN_COUNT |
protected static int |
COLUMNS_COL_NUM |
private static int |
GRANTEE_COL_NUM |
static int |
GRANTEE_COL_NUM_IN_GRANTEE_TABLE_TYPE_GRANTOR_INDEX |
(package private) static int |
GRANTEE_TABLE_TYPE_GRANTOR_INDEX_NUM |
private static int |
GRANTOR_COL_NUM |
private static int[][] |
indexColumnPositions |
private static boolean[] |
indexUniqueness |
private static int |
TABLEID_COL_NUM |
(package private) static int |
TABLEID_INDEX_NUM |
(package private) static java.lang.String |
TABLENAME_STRING |
protected static int |
TOTAL_NUM_OF_INDEXES |
private static int |
TYPE_COL_NUM |
private static java.lang.String[] |
uuids |
dvf, heapUUID, indexNames, indexUUID, tableUUID| Constructor and Description |
|---|
SYSCOLPERMSRowFactory(UUIDFactory uuidf,
ExecutionFactory ef,
DataValueFactory dvf) |
| Modifier and Type | Method and Description |
|---|---|
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 an index key row 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.
|
int |
orPermissions(ExecRow row,
PermissionsDescriptor perm,
boolean[] colsChanged)
Or a set of permissions in with a row from this catalog table
|
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.
|
getAuthorizationID, getAuthorizationID, getNullAuthorizationIDgenerateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateHeapProperties, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRowstatic final java.lang.String TABLENAME_STRING
private static final int COLPERMSID_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 TYPE_COL_NUM
protected static final int COLUMNS_COL_NUM
private static final int COLUMN_COUNT
static final int GRANTEE_TABLE_TYPE_GRANTOR_INDEX_NUM
static final int COLPERMSID_INDEX_NUM
static final int TABLEID_INDEX_NUM
protected static final int TOTAL_NUM_OF_INDEXES
private static final int[][] indexColumnPositions
public static final int GRANTEE_COL_NUM_IN_GRANTEE_TABLE_TYPE_GRANTOR_INDEX
private static final boolean[] indexUniqueness
private static final java.lang.String[] uuids
SYSCOLPERMSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException
CatalogRowFactorymakeRow in class CatalogRowFactoryStandardExceptionpublic TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException
buildDescriptor in class CatalogRowFactoryStandardExceptionpublic SystemColumn[] buildColumnList() throws StandardException
buildColumnList in class CatalogRowFactoryStandardExceptionpublic 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()
CatalogRowFactorygetPrimaryKeyIndexNumber in class CatalogRowFactorypublic 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 changedStandardException - standard error policypublic 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 changedStandardException - standard error policypublic void setUUIDOfThePassedDescriptor(ExecRow row, PermissionsDescriptor perm) throws StandardException
PermissionsCatalogRowFactorysetUUIDOfThePassedDescriptor in class PermissionsCatalogRowFactoryrow - The row from the system table for the passed permission descriptorperm - Permission descriptorStandardExceptionPermissionsCatalogRowFactory.setUUIDOfThePassedDescriptor(org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor)Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.