- All Superinterfaces:
CatalogObject
,CatalogObject.AccessControlled<CatalogObject.Grant.OnClass>
,CatalogObject.Addressed<RegClass>
,CatalogObject.Named<Lexicals.Identifier.Simple>
,CatalogObject.Namespaced<Lexicals.Identifier.Simple>
,CatalogObject.Owned
- All Known Subinterfaces:
RegClass.Known<T>
public interface RegClass
extends CatalogObject.Addressed<RegClass>, CatalogObject.Namespaced<Lexicals.Identifier.Simple>, CatalogObject.Owned, CatalogObject.AccessControlled<CatalogObject.Grant.OnClass>
Model of PostgreSQL relations/"classes"/tables.
Instances of RegClass
also serve as the "class ID" values for
objects within the catalog (including for RegClass
objects, which
are no different from others in being defined by rows that appear in a
catalog table; there is a row in pg_class
for pg_class
).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
RegClass.Known<T extends CatalogObject.Addressed<T>>
A more-specifically-typed subinterface ofRegClass
, used in theCLASSID
static fields of interfaces in this package.Nested classes/interfaces inherited from interface org.postgresql.pljava.model.CatalogObject
CatalogObject.AccessControlled<T extends CatalogObject.Grant>, CatalogObject.Addressed<T extends CatalogObject.Addressed<T>>, CatalogObject.Component, CatalogObject.Grant, CatalogObject.Named<T extends Lexicals.Identifier.Unqualified<T>>, CatalogObject.Namespaced<T extends Lexicals.Identifier.Unqualified<T>>, CatalogObject.Owned
-
Field Summary
FieldsFields inherited from interface org.postgresql.pljava.model.CatalogObject
InvalidOid
-
Method Summary
Modifier and TypeMethodDescriptionshort
checks()
boolean
boolean
hasIndex()
boolean
hasRules()
boolean
boolean
boolean
boolean
boolean
isShared()
Whether this relation is shared across all databases in the cluster.short
ofType()
Only for a relation that was created withCREATE TABLE ... OF
type, this will be that type; the invalidRegType
otherwise.options()
This is a list ofkeyword=value
pairs and ought to have a more specific return type.boolean
type()
The PostgreSQL type that is associated with this relation as its "row type".Methods inherited from interface org.postgresql.pljava.model.CatalogObject
isValid, of, oid
Methods inherited from interface org.postgresql.pljava.model.CatalogObject.AccessControlled
grants, grants
Methods inherited from interface org.postgresql.pljava.model.CatalogObject.Addressed
classId, exists, shared
Methods inherited from interface org.postgresql.pljava.model.CatalogObject.Named
name
Methods inherited from interface org.postgresql.pljava.model.CatalogObject.Namespaced
namespace, namespaceName, qualifiedName
Methods inherited from interface org.postgresql.pljava.model.CatalogObject.Owned
owner
-
Field Details
-
CLASSID
-
-
Method Details
-
type
RegType type()The PostgreSQL type that is associated with this relation as its "row type".This is the type that will be found in a
TupleDescriptor
for this relation. -
ofType
RegType ofType()Only for a relation that was created withCREATE TABLE ... OF
type, this will be that type; the invalidRegType
otherwise.Even though the tuple structure will match, this is not the same type returned by
type()
; that will still be a type distinctly associated with this relation. -
toastRelation
RegClass toastRelation() -
hasIndex
boolean hasIndex() -
nAttributes
short nAttributes() -
checks
short checks() -
hasRules
boolean hasRules() -
hasTriggers
boolean hasTriggers() -
hasSubclass
boolean hasSubclass() -
rowSecurity
boolean rowSecurity() -
forceRowSecurity
boolean forceRowSecurity() -
isPopulated
boolean isPopulated() -
isPartition
boolean isPartition() -
options
This is a list ofkeyword=value
pairs and ought to have a more specific return type.XXX
-
tupleDescriptor
TupleDescriptor.Interned tupleDescriptor()
-