Module org.postgresql.pljava
Package org.postgresql.pljava.model
Interface CatalogObject.Addressed<T extends CatalogObject.Addressed<T>>
- Type Parameters:
T
- Specific subtype of Addressed that represents catalog objects with the given class id.
- All Superinterfaces:
CatalogObject
- All Known Subinterfaces:
Attribute
,Database
,Extension
,ProceduralLanguage
,RegClass
,RegClass.Known<T>
,RegCollation
,RegConfig
,RegDictionary
,RegNamespace
,RegOperator
,RegProcedure<M>
,RegRole
,RegRole.Grantee
,RegType
,RegType.Unresolved
- Enclosing interface:
CatalogObject
public static interface CatalogObject.Addressed<T extends CatalogObject.Addressed<T>>
extends CatalogObject
A catalog object that has both
oid
and classId
specified,
and can be looked up in the PostgreSQL catalogs (where it may, or may
not, be found).-
Nested Class Summary
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
Fields inherited from interface org.postgresql.pljava.model.CatalogObject
InvalidOid
-
Method Summary
Modifier and TypeMethodDescriptionclassId()
Returns theclassId
(which is an instance ofRegClass.Known
of this addressed catalog object.boolean
exists()
Whether a catalog object with this address in fact exists in the PostgreSQL catalogs.default boolean
shared()
Whether this catalog object is shared across all databases in the cluster.Methods inherited from interface org.postgresql.pljava.model.CatalogObject
isValid, of, oid
-
Method Details
-
classId
RegClass.Known<T> classId()Returns theclassId
(which is an instance ofRegClass.Known
of this addressed catalog object. -
exists
boolean exists()Whether a catalog object with this address in fact exists in the PostgreSQL catalogs.Unlike
isValid()
, which depends only on the value ofoid()
, this reflects the result of a catalog lookup.
-