public class SYSPERMSRowFactory extends PermissionsCatalogRowFactory
Modifier and Type | Field | Description |
---|---|---|
static int |
GRANTEE_OBJECTID_GRANTOR_INDEX_NUM |
|
private static int[][] |
indexColumnPositions |
|
static int |
PERMS_OBJECTID_IDX_NUM |
|
static int |
PERMS_UUID_IDX_NUM |
|
private static int |
SYSPERMS_COLUMN_COUNT |
|
private static int |
SYSPERMS_GRANTEE |
|
private static int |
SYSPERMS_GRANTOR |
|
private static int |
SYSPERMS_IS_GRANTABLE |
|
private static int |
SYSPERMS_OBJECTID |
|
private static int |
SYSPERMS_OBJECTTYPE |
|
private static int |
SYSPERMS_PERMISSION |
|
private static int |
SYSPERMS_PERMISSIONID |
|
private static java.lang.String |
TABLENAME_STRING |
|
private static boolean[] |
uniqueness |
|
private static java.lang.String[] |
uuids |
dvf, heapUUID, indexNames, indexUniqueness, indexUUID, tableUUID
Constructor | Description |
---|---|
SYSPERMSRowFactory(UUIDFactory uuidf,
ExecutionFactory ef,
DataValueFactory dvf) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
SystemColumn[] |
buildColumnList() |
Builds a list of columns suitable for creating this Catalog.
|
TupleDescriptor |
buildDescriptor(ExecRow row,
TupleDescriptor parentTupleDescriptor,
DataDictionary dd) |
Make an Tuple Descriptor out of a SYSPERMS row
|
ExecIndexRow |
buildIndexKeyRow(int indexNumber,
PermissionsDescriptor perm) |
builds an index 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) |
Make a SYSPERMS row
|
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
|
(package private) void |
setUUIDOfThePassedDescriptor(ExecRow row,
PermissionsDescriptor perm) |
Set the uuid of the passed permission descriptor to the uuid of the row
from the system table.
|
generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateHeapProperties, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRow, makeEmptyRowForCurrentVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAuthorizationID, getAuthorizationID, getNullAuthorizationID
private static final java.lang.String TABLENAME_STRING
private static final int SYSPERMS_COLUMN_COUNT
private static final int SYSPERMS_PERMISSIONID
private static final int SYSPERMS_OBJECTTYPE
private static final int SYSPERMS_OBJECTID
private static final int SYSPERMS_PERMISSION
private static final int SYSPERMS_GRANTOR
private static final int SYSPERMS_GRANTEE
private static final int SYSPERMS_IS_GRANTABLE
private static final int[][] indexColumnPositions
public static final int PERMS_UUID_IDX_NUM
public static final int PERMS_OBJECTID_IDX_NUM
public static final int GRANTEE_OBJECTID_GRANTOR_INDEX_NUM
private static final boolean[] uniqueness
private static final java.lang.String[] uuids
SYSPERMSRowFactory(UUIDFactory uuidf, ExecutionFactory ef, DataValueFactory dvf)
uuidf
- UUIDFactoryef
- ExecutionFactorydvf
- DataValueFactorypublic ExecIndexRow buildIndexKeyRow(int indexNumber, PermissionsDescriptor perm) throws StandardException
buildIndexKeyRow
in class PermissionsCatalogRowFactory
perm
- 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 PermissionsCatalogRowFactory
row
- 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 PermissionsCatalogRowFactory
row
- 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 policyvoid setUUIDOfThePassedDescriptor(ExecRow row, PermissionsDescriptor perm) throws StandardException
PermissionsCatalogRowFactory
setUUIDOfThePassedDescriptor
in class PermissionsCatalogRowFactory
row
- The row from the system table for the passed permission descriptorperm
- Permission descriptorStandardException
PermissionsCatalogRowFactory.setUUIDOfThePassedDescriptor(org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor)
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException
makeRow
in class CatalogRowFactory
td
- a permission descriptorparent
- unusedStandardException
- thrown on failurepublic TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd) throws StandardException
buildDescriptor
in class CatalogRowFactory
row
- a SYSPERMS rowparentTupleDescriptor
- unuseddd
- dataDictionaryStandardException
- thrown on failurepublic SystemColumn[] buildColumnList() throws StandardException
buildColumnList
in class CatalogRowFactory
StandardException
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.