Java Doc for ClientJDBCObjectFactory.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » client » am » 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 » db derby 10.2 » org.apache.derby.client.am 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.derby.client.am.ClientJDBCObjectFactory

All known Subclasses:   org.apache.derby.client.net.ClientJDBCObjectFactoryImpl40,  org.apache.derby.client.net.ClientJDBCObjectFactoryImpl,
ClientJDBCObjectFactory
public interface ClientJDBCObjectFactory (Code)
The methods of this interface are used to return JDBC interface implementations to the user depending on the JDBC version supported by the jdk




Method Summary
 CallableStatementnewCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc)
     Returns an instance of org.apache.derby.client.am.CallableStatement. or CallableStatement40 which implements java.sql.CallableStatement
Parameters:
  agent - The instance of NetAgent associated with thisCallableStatement object.
Parameters:
  connection - The connection object associated with thisPreparedStatement Object.
Parameters:
  sql - A String object that is the SQL statement to be sent to the database.
Parameters:
  type - One of the ResultSet type constants
Parameters:
  concurrency - One of the ResultSet concurrency constants
Parameters:
  holdability - One of the ResultSet holdability constants
Parameters:
  cpc - The PooledConnection object that will be used to notify the PooledConnection reference of the Error Occurred and the Close events.
 ClientPooledConnectionnewClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password)
    
 ClientPooledConnectionnewClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password, int rmId)
    
 ColumnMetaDatanewColumnMetaData(LogWriter logWriter)
    
 ColumnMetaDatanewColumnMetaData(LogWriter logWriter, int upperBound)
    
 LogicalConnectionnewLogicalConnection(org.apache.derby.client.am.Connection physicalConnection, ClientPooledConnection pooledConnection)
     Returns an instance of LogicalConnection.
 org.apache.derby.client.am.ConnectionnewNetConnection(LogWriter netLogWriter, String databaseName, java.util.Properties properties)
    
 org.apache.derby.client.am.ConnectionnewNetConnection(LogWriter netLogWriter, org.apache.derby.jdbc.ClientBaseDataSource clientDataSource, String user, String password)
    
 org.apache.derby.client.am.ConnectionnewNetConnection(LogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties)
    
 org.apache.derby.client.am.ConnectionnewNetConnection(LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn)
    
 org.apache.derby.client.am.ConnectionnewNetConnection(LogWriter netLogWriter, String ipaddr, int portNumber, org.apache.derby.jdbc.ClientBaseDataSource dataSource, boolean isXAConn)
    
 org.apache.derby.client.am.ConnectionnewNetConnection(LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc)
     This method returns an instance of NetConnection (or NetConnection40) class which extends from org.apache.derby.client.am.Connection this implements the java.sql.Connection interface This method is used to pass the ClientPooledConnection object to the NetConnection object which can then be used to pass the statement events back to the user
Parameters:
  netLogWriter - placeholder for NetLogWriter object associated with this connection
Parameters:
  user - user id for this connection
Parameters:
  password - password for this connection
Parameters:
  dataSource - The DataSource object passed from the PooledConnection object from which this constructor was called
Parameters:
  rmId - The Resource Manager ID for XA Connections
Parameters:
  isXAConn - true if this is a XA connection
Parameters:
  cpc - The ClientPooledConnection object from which this NetConnection constructor was called.
 DatabaseMetaDatanewNetDatabaseMetaData(Agent netAgent, org.apache.derby.client.am.Connection netConnection)
    
 ResultSetnewNetResultSet(Agent netAgent, MaterialStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability)
    
 ParameterMetaDatanewParameterMetaData(ColumnMetaData columnMetaData)
    
 PreparedStatementnewPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, Section section, ClientPooledConnection cpc)
     This method returns an instance of PreparedStatement (or PreparedStatement40) which implements java.sql.PreparedStatement It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed
Parameters:
  agent - The instance of NetAgent associated with thisCallableStatement object.
Parameters:
  connection - The connection object associated with thisPreparedStatement Object.
Parameters:
  sql - A String object that is the SQL statement to be sentto the database.
Parameters:
  section - Section
Parameters:
  cpc - The ClientPooledConnection wraps the underlying physicalconnection associated with this prepared statement.It is used to pass the Statement closed and the Statementerror occurred events that occur back to theClientPooledConnection.
 PreparedStatementnewPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, ClientPooledConnection cpc)
     Returns an instance of PreparedStatement (or PreparedStatement40) which implements java.sql.PreparedStatement It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed
Parameters:
  agent - The instance of NetAgent associated with thisCallableStatement object.
Parameters:
  connection - The connection object associated with thisPreparedStatement Object.
Parameters:
  sql - A String object that is the SQL statementto be sent to the database.
Parameters:
  type - One of the ResultSet type constants.
Parameters:
  concurrency - One of the ResultSet concurrency constants.
Parameters:
  holdability - One of the ResultSet holdability constants.
Parameters:
  autoGeneratedKeys - a flag indicating whether auto-generatedkeys should be returned.
Parameters:
  columnNames - an array of column names indicating the columns thatshould be returned from the inserted row or rows.
Parameters:
  cpc - The ClientPooledConnection wraps the underlying physicalconnection associated with this prepared statementit is used to pass the Statement closed and the Statementerror occurred events that occur back to theClientPooledConnection.
 StatementnewStatement(Agent agent, org.apache.derby.client.am.Connection connection)
    
 StatementnewStatement(Agent agent, org.apache.derby.client.am.Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames)
    



Method Detail
newCallableStatement
CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, ClientPooledConnection cpc) throws SqlException(Code)
Returns an instance of org.apache.derby.client.am.CallableStatement. or CallableStatement40 which implements java.sql.CallableStatement
Parameters:
  agent - The instance of NetAgent associated with thisCallableStatement object.
Parameters:
  connection - The connection object associated with thisPreparedStatement Object.
Parameters:
  sql - A String object that is the SQL statement to be sent to the database.
Parameters:
  type - One of the ResultSet type constants
Parameters:
  concurrency - One of the ResultSet concurrency constants
Parameters:
  holdability - One of the ResultSet holdability constants
Parameters:
  cpc - The PooledConnection object that will be used to notify the PooledConnection reference of the Error Occurred and the Close events. a CallableStatement object
throws:
  SqlException -



newClientPooledConnection
ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password) throws SQLException(Code)
This method is used to return an instance of ClientPooledConnection (or ClientPooledConnection40) class which implements javax.sql.PooledConnection



newClientPooledConnection
ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password, int rmId) throws SQLException(Code)
This method is used to return an instance of ClientPooledConnection(or ClientPooledConnection40) class which implements javax.sql.PooledConnection



newColumnMetaData
ColumnMetaData newColumnMetaData(LogWriter logWriter)(Code)
Returns an instanceof ColumnMetaData or ColumnMetaData40 depending on the jdk version under use
Parameters:
  logWriter - LogWriter a ColumnMetaData implementation



newColumnMetaData
ColumnMetaData newColumnMetaData(LogWriter logWriter, int upperBound)(Code)
Returns an instanceof ColumnMetaData or ColumnMetaData40 depending on the jdk version under use
Parameters:
  logWriter - LogWriter
Parameters:
  upperBound - int a ColumnMetaData implementation



newLogicalConnection
LogicalConnection newLogicalConnection(org.apache.derby.client.am.Connection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException(Code)
Returns an instance of LogicalConnection. This method returns an instance of LogicalConnection (or LogicalConnection40) which implements java.sql.Connection.



newNetConnection
org.apache.derby.client.am.Connection newNetConnection(LogWriter netLogWriter, String databaseName, java.util.Properties properties) throws SqlException(Code)
This method returns an instance of NetConnection (or NetConnection40) class which extends from org.apache.derby.client.am.Connection this implements the java.sql.Connection interface



newNetConnection
org.apache.derby.client.am.Connection newNetConnection(LogWriter netLogWriter, org.apache.derby.jdbc.ClientBaseDataSource clientDataSource, String user, String password) throws SqlException(Code)
This method returns an instance of NetConnection (or NetConnection40) class which extends from org.apache.derby.client.am.Connection this implements the java.sql.Connection interface



newNetConnection
org.apache.derby.client.am.Connection newNetConnection(LogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties) throws SqlException(Code)
This method returns an instance of NetConnection (or NetConnection40) class which extends from org.apache.derby.client.am.Connection this implements the java.sql.Connection interface



newNetConnection
org.apache.derby.client.am.Connection newNetConnection(LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn) throws SqlException(Code)
This method returns an instance of NetConnection (or NetConnection40) class which extends from org.apache.derby.client.am.Connection this implements the java.sql.Connection interface



newNetConnection
org.apache.derby.client.am.Connection newNetConnection(LogWriter netLogWriter, String ipaddr, int portNumber, org.apache.derby.jdbc.ClientBaseDataSource dataSource, boolean isXAConn) throws SqlException(Code)
This methos returns an instance of NetConnection (or NetConnection40) class which extends from org.apache.derby.client.am.Connection this implements the java.sql.Connection interface



newNetConnection
org.apache.derby.client.am.Connection newNetConnection(LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException(Code)
This method returns an instance of NetConnection (or NetConnection40) class which extends from org.apache.derby.client.am.Connection this implements the java.sql.Connection interface This method is used to pass the ClientPooledConnection object to the NetConnection object which can then be used to pass the statement events back to the user
Parameters:
  netLogWriter - placeholder for NetLogWriter object associated with this connection
Parameters:
  user - user id for this connection
Parameters:
  password - password for this connection
Parameters:
  dataSource - The DataSource object passed from the PooledConnection object from which this constructor was called
Parameters:
  rmId - The Resource Manager ID for XA Connections
Parameters:
  isXAConn - true if this is a XA connection
Parameters:
  cpc - The ClientPooledConnection object from which this NetConnection constructor was called. This is usedto pass StatementEvents back to the pooledConnectionobject
throws:
  SqlException -



newNetDatabaseMetaData
DatabaseMetaData newNetDatabaseMetaData(Agent netAgent, org.apache.derby.client.am.Connection netConnection)(Code)
This method provides an instance of NetDatabaseMetaData (or NetDatabaseMetaData40) which extends from org.apache.derby.client.am.DatabaseMetaData which implements java.sql.DatabaseMetaData



newNetResultSet
ResultSet newNetResultSet(Agent netAgent, MaterialStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability) throws SqlException(Code)
This method returns an instance of NetResultSet(or NetResultSet40) which extends from org.apache.derby.client.am.ResultSet which implements java.sql.ResultSet



newParameterMetaData
ParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData)(Code)
returns an instance of ParameterMetaData or ParameterMetaData40 depending on the jdk version under use
Parameters:
  columnMetaData - ColumnMetaData a ParameterMetaData implementation



newPreparedStatement
PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, Section section, ClientPooledConnection cpc) throws SqlException(Code)
This method returns an instance of PreparedStatement (or PreparedStatement40) which implements java.sql.PreparedStatement It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed
Parameters:
  agent - The instance of NetAgent associated with thisCallableStatement object.
Parameters:
  connection - The connection object associated with thisPreparedStatement Object.
Parameters:
  sql - A String object that is the SQL statement to be sentto the database.
Parameters:
  section - Section
Parameters:
  cpc - The ClientPooledConnection wraps the underlying physicalconnection associated with this prepared statement.It is used to pass the Statement closed and the Statementerror occurred events that occur back to theClientPooledConnection. a PreparedStatement object
throws:
  SqlException -



newPreparedStatement
PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, ClientPooledConnection cpc) throws SqlException(Code)
Returns an instance of PreparedStatement (or PreparedStatement40) which implements java.sql.PreparedStatement It has the ClientPooledConnection as one of its parameters this is used to raise the Statement Events when the prepared statement is closed
Parameters:
  agent - The instance of NetAgent associated with thisCallableStatement object.
Parameters:
  connection - The connection object associated with thisPreparedStatement Object.
Parameters:
  sql - A String object that is the SQL statementto be sent to the database.
Parameters:
  type - One of the ResultSet type constants.
Parameters:
  concurrency - One of the ResultSet concurrency constants.
Parameters:
  holdability - One of the ResultSet holdability constants.
Parameters:
  autoGeneratedKeys - a flag indicating whether auto-generatedkeys should be returned.
Parameters:
  columnNames - an array of column names indicating the columns thatshould be returned from the inserted row or rows.
Parameters:
  cpc - The ClientPooledConnection wraps the underlying physicalconnection associated with this prepared statementit is used to pass the Statement closed and the Statementerror occurred events that occur back to theClientPooledConnection. a PreparedSatement object
throws:
  SqlException -



newStatement
Statement newStatement(Agent agent, org.apache.derby.client.am.Connection connection) throws SqlException(Code)
This method provides an instance of Statement or Statement40 depending on the jdk version under use
Parameters:
  agent - Agent
Parameters:
  connection - Connection a java.sql.Statement implementation
throws:
  SqlException -



newStatement
Statement newStatement(Agent agent, org.apache.derby.client.am.Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames) throws SqlException(Code)
This method provides an instance of Statement or Statement40 depending on the jdk version under use
Parameters:
  agent - Agent
Parameters:
  connection - Connection
Parameters:
  type - int
Parameters:
  concurrency - int
Parameters:
  holdability - int
Parameters:
  autoGeneratedKeys - int
Parameters:
  columnNames - String[] a java.sql.Statement implementation
throws:
  SqlException -



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