org.postgresql.pljava.internal
Class AclId
java.lang.Object
org.postgresql.pljava.internal.AclId
public final class AclId
extends java.lang.Object
The AclId
correspons to the internal PostgreSQL AclId
.
AclId(int nativeAclId) - Called from native code.
|
boolean | equals(Object other) - Returns equal if other is an AclId that is equal to this id.
|
static AclId | fromName(String name) - Return the id of the session user.
|
String | getName() - Return the name that corresponds to this id.
|
static AclId | getSessionUser() - Return the id of the session user.
|
static AclId | getUser() - Return the id of the current database user.
|
boolean | hasSchemaCreatePermission(Oid oid) - Return true if this AclId has the right to create new objects
in the given schema.
|
int | hashCode() - Returns the hashCode of this id.
|
int | intValue() - Returns the integer value of this id.
|
boolean | isSuperuser() - Returns true if this AclId represents a super user.
|
String | toString() - Returns the result of calling #getName().
|
AclId
public AclId(int nativeAclId)
Called from native code.
equals
public boolean equals(Object other)
Returns equal if other is an AclId that is equal to this id.
fromName
public static AclId fromName(String name)
throws SQLException
Return the id of the session user.
getName
public String getName()
Return the name that corresponds to this id.
getSessionUser
public static AclId getSessionUser()
Return the id of the session user.
getUser
public static AclId getUser()
Return the id of the current database user.
hasSchemaCreatePermission
public boolean hasSchemaCreatePermission(Oid oid)
Return true if this AclId has the right to create new objects
in the given schema.
hashCode
public int hashCode()
Returns the hashCode of this id.
intValue
public int intValue()
Returns the integer value of this id.
isSuperuser
public boolean isSuperuser()
Returns true if this AclId represents a super user.
toString
public String toString()
Returns the result of calling #getName().
Copyright (c) 2003, 2004, 2005 TADA AB - Taby Sweden. \
Distributed under the terms shown in COPYRIGHT