Java Doc for DefaultServerFacade.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
      org.mandarax.jdbc.server.DefaultServerFacade

All known Subclasses:   org.mandarax.jdbc.server.http.WebServerFacade,  org.mandarax.jdbc.server.local.LocalServerFacade,
DefaultServerFacade
public class DefaultServerFacade extends org.mandarax.jdbc.server.ServerFacade (Code)
Default server facade implementation.
author:
   Jens Dietrich
version:
   3.3.2 <29 December 2004>
since:
   3.0

Inner Class :public class Dependency

Field Summary
static  MapmethodsByName
    

Constructor Summary
public  DefaultServerFacade()
     Constructor.

Method Summary
public  voidClose(String id)
     Close an object (connection, statement or result set).
public  StringConnection_createStatement(String connectionId)
     Create a statement.
Parameters:
  connectionId - a connection id a statement id.
public  StringConnection_getMetaData_getColumns(String connectionId, String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern)
     Get the column info.
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.
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.
public  StringCreateConnection(String serverId, String url)
     Create a connection.
Parameters:
  serverId - ..
public  voidPreparedStatement_clearParameters(String statementId)
     Clear the parameters.
public  StringPreparedStatement_executeQuery(String statementId)
     Perform a query.
public  voidPreparedStatement_setObject(String statementId, int parameterIndex, Object x)
     Set the object on a certain index.
public  ResultSetMetaDataResultSet_getMetaData(String resultsetId)
     Return the result set meta data.
public  RecordResultSet_next(String id)
     Fetch the next row from a result set.
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.
public  voidStatement_execute(String statementId)
     Perform a query.
public  StringStatement_executeQuery(String statementId, String sql)
     Perform a query.
public  StringStatement_getResultSet(String statementId)
     Get the current result set.
public  StringconvertToLocalUrl(String url)
     Convert a db url to a local url. This implementation simply removes the NET token.
public  CallResultperform(Call call)
     Invoke a call.
public  voidrelease()
     Release all resources.

Field Detail
methodsByName
static Map methodsByName(Code)




Constructor Detail
DefaultServerFacade
public DefaultServerFacade()(Code)
Constructor.




Method Detail
Close
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
public String Connection_createStatement(String connectionId) throws Exception(Code)
Create a statement.
Parameters:
  connectionId - a connection id a statement id.



Connection_getMetaData_getColumns
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
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
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
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
public void PreparedStatement_clearParameters(String statementId) throws Exception(Code)
Clear the parameters.
Parameters:
  statementId - a statement id null (no return required)



PreparedStatement_executeQuery
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
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
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
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
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
public void Statement_execute(String statementId) throws Exception(Code)
Perform a query.
Parameters:
  statementId - a statement id



Statement_executeQuery
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
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. This implementation simply removes the NET token.
Parameters:
  a - db url a local db url (to be used by the local driver)



perform
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
public void release() throws Exception(Code)
Release all resources.



Fields inherited from org.mandarax.jdbc.server.ServerFacade
final public static String CONNECTION(Code)(Java Doc)
final public static String PREPARED_STATEMENT(Code)(Java Doc)
final public static String RESULT_SET(Code)(Java Doc)
final public static String STATEMENT(Code)(Java Doc)

Methods inherited from org.mandarax.jdbc.server.ServerFacade
abstract public void Close(String id) throws Exception(Code)(Java Doc)
abstract public String Connection_createStatement(String connectionId) throws Exception(Code)(Java Doc)
abstract public String Connection_getMetaData_getColumns(String connectionId, String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws Exception(Code)(Java Doc)
abstract public String Connection_getMetaData_getTables(String connectionId, String catalog, String schemaPattern, String tableNamePattern, String[] types) throws Exception(Code)(Java Doc)
abstract public String Connection_prepareStatement(String connectionId, String sql) throws Exception(Code)(Java Doc)
abstract public String CreateConnection(String serverId, String url) throws Exception(Code)(Java Doc)
abstract public void PreparedStatement_clearParameters(String statementId) throws Exception(Code)(Java Doc)
abstract public String PreparedStatement_executeQuery(String statementId) throws Exception(Code)(Java Doc)
abstract public void PreparedStatement_setObject(String statementId, int parameterIndex, Object x) throws SQLException(Code)(Java Doc)
abstract public ResultSetMetaData ResultSet_getMetaData(String resultsetId) throws Exception(Code)(Java Doc)
abstract public Record ResultSet_next(String id) throws Exception(Code)(Java Doc)
abstract public List ResultSet_nextRows(String id, int rows) throws Exception(Code)(Java Doc)
abstract public void Statement_execute(String statementId) throws Exception(Code)(Java Doc)
abstract public String Statement_executeQuery(String statementId, String sql) throws Exception(Code)(Java Doc)
abstract public String Statement_getResultSet(String statementId) throws Exception(Code)(Java Doc)
public String convertToLocalUrl(String url)(Code)(Java Doc)
abstract public CallResult perform(Call call)(Code)(Java Doc)
abstract public void release() throws Exception(Code)(Java Doc)

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.