org.postgresql.pljava.internal

Class AclId


public final class AclId
extends java.lang.Object

The AclId correspons to the internal PostgreSQL AclId.

Constructor Summary

AclId(int nativeAclId)
Called from native code.

Method Summary

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().

Constructor Details

AclId

public AclId(int nativeAclId)
Called from native code.

Method Details

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