Java Doc for DINameSpace.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.DINameSpace

DINameSpace
final class DINameSpace (Code)
Provides catalog and schema related definitions and functionality.

Additional features include accessibility tests, class loading, filtered iteration and inverted alias mapping functionality regarding Java Classes and Methods defined within the context of this database name space support object.


author:
   boucherb@users
version:
   1.8.0
since:
   1.7.2




Constructor Summary
public  DINameSpace(Database database)
     Constructs a new name space support object for the specified Database object.

Method Summary
 voidaddBuiltinToSet(HashSet set)
     Adds to the given Set the fully qualified names of the Class objects internally granted to PUBLIC in support of core operation.
 ClassclassForMethodFQN(String fqn)
     Retrieves the declaring Class object for the specified fully qualified method name, using (if possible) the classLoader attribute of this object's database.
 ClassclassForName(String name)
     Retrieves the Class object specified by the name argument, using, if possible, the classLoader attribute of the database.
 StringgetCatalogName(Object o)
     Retrieves the name of the catalog corresponding to the indicated object.
 HashMapgetInverseAliasMap()
     Retrieves a map from each distinct value of this object's database SQL routine CALL alias map to the list of keys in the input map mapping to that value.
static  StringgetMethodFQN(Method m)
     Retrieves the fully qualified name of the given Method object.
static  StringgetMethodSpecificName(Method m)
     Retrieves the specific name of the given Method object.
 StringgetSchemaName(Object o)
    
static  StringgetSignature(Method method)
    
 booleanisBuiltin(Class clazz)
     Retrieves whether the indicated Class object is systematically granted to PUBLIC in support of core operation.
 booleanisBuiltin(String name)
     Retrieves whether the Class object indicated by the fully qualified class name is systematically granted to PUBLIC in support of core operation.
 booleanisReportCatalogs()
     Retrieves whether this object is reporting catalog qualifiers.
 IteratoriterateAccessibleTriggerClassNames(User user)
     Retrieves an Iterator object describing the fully qualified names of all Java Class objects that are both trigger body implementations and that are accessible (whose fire method can potentially be invoked) by actions upon this object's database by the specified User.
 IteratoriterateAllAccessibleMethods(Session session, boolean andAliases)
     Retrieves a composite Iterator consisting of the elements from DINameSpace.iterateRoutineMethods for each Class granted to the specified session.
 IteratoriterateCatalogNames()
     Retrieves an Iterator whose elements form the set of distinct names of all visible catalogs, relative to this object's database.
 IteratoriterateRoutineMethods(String className, boolean andAliases)
     Retrieves an Iterator object describing the Java Method objects that are both the entry points to executable SQL database objects (such as SQL functions and stored procedures) within the context of this name space.
 Session[]listVisibleSessions(Session session)
     Retrieves the set of distinct, visible sessions connected to this object's database, as a list.


Constructor Detail
DINameSpace
public DINameSpace(Database database) throws HsqlException(Code)
Constructs a new name space support object for the specified Database object.


Parameters:
  database - The Database object for which to provide namespace support
throws:
  HsqlException - if a database access error occurs





Method Detail
addBuiltinToSet
void addBuiltinToSet(HashSet set)(Code)
Adds to the given Set the fully qualified names of the Class objects internally granted to PUBLIC in support of core operation.
Parameters:
  the - HashSet to which to add the fully qualified names ofthe Class objects internally granted to PUBLIC in support ofcore operation.



classForMethodFQN
Class classForMethodFQN(String fqn)(Code)
Retrieves the declaring Class object for the specified fully qualified method name, using (if possible) the classLoader attribute of this object's database.


Parameters:
  fqn - the fully qualified name of the method for which toretrieve the declaring Class object. the declaring Class object for thespecified fully qualified method name




classForName
Class classForName(String name) throws ClassNotFoundException(Code)
Retrieves the Class object specified by the name argument, using, if possible, the classLoader attribute of the database.


Parameters:
  name - the fully qualified name of the Classobject to retrieve.
throws:
  ClassNotFoundException - if the specified class objectcannot be found in the context of this name space the Class object specified by thename argument




getCatalogName
String getCatalogName(Object o)(Code)
Retrieves the name of the catalog corresponding to the indicated object.

Note: the uri of this object's database is returned whenever catalog reporting is turned on.

This a stub that will be used until such time (if ever) that the engine actually supports the concept of multiple hosted catalogs.

the name of specified object's qualifying catalog, or null ifcatalog reporting is turned off.
Parameters:
  o - the object for which the name of its qualifying catalogis to be retrieved




getInverseAliasMap
HashMap getInverseAliasMap()(Code)
Retrieves a map from each distinct value of this object's database SQL routine CALL alias map to the list of keys in the input map mapping to that value.

The requested map




getMethodFQN
static String getMethodFQN(Method m)(Code)
Retrieves the fully qualified name of the given Method object.


Parameters:
  m - The Method object for which to retreive the fullyqualified name the fully qualified name of the specified Method object.




getMethodSpecificName
static String getMethodSpecificName(Method m)(Code)
Retrieves the specific name of the given Method object.


Parameters:
  m - The Method object for which to retreive the specific name the specific name of the specified Method object.




getSchemaName
String getSchemaName(Object o)(Code)
Deprecated



getSignature
static String getSignature(Method method)(Code)



isBuiltin
boolean isBuiltin(Class clazz)(Code)
Retrieves whether the indicated Class object is systematically granted to PUBLIC in support of core operation.

whether the indicated Class object is systematicallygranted to PUBLIC in support of core operation
Parameters:
  clazz - The Class object for which to make the determination




isBuiltin
boolean isBuiltin(String name)(Code)
Retrieves whether the Class object indicated by the fully qualified class name is systematically granted to PUBLIC in support of core operation.

true if system makes grant, else false
Parameters:
  name - fully qualified name of a Class




isReportCatalogs
boolean isReportCatalogs()(Code)
Retrieves whether this object is reporting catalog qualifiers. true if this object is reporting catalog qualifiers, else false.



iterateAccessibleTriggerClassNames
Iterator iterateAccessibleTriggerClassNames(User user) throws HsqlException(Code)
Retrieves an Iterator object describing the fully qualified names of all Java Class objects that are both trigger body implementations and that are accessible (whose fire method can potentially be invoked) by actions upon this object's database by the specified User.


Parameters:
  user - the User for which to retrieve theIterator
throws:
  HsqlException - if a database access error occurs an Iterator object describing thefully qualified names of all Java Classobjects that are both trigger body implementationsand that are accessible (whose fire method canpotentially be invoked) by actions upon this object's databaseby the specified User.




iterateAllAccessibleMethods
Iterator iterateAllAccessibleMethods(Session session, boolean andAliases) throws HsqlException(Code)
Retrieves a composite Iterator consisting of the elements from DINameSpace.iterateRoutineMethods for each Class granted to the specified session.

a composite Iterator consisting of the elementsfrom DINameSpace.iterateRoutineMethods andDINameSpace.iterateAccessibleTriggerMethods
Parameters:
  session - The context in which to produce the iterator
Parameters:
  andAliases - true if the alias lists for the "ROUTINE" type methodelements are to be generated.
throws:
  HsqlException - if a database access error occurs




iterateCatalogNames
Iterator iterateCatalogNames() throws HsqlException(Code)
Retrieves an Iterator whose elements form the set of distinct names of all visible catalogs, relative to this object's database.

If catalog reporting is turned off, then the empty Iterator is returned.

Note: in the present implementation, if catalog reporting is turned on, then the iteration consists of a single element that is the uri of this object's database; HSQLDB currently does not support the concept a single engine hosting multiple catalogs.

An Iterator whose elements are String objectsnaming all visible catalogs, relative to this object's database.
throws:
  HsqlException - never (reserved for future use)




iterateRoutineMethods
Iterator iterateRoutineMethods(String className, boolean andAliases) throws HsqlException(Code)
Retrieves an Iterator object describing the Java Method objects that are both the entry points to executable SQL database objects (such as SQL functions and stored procedures) within the context of this name space.

Each element of the Iterator is an Object[3] array whose elements are:

  1. a Method object.
  2. an HsqlArrayList object whose elements are the SQL call aliases for the method.
  3. the String "ROUTINE"
Note: Admin users are actually free to invoke *any* public static non-abstract Java Method that can be found through the database class loading process, either as a SQL stored procedure or SQL function, as long as its parameters and return type are compatible with the engine's supported SQL type / Java Class mappings.

An Iterator object whose elements form the setof distinct Method objects accessible asexecutable as SQL routines within the current executioncontext.

Elements are Object[3] instances, with [0] being aMethod object, [1] being an alias list object and[2] being the String "ROUTINE"

If the Method object at index [0] has aliases,and the andAliases parameter is specifiedas true, then there is an HsqlArrayListat index [1] whose elements are String objectswhose values are the SQL call aliases for the method.Otherwise, the value of index [1] is null.
Parameters:
  className - The fully qualified name of the class for which toretrieve the iteration
Parameters:
  andAliases - if true, alias lists for qualifyingmethods are additionally retrieved.
throws:
  HsqlException - if a database access error occurs




listVisibleSessions
Session[] listVisibleSessions(Session session)(Code)
Retrieves the set of distinct, visible sessions connected to this object's database, as a list.


Parameters:
  session - The context in which to produce the list the set of distinct, visible sessions connectedto this object's database, as a list.




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.