- 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 enumstatic interfaceRegClass.Known<T extends CatalogObject.Addressed<T>>A more-specifically-typed subinterface ofRegClass, used in theCLASSIDstatic fields of interfaces in this package.static enumstatic enumNested 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 TypeMethodDescriptionshortchecks()booleanTable options understood by theforeign serverif this is a foreign table, otherwise null.TheForeignServerif this is a foreign table, otherwise null.booleanhasIndex()booleanhasRules()booleanbooleanbooleanbooleanbooleanisShared()Whether this relation is shared across all databases in the cluster.kind()shortofType()Only for a relation that was created withCREATE TABLE ... OFtype, this will be that type; the invalidRegTypeotherwise.options()booleantype()The PostgreSQL type that is associated with this relation as its "row type".Methods inherited from interface org.postgresql.pljava.model.CatalogObject
isValid, of, oidMethods inherited from interface org.postgresql.pljava.model.CatalogObject.AccessControlled
grants, grantsMethods inherited from interface org.postgresql.pljava.model.CatalogObject.Addressed
classId, exists, sharedMethods inherited from interface org.postgresql.pljava.model.CatalogObject.Named
nameMethods inherited from interface org.postgresql.pljava.model.CatalogObject.Namespaced
namespace, namespaceName, qualifiedNameMethods 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
TupleDescriptorfor this relation. -
ofType
RegType ofType()Only for a relation that was created withCREATE TABLE ... OFtype, this will be that type; the invalidRegTypeotherwise.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()TheForeignServerif this is a foreign table, otherwise null. -
foreignOptions
Map<Lexicals.Identifier.Simple,String> foreignOptions()Table options understood by theforeign serverif this is a foreign table, otherwise null. -
tupleDescriptor
TupleDescriptor.Interned tupleDescriptor()
-