- java.lang.Object
-
- org.postgresql.pljava.PLPrincipal
-
- All Implemented Interfaces:
Serializable
,Principal
- Direct Known Subclasses:
PLPrincipal.Sandboxed
,PLPrincipal.Unsandboxed
public abstract class PLPrincipal extends Object
JavaPrincipal
representing a PostgreSQLPROCEDURAL LANGUAGE
, which has a name (a simple identifier, not schema-qualified) and is eitherSandboxed
(declared with SQLCREATE TRUSTED LANGUAGE
orUnsandboxed
.Only the subclasses,
Sandboxed
orUnsandboxed
can be instantiated, or granted permissions in policy.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PLPrincipal.Sandboxed
JavaPrincipal
representing a PostgreSQLPROCEDURAL LANGUAGE
that was declared with theTRUSTED
keyword and can be used to declare new functions by any role that has been grantedUSAGE
permission on it.static class
PLPrincipal.Unsandboxed
JavaPrincipal
representing a PostgreSQLPROCEDURAL LANGUAGE
that was declared without theTRUSTED
keyword, and can be used to declare new functions only by a PostgreSQL superuser.
-
Field Summary
Fields Modifier and Type Field Description protected Lexicals.Identifier.Simple
m_name
-
-
-
Field Detail
-
m_name
protected final Lexicals.Identifier.Simple m_name
-
-
Method Detail
-
trust
public abstract Function.Trust trust()
Returns eitherSANDBOXED
orUNSANDBOXED
according to PostgreSQL's catalog entry for the language.
-
equals
public boolean equals(Object other)
-
toString
public String toString()
-
hashCode
public int hashCode()
-
-