java.lang.Object
org.postgresql.pljava.PLPrincipal
- All Implemented Interfaces:
Serializable
,Principal
- Direct Known Subclasses:
PLPrincipal.Sandboxed
,PLPrincipal.Unsandboxed
Java
Principal
representing a PostgreSQL PROCEDURAL LANGUAGE
,
which has a name (a simple identifier, not schema-qualified) and is either
Sandboxed
(declared with SQL CREATE TRUSTED LANGUAGE
or
Unsandboxed
.
Only the subclasses, Sandboxed
or Unsandboxed
can be
instantiated, or granted permissions in policy.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
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 final class
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
-
Method Summary
-
Field Details
-
m_name
-
-
Method Details
-
trust
Returns eitherSANDBOXED
orUNSANDBOXED
according to PostgreSQL's catalog entry for the language. -
equals
-
toString
-
hashCode
public int hashCode() -
getName
-