- 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 enum
static interface
RegClass.Known<T extends CatalogObject.Addressed<T>>
A more-specifically-typed subinterface ofRegClass
, used in theCLASSID
static fields of interfaces in this package.static enum
static enum
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
Table options understood by theforeign server
if this is a foreign table, otherwise null.TheForeignServer
if this is a foreign table, otherwise null.boolean
hasIndex()
boolean
hasRules()
boolean
boolean
boolean
boolean
boolean
isShared()
Whether this relation is shared across all databases in the cluster.kind()
short
ofType()
Only for a relation that was created withCREATE TABLE ... OF
type, this will be that type; the invalidRegType
otherwise.options()
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. -
accessMethod
AccessMethod accessMethod() -
tablespace
Tablespace tablespace() -
toastRelation
RegClass toastRelation() -
hasIndex
boolean hasIndex() -
persistence
RegClass.Persistence persistence() -
kind
RegClass.Kind kind() -
nAttributes
short nAttributes() -
checks
short checks() -
hasRules
boolean hasRules() -
hasTriggers
boolean hasTriggers() -
hasSubclass
boolean hasSubclass() -
rowSecurity
boolean rowSecurity() -
forceRowSecurity
boolean forceRowSecurity() -
isPopulated
boolean isPopulated() -
replicaIdentity
RegClass.ReplicaIdentity replicaIdentity() -
isPartition
boolean isPartition() -
options
Map<Lexicals.Identifier.Simple,String> options() -
partitionBound
SQLXML partitionBound() -
foreignServer
ForeignServer foreignServer()TheForeignServer
if this is a foreign table, otherwise null. -
foreignOptions
Map<Lexicals.Identifier.Simple,String> foreignOptions()Table options understood by theforeign server
if this is a foreign table, otherwise null. -
tupleDescriptor
TupleDescriptor.Interned tupleDescriptor()
-