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


java.lang.Object
   org.apache.derby.client.net.ClientJDBCObjectFactoryImpl

ClientJDBCObjectFactoryImpl
public class ClientJDBCObjectFactoryImpl implements ClientJDBCObjectFactory(Code)
Implements the the ClientJDBCObjectFactory interface and returns the classes that implement the JDBC3.0/2.0 interfaces For Eg. newCallableStatement would return org.apache.derby.client.am.CallableStatement




Method Summary
public  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.
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.
public  ClientPooledConnectionnewClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password)
    
public  ClientPooledConnectionnewClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password, int rmId)
    
public  ColumnMetaDatanewColumnMetaData(LogWriter logWriter)
    
public  ColumnMetaDatanewColumnMetaData(LogWriter logWriter, int upperBound)
    
public  LogicalConnectionnewLogicalConnection(org.apache.derby.client.am.Connection physicalConnection, ClientPooledConnection pooledConnection)
    
public  org.apache.derby.client.am.ConnectionnewNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String databaseName, java.util.Properties properties)
    
public  org.apache.derby.client.am.ConnectionnewNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, org.apache.derby.jdbc.ClientBaseDataSource clientDataSource, String user, String password)
    
public  org.apache.derby.client.am.ConnectionnewNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties)
    
public  org.apache.derby.client.am.ConnectionnewNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn)
    
public  org.apache.derby.client.am.ConnectionnewNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String ipaddr, int portNumber, org.apache.derby.jdbc.ClientBaseDataSource dataSource, boolean isXAConn)
    
public  org.apache.derby.client.am.ConnectionnewNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc)
     Returns an instance of org.apache.derby.client.net.NetConnection.
Parameters:
  netLogWriter - Placeholder for NetLogWriter object associatedwith this connection.
Parameters:
  user - user id for this connection.
Parameters:
  password - password for this connection.
Parameters:
  dataSource - The DataSource object passed from the PooledConnectionobject 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 thisNetConnection constructor was called.
public  org.apache.derby.client.am.DatabaseMetaDatanewNetDatabaseMetaData(Agent netAgent, org.apache.derby.client.am.Connection netConnection)
    
public  org.apache.derby.client.am.ResultSetnewNetResultSet(Agent netAgent, org.apache.derby.client.am.MaterialStatement netStatement, Cursor cursor, int qryprctyp, int sqlcsrhld, int qryattscr, int qryattsns, int qryattset, long qryinsid, int actualResultSetType, int actualResultSetConcurrency, int actualResultSetHoldability)
    
public  ParameterMetaDatanewParameterMetaData(ColumnMetaData columnMetaData)
    
public  PreparedStatementnewPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, Section section, ClientPooledConnection cpc)
     This method returns an instance of PreparedStatement which implements java.sql.PreparedStatement.
public  PreparedStatementnewPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames, ClientPooledConnection cpc)
     This method returns an instance of PreparedStatement 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.
public  StatementnewStatement(Agent agent, org.apache.derby.client.am.Connection connection)
    
public  StatementnewStatement(Agent agent, org.apache.derby.client.am.Connection connection, int type, int concurrency, int holdability, int autoGeneratedKeys, String[] columnNames)
    



Method Detail
newCallableStatement
public 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.
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
public ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password) throws SQLException(Code)
Returns an instance of org.apache.derby.client.ClientPooledConnection



newClientPooledConnection
public ClientPooledConnection newClientPooledConnection(ClientBaseDataSource ds, LogWriter logWriter, String user, String password, int rmId) throws SQLException(Code)
Returns an instance of org.apache.derby.client.ClientPooledConnection



newColumnMetaData
public ColumnMetaData newColumnMetaData(LogWriter logWriter)(Code)
Returns an instanceof ColumnMetaData
Parameters:
  logWriter - LogWriter a ColumnMetaData implementation



newColumnMetaData
public 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
public LogicalConnection newLogicalConnection(org.apache.derby.client.am.Connection physicalConnection, ClientPooledConnection pooledConnection) throws SqlException(Code)
Returns an instance of org.apache.derby.client.am.LogicalConnection



newNetConnection
public org.apache.derby.client.am.Connection newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String databaseName, java.util.Properties properties) throws SqlException(Code)
returns an instance of org.apache.derby.client.net.NetConnection



newNetConnection
public org.apache.derby.client.am.Connection newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, org.apache.derby.jdbc.ClientBaseDataSource clientDataSource, String user, String password) throws SqlException(Code)
returns an instance of org.apache.derby.client.net.NetConnection



newNetConnection
public org.apache.derby.client.am.Connection newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, int driverManagerLoginTimeout, String serverName, int portNumber, String databaseName, java.util.Properties properties) throws SqlException(Code)
returns an instance of org.apache.derby.client.net.NetConnection



newNetConnection
public org.apache.derby.client.am.Connection newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn) throws SqlException(Code)
returns an instance of org.apache.derby.client.net.NetConnection



newNetConnection
public org.apache.derby.client.am.Connection newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String ipaddr, int portNumber, org.apache.derby.jdbc.ClientBaseDataSource dataSource, boolean isXAConn) throws SqlException(Code)
returns an instance of org.apache.derby.client.net.NetConnection



newNetConnection
public org.apache.derby.client.am.Connection newNetConnection(org.apache.derby.client.am.LogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientBaseDataSource dataSource, int rmId, boolean isXAConn, ClientPooledConnection cpc) throws SqlException(Code)
Returns an instance of org.apache.derby.client.net.NetConnection.
Parameters:
  netLogWriter - Placeholder for NetLogWriter object associatedwith this connection.
Parameters:
  user - user id for this connection.
Parameters:
  password - password for this connection.
Parameters:
  dataSource - The DataSource object passed from the PooledConnectionobject 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 thisNetConnection constructor was called. This is used topass StatementEvents back to the pooledConnectionobject. a org.apache.derby.client.am.Connection object
throws:
  SqlException -



newNetDatabaseMetaData
public org.apache.derby.client.am.DatabaseMetaData newNetDatabaseMetaData(Agent netAgent, org.apache.derby.client.am.Connection netConnection)(Code)
returns an instance of org.apache.derby.client.net.NetDatabaseMetaData



newNetResultSet
public org.apache.derby.client.am.ResultSet newNetResultSet(Agent netAgent, org.apache.derby.client.am.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)
returns an instance of org.apache.derby.client.net.NetResultSet



newParameterMetaData
public ParameterMetaData newParameterMetaData(ColumnMetaData columnMetaData)(Code)
returns an instance of ParameterMetaData
Parameters:
  columnMetaData - ColumnMetaData a ParameterMetaData implementation



newPreparedStatement
public 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 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
public 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)
This method returns an instance of PreparedStatement 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 PreparedStatement object
throws:
  SqlException -



newStatement
public Statement newStatement(Agent agent, org.apache.derby.client.am.Connection connection) throws SqlException(Code)
This method provides an instance of Statement
Parameters:
  agent - Agent
Parameters:
  connection - Connection a java.sql.Statement implementation
throws:
  SqlException -



newStatement
public 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
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 -



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.