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
Nested ClassesModifier and TypeClassDescriptionstatic final classJavaPrincipalrepresenting a PostgreSQLPROCEDURAL LANGUAGEthat was declared with theTRUSTEDkeyword and can be used to declare new functions by any role that has been grantedUSAGEpermission on it.static final classJavaPrincipalrepresenting a PostgreSQLPROCEDURAL LANGUAGEthat was declared without theTRUSTEDkeyword, and can be used to declare new functions only by a PostgreSQL superuser. -
Field Summary
Fields -
Method Summary
-
Field Details
-
m_name
-
-
Method Details
-
trust
Returns eitherSANDBOXEDorUNSANDBOXEDaccording to PostgreSQL's catalog entry for the language. -
equals
-
toString
-
hashCode
public int hashCode() -
getName
-