org.apache.derby.impl.sql.catalog
Class SYSTABLEPERMSRowFactory
- java.lang.Object
-
- org.apache.derby.iapi.sql.dictionary.CatalogRowFactory
-
- org.apache.derby.impl.sql.catalog.SYSTABLEPERMSRowFactory
-
public class SYSTABLEPERMSRowFactory extends CatalogRowFactory
Factory for creating a SYSTABLEPERMS row.
-
-
Field Summary
Fields Modifier and Type Field and Description static intGRANTEE_COL_NUM_IN_GRANTEE_TABLE_GRANTOR_INDEXstatic intGRANTEE_TABLE_GRANTOR_INDEX_NUMstatic intTABLEID_INDEX_NUMstatic intTABLEPERMSID_INDEX_NUM
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SystemColumn[]buildColumnList()builds a column list for the catalogTupleDescriptorbuildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary)builds a tuple descriptor from a rowExecIndexRowbuildIndexKeyRow(int indexNumber, PermissionsDescriptor perm)builds a key row given for a given index number.intgetPrimaryKeyIndexNumber()Get the index number for the primary key index on this catalog.ExecRowmakeRow(TupleDescriptor td, TupleDescriptor parent)most subclasses should provide this method.intorPermissions(ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged)Or a set of permissions in with a row from this catalog tableintremovePermissions(ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged)Remove a set of permissions from a row from this catalog tablevoidsetUUIDOfThePassedDescriptor(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.iapi.sql.dictionary.CatalogRowFactory
generateIndexName, getCanonicalHeapName, getCanonicalHeapUUID, getCanonicalIndexUUID, getCanonicalTableUUID, getCatalogName, getCreateHeapProperties, getCreateIndexProperties, getDataValueFactory, getExecutionFactory, getHeapColumnCount, getIndexColumnCount, getIndexColumnPositions, getIndexName, getNumIndexes, getUUIDFactory, initInfo, isIndexUnique, makeEmptyRow, makeEmptyRowForCurrentVersion
-
-
-
-
Field Detail
-
GRANTEE_TABLE_GRANTOR_INDEX_NUM
public static final int GRANTEE_TABLE_GRANTOR_INDEX_NUM
- See Also:
- Constant Field Values
-
TABLEPERMSID_INDEX_NUM
public static final int TABLEPERMSID_INDEX_NUM
- See Also:
- Constant Field Values
-
TABLEID_INDEX_NUM
public static final int TABLEID_INDEX_NUM
- See Also:
- Constant Field Values
-
GRANTEE_COL_NUM_IN_GRANTEE_TABLE_GRANTOR_INDEX
public static final int GRANTEE_COL_NUM_IN_GRANTEE_TABLE_GRANTOR_INDEX
- See Also:
- Constant Field Values
-
-
Method Detail
-
makeRow
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException
Description copied from class:CatalogRowFactorymost subclasses should provide this method. One or two oddball cases in Replication and SysSTATEMENTSRowFactory don't. For those we call makeRow with the additional arguments.- Overrides:
makeRowin classCatalogRowFactory- Throws:
StandardException
-
buildDescriptor
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException
builds a tuple descriptor from a row- Specified by:
buildDescriptorin classCatalogRowFactory- Throws:
StandardException
-
buildColumnList
public SystemColumn[] buildColumnList() throws StandardException
builds a column list for the catalog- Specified by:
buildColumnListin classCatalogRowFactory- Throws:
StandardException
-
buildIndexKeyRow
public ExecIndexRow buildIndexKeyRow(int indexNumber, PermissionsDescriptor perm) throws StandardException
builds a key row given for a given index number.perm- a permission descriptor of the appropriate class for this PermissionsCatalogRowFactory class.- Throws:
StandardException- standard error policy
-
getPrimaryKeyIndexNumber
public int getPrimaryKeyIndexNumber()
Description copied from class:CatalogRowFactoryGet the index number for the primary key index on this catalog.- Overrides:
getPrimaryKeyIndexNumberin classCatalogRowFactory- Returns:
- a 0-based number
-
orPermissions
public int orPermissions(ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged) throws StandardException
Or a set of permissions in with a row from this catalog table- Parameters:
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 changed- Returns:
- The number of columns that were changed.
- Throws:
StandardException- standard error policy
-
removePermissions
public int removePermissions(ExecRow row, PermissionsDescriptor perm, boolean[] colsChanged) throws StandardException
Remove a set of permissions from a row from this catalog table- Parameters:
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 changed- Returns:
- -1 if there are no permissions left in the row, otherwise the number of columns that were changed.
- Throws:
StandardException- standard error policy
-
setUUIDOfThePassedDescriptor
public void setUUIDOfThePassedDescriptor(ExecRow row, PermissionsDescriptor perm) throws StandardException
Set the uuid of the passed permission descriptor to the uuid of the row from the system table. DataDictionary will make this call before calling the dependency manager to send invalidation messages to the objects dependent on the permission descriptor's uuid.- Parameters:
row- The row from the system table for the passed permission descriptorperm- Permission descriptor- Throws:
StandardException- See Also:
PermissionsCatalogRowFactory.setUUIDOfThePassedDescriptor(org.apache.derby.iapi.sql.execute.ExecRow, org.apache.derby.iapi.sql.dictionary.PermissionsDescriptor)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG