Java Doc for User.java in  » Database-DBMS » hsql » org » hsqldb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » hsql » org.hsqldb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.hsqldb.User

User
public class User (Code)
A User Object holds the name, password for a particular database user.

Enhanced in successive versions of HSQLDB.
author:
   Thomas Mueller (Hypersonic SQL Group)
version:
   1.8.0
since:
   Hypersonic SQL




Constructor Summary
 User(String name, String password, Grantee inGrantee)
    

Method Summary
 voidcheck(HsqlName dbobject, int rights)
     Checks if any of the rights represented by the rights argument have been granted on the specified database object.
 voidcheck(String dbobject)
    
 voidcheckAdmin()
     Checks that this User object is for a user with the database administrator role.
 voidcheckPassword(String test)
     Checks if this object's password attibute equals specified argument, else throws.
 StringgetAlterUserDDL()
     Returns the ALTER USER DDL character sequence that preserves the this user's current password value and mode.
public  StringgetConnectStatement()
    
 StringgetCreateUserDDL()
     returns the DDL string sequence that creates this user.
 HashSetgetGrantedClassNames(boolean andToPublic)
     Retrieves the distinct set of Java Class FQNs for which this User object has been granted ALL (the Class execution privilege).
 GranteegetGrantee()
     Retrieves the Grantee object for this User.
 HsqlNamegetInitialSchema()
    
 StringgetName()
    
 IntValueHashMapgetRights()
     Retrieves the map object that represents the rights that have been granted on database objects.
 booleanisAccessible(HsqlName dbobject, int rights)
     Returns true if any of the rights represented by the rights argument has been granted on the database object identified by the dbobject argument.
 booleanisAccessible(String dbobject)
     Returns true if any right at all has been granted to this User object on the database object identified by the dbobject argument.
 booleanisAccessible(HsqlName dbobject)
    
 booleanisAdmin()
     Returns true if this User object is for a user with the database administrator role.
 booleanisPublic()
    
 booleanisSys()
     Returns true if this User object is for a user with the database administrator role.
 String[]listGrantedTablePrivileges(HsqlName name)
     Retrieves a string[] whose elements are the names, of the rights explicitly granted with the GRANT command to this User object on the Table object identified by the name argument.
 voidsetGrantee(Grantee inGrantee)
     Sets the Grantee object for this User.
 voidsetInitialSchema(HsqlName schema)
     This class does not have access to the SchemaManager, therefore caller should verify that the given schemaName exists.
Parameters:
  schemaName - Name of an existing schema.
 voidsetPassword(String password)
    


Constructor Detail
User
User(String name, String password, Grantee inGrantee) throws HsqlException(Code)
Constructor




Method Detail
check
void check(HsqlName dbobject, int rights) throws HsqlException(Code)
Checks if any of the rights represented by the rights argument have been granted on the specified database object.

This is done by checking that a mapping exists in the rights map from the dbobject argument for at least one of the rights contained in the rights argument. Otherwise, it throws.




check
void check(String dbobject) throws HsqlException(Code)



checkAdmin
void checkAdmin() throws HsqlException(Code)
Checks that this User object is for a user with the database administrator role. Otherwise it throws.



checkPassword
void checkPassword(String test) throws HsqlException(Code)
Checks if this object's password attibute equals specified argument, else throws.



getAlterUserDDL
String getAlterUserDDL()(Code)
Returns the ALTER USER DDL character sequence that preserves the this user's current password value and mode.

the DDL




getConnectStatement
public String getConnectStatement()(Code)
Retrieves the redo log character sequence for connecting this user the redo log character sequence for connectingthis user



getCreateUserDDL
String getCreateUserDDL()(Code)
returns the DDL string sequence that creates this user.



getGrantedClassNames
HashSet getGrantedClassNames(boolean andToPublic) throws HsqlException(Code)
Retrieves the distinct set of Java Class FQNs for which this User object has been granted ALL (the Class execution privilege).


Parameters:
  andToPublic - if true, then the set includes thenames of classes accessible to this User objectthrough grants to its PUBLIC Userobject attribute, else only direct grants are inlcuded. the distinct set of Java Class FQNs for which thisthis User object has been grantedALL.




getGrantee
Grantee getGrantee()(Code)
Retrieves the Grantee object for this User.



getInitialSchema
HsqlName getInitialSchema()(Code)
Returns the initial schema for the user



getName
String getName()(Code)



getRights
IntValueHashMap getRights()(Code)
Retrieves the map object that represents the rights that have been granted on database objects.

The map has keys and values with the following interpretation:

  • The keys are generally (but not limited to) objects having an attribute or value equal to the name of an actual database object.
  • Specifically, the keys act as database object identifiers.
  • The values are always Integer objects, each formed by combining a set of flags, one for each of the access rights defined in UserManager: {SELECT, INSERT, UPDATE and DELETE}.



isAccessible
boolean isAccessible(HsqlName dbobject, int rights) throws HsqlException(Code)
Returns true if any of the rights represented by the rights argument has been granted on the database object identified by the dbobject argument.

This is done by checking that a mapping exists in the rights map from the dbobject argument for at least one of the rights contained in the rights argument.




isAccessible
boolean isAccessible(String dbobject) throws HsqlException(Code)
Returns true if any right at all has been granted to this User object on the database object identified by the dbobject argument.



isAccessible
boolean isAccessible(HsqlName dbobject) throws HsqlException(Code)



isAdmin
boolean isAdmin()(Code)
Returns true if this User object is for a user with the database administrator role.



isPublic
boolean isPublic()(Code)
Returns true if this User object represents the PUBLIC user



isSys
boolean isSys()(Code)
Returns true if this User object is for a user with the database administrator role.



listGrantedTablePrivileges
String[] listGrantedTablePrivileges(HsqlName name)(Code)
Retrieves a string[] whose elements are the names, of the rights explicitly granted with the GRANT command to this User object on the Table object identified by the name argument. array of Strings naming the rights granted to thisUser object on the Table objectidentified by the name argument.
Parameters:
  name - a Table object identifier



setGrantee
void setGrantee(Grantee inGrantee) throws HsqlException(Code)
Sets the Grantee object for this User. This is done in the constructor for all users except the special users SYSTEM and PUBLIC, which have to be set up before the Managers are initialized.



setInitialSchema
void setInitialSchema(HsqlName schema)(Code)
This class does not have access to the SchemaManager, therefore caller should verify that the given schemaName exists.
Parameters:
  schemaName - Name of an existing schema. Null value allowed,which means use the DB default session schema.



setPassword
void setPassword(String password) throws HsqlException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.