Java Doc for ServerFacade.java in  » Rule-Engine » Mandarax » org » mandarax » jdbc » server » 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 » Rule Engine » Mandarax » org.mandarax.jdbc.server 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mandarax.jdbc.server.ServerFacade

All known Subclasses:   org.mandarax.jdbc.server.DefaultServerFacade,
ServerFacade
abstract public class ServerFacade implements LogCategories(Code)
Facade for a knowledge base jdbc server. Tis class is abstract. A typical implementation could use servlets (in particular sessions).
author:
   Jens Dietrich
version:
   3.3.2 <29 December 2004>
since:
   3.0


Field Summary
final public static  StringCONNECTION
    
final public static  StringPREPARED_STATEMENT
    
final public static  StringRESULT_SET
    
final public static  StringSTATEMENT
    


Method Summary
abstract public  voidClose(String id)
     Close an object (connection, statement or result set).
abstract public  StringConnection_createStatement(String connectionId)
     Create a statement.
Parameters:
  connectionId - a connection id a statement id.
abstract public  StringConnection_getMetaData_getColumns(String connectionId, String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
     Get the column info.
abstract public  StringConnection_getMetaData_getTables(String connectionId, String catalog, String schemaPattern, String tableNamePattern, String[] types)
     Retrieves a description of the tables available in the given catalog.
abstract public  StringConnection_prepareStatement(String connectionId, String sql)
     Prepare a statement.
Parameters:
  connectionId - a connection id
Parameters:
  sql - a sql statement (with ? as parameter placeholders) a statement id.
abstract public  StringCreateConnection(String serverId, String url)
     Create a connection.
Parameters:
  serverId - ..
abstract public  voidPreparedStatement_clearParameters(String statementId)
     Clear the parameters.
abstract public  StringPreparedStatement_executeQuery(String statementId)
     Perform a query.
abstract public  voidPreparedStatement_setObject(String statementId, int parameterIndex, Object x)
     Set the object on a certain index.
abstract public  ResultSetMetaDataResultSet_getMetaData(String resultsetId)
     Return the result set meta data.
abstract public  RecordResultSet_next(String id)
     Fetch the next row from a result set.
abstract public  ListResultSet_nextRows(String id, int rows)
     Fetch the next rows from a result set. This is usually more effective than fetching a single row (but can also be dangerous, e.g.
abstract public  voidStatement_execute(String statementId)
     Perform a query.
abstract public  StringStatement_executeQuery(String statementId, String sql)
     Perform a query.
abstract public  StringStatement_getResultSet(String statementId)
     Get the current result set.
public  StringconvertToLocalUrl(String url)
     Convert a db url to a local url.
abstract public  CallResultperform(Call call)
     Invoke a call.
abstract public  voidrelease()
     Release all resources.

Field Detail
CONNECTION
final public static String CONNECTION(Code)



PREPARED_STATEMENT
final public static String PREPARED_STATEMENT(Code)



RESULT_SET
final public static String RESULT_SET(Code)



STATEMENT
final public static String STATEMENT(Code)





Method Detail
Close
abstract public void Close(String id) throws Exception(Code)
Close an object (connection, statement or result set).
Parameters:
  id - the id of the object to be closed



Connection_createStatement
abstract public String Connection_createStatement(String connectionId) throws Exception(Code)
Create a statement.
Parameters:
  connectionId - a connection id a statement id.



Connection_getMetaData_getColumns
abstract public String Connection_getMetaData_getColumns(String connectionId, String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws Exception(Code)
Get the column info. Only the result set id is returned, rows are returned using next(), and the result set is assembled on the client side.
Parameters:
  connectionId - a connection id
Parameters:
  sql - an sql SELECT command
Parameters:
  catalog -
Parameters:
  schemaPattern -
Parameters:
  tableNamePattern -
Parameters:
  columnNamePattern - a result set id.



Connection_getMetaData_getTables
abstract public String Connection_getMetaData_getTables(String connectionId, String catalog, String schemaPattern, String tableNamePattern, String[] types) throws Exception(Code)
Retrieves a description of the tables available in the given catalog. Only the result set id is returned, rows are returned using next(), and the result set is assembled on the client side.
Parameters:
  connectionId - a connection id
Parameters:
  sql - an sql SELECT command
Parameters:
  catalog -
Parameters:
  schemaPattern -
Parameters:
  tableNamePattern -
Parameters:
  types - a result set id.



Connection_prepareStatement
abstract public String Connection_prepareStatement(String connectionId, String sql) throws Exception(Code)
Prepare a statement.
Parameters:
  connectionId - a connection id
Parameters:
  sql - a sql statement (with ? as parameter placeholders) a statement id.



CreateConnection
abstract public String CreateConnection(String serverId, String url) throws Exception(Code)
Create a connection.
Parameters:
  serverId - .. currently ignored (but expected - do not remove)
Parameters:
  url - the local database url a connection id.



PreparedStatement_clearParameters
abstract public void PreparedStatement_clearParameters(String statementId) throws Exception(Code)
Clear the parameters.
Parameters:
  statementId - a statement id



PreparedStatement_executeQuery
abstract public String PreparedStatement_executeQuery(String statementId) throws Exception(Code)
Perform a query. Only the result set id is returned, rows are returned using next(), and the result set is assembled on the client side.
Parameters:
  statementId - a statement id a result set id.



PreparedStatement_setObject
abstract public void PreparedStatement_setObject(String statementId, int parameterIndex, Object x) throws SQLException(Code)
Set the object on a certain index.
Parameters:
  statementId - a statement id
Parameters:
  parameterIndex - the index
Parameters:
  x - the object



ResultSet_getMetaData
abstract public ResultSetMetaData ResultSet_getMetaData(String resultsetId) throws Exception(Code)
Return the result set meta data.
Parameters:
  resultsetId - a result set id result set meta data



ResultSet_next
abstract public Record ResultSet_next(String id) throws Exception(Code)
Fetch the next row from a result set.
Parameters:
  id - the result set id a record or null indicating that there is no (more) row



ResultSet_nextRows
abstract public List ResultSet_nextRows(String id, int rows) throws Exception(Code)
Fetch the next rows from a result set. This is usually more effective than fetching a single row (but can also be dangerous, e.g. in case the computation of the second result is slow).
Parameters:
  id - the result set id
Parameters:
  rows - the number of rows a list of records



Statement_execute
abstract public void Statement_execute(String statementId) throws Exception(Code)
Perform a query.
Parameters:
  statementId - a statement id



Statement_executeQuery
abstract public String Statement_executeQuery(String statementId, String sql) throws Exception(Code)
Perform a query. Only the result set id is returned, rows are returned using next(), and the result set is assembled on the client side.
Parameters:
  statementId - a statement id
Parameters:
  sql - an sql SELECT command a result set id.



Statement_getResultSet
abstract public String Statement_getResultSet(String statementId) throws Exception(Code)
Get the current result set. Only the result set id is returned, rows are returned using next(), and the result set is assembled on the client side.
Parameters:
  statementId - a statement id a result set id.



convertToLocalUrl
public String convertToLocalUrl(String url)(Code)
Convert a db url to a local url.
Parameters:
  a - db url a local db url (to be used by the local driver)



perform
abstract public CallResult perform(Call call)(Code)
Invoke a call. No exception is thrown. Instead, all exception are caught and an ExceptionResult is returned.
Parameters:
  call - a call a value



release
abstract public void release() throws Exception(Code)
Release all resources.



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.