Java Doc for ConnectionWrapper.java in  » Database-ORM » Velosurf » velosurf » sql » 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 ORM » Velosurf » velosurf.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   velosurf.sql.ConnectionWrapper

ConnectionWrapper
public class ConnectionWrapper implements Connection(Code)
Connection wrapper class. Allows the handling of a busy state
author:
   Claude Brisson


Field Summary
static  Method_createArrayOf
    
static  Method_createBlob
    
static  Method_createClob
    
static  Method_createNClob
    
static  Method_createSQLXML
    
static  Method_createStruct
    
static  Method_getClientInfo
    
static  Method_getClientInfo2
    
static  Method_isValid
    
static  Method_isWrapperFor
    
static  Method_setClientInfo
    
static  Method_setClientInfo2
    

Constructor Summary
public  ConnectionWrapper(DriverInfo driver, Connection connection)
     Constructor.

Method Summary
public synchronized  booleancheck()
     Check connection.
public  voidclearWarnings()
     Clear SQL warnings.
public  voidclose()
     Close.
public synchronized  voidcommit()
     Commit.
public  ArraycreateArrayOf(String typeName, Object[] elements)
    
public  BlobcreateBlob()
    
public  ClobcreateClob()
    
public  NClobcreateNClob()
    
public  SQLXMLcreateSQLXML()
    
public  StatementcreateStatement()
     Create a statement.
public synchronized  StatementcreateStatement(int i, int j)
     Create a statement.
public synchronized  StatementcreateStatement(int i, int j, int k)
     Create a statement.
public  StructcreateStruct(String typeName, Object[] attributes)
    
public  voidenterBusyState()
     Enter busy state.
public  booleangetAutoCommit()
     Get autocommit flag.
public  StringgetCatalog()
     Catalog getter.
public  PropertiesgetClientInfo()
    
public  StringgetClientInfo(String name)
    
public  intgetHoldability()
     Get holdability.
public  longgetLastInsertId(Statement statement)
     Get last inserted ID.
public  DatabaseMetaDatagetMetaData()
    
public  intgetTransactionIsolation()
     Transaction isolation getter.
public  MapgetTypeMap()
     Get type map.
public  SQLWarninggetWarnings()
     Get SQL warnings.
public  booleanisBusy()
     Check busy state.
public  booleanisClosed()
     Check the closed state.
public  booleanisReadOnly()
     Check the read-only state.
public  booleanisValid(int timeout)
    
public  booleanisWrapperFor(Class iface)
    
public  voidleaveBusyState()
     Leave busy state.
public synchronized  StringnativeSQL(String s)
     Gets native SQL for a query.
public synchronized  CallableStatementprepareCall(String s)
     Prepare a callable statement.
public synchronized  CallableStatementprepareCall(String s, int i, int j)
     Prepare a call.
public synchronized  CallableStatementprepareCall(String s, int i, int j, int k)
     Prepare a callable statement.
public synchronized  PreparedStatementprepareStatement(String s)
     Prepare a statement.
public synchronized  PreparedStatementprepareStatement(String s, int i, int j)
     Prepare a statement.
public synchronized  PreparedStatementprepareStatement(String s, int i, int j, int k)
     Prepare a statement.
public synchronized  PreparedStatementprepareStatement(String s, int i)
     Prepare a statement.
public synchronized  PreparedStatementprepareStatement(String s, int ai)
     Prepare a statement.
public synchronized  PreparedStatementprepareStatement(String s, String as)
     Prepare a statement.
public synchronized  voidreleaseSavepoint(Savepoint savepoint)
     Release savepoint.
public synchronized  voidrollback()
     Rollback.
public synchronized  voidrollback(Savepoint savepoint)
     Rollback.
public  voidsetAutoCommit(boolean flag)
     Set autocommit flag.
public  voidsetCatalog(String s)
     Catalog setter.
public  voidsetClientInfo(String name, String value)
    
public  voidsetClientInfo(Properties properties)
    
public  voidsetHoldability(int i)
     Set holdability.
public  voidsetReadOnly(boolean flag)
    
public synchronized  SavepointsetSavepoint()
     Savepoint setter.
public synchronized  SavepointsetSavepoint(String s)
     Set named savepoint.
public  voidsetTransactionIsolation(int i)
     Transaction isolation setter.
public  voidsetTypeMap(Map map)
     Set type map.
public  Connectionunwrap()
     Unwrap the connection.
public  Tunwrap(Class<T> iface)
    

Field Detail
_createArrayOf
static Method _createArrayOf(Code)



_createBlob
static Method _createBlob(Code)



_createClob
static Method _createClob(Code)



_createNClob
static Method _createNClob(Code)



_createSQLXML
static Method _createSQLXML(Code)



_createStruct
static Method _createStruct(Code)



_getClientInfo
static Method _getClientInfo(Code)



_getClientInfo2
static Method _getClientInfo2(Code)



_isValid
static Method _isValid(Code)



_isWrapperFor
static Method _isWrapperFor(Code)



_setClientInfo
static Method _setClientInfo(Code)



_setClientInfo2
static Method _setClientInfo2(Code)




Constructor Detail
ConnectionWrapper
public ConnectionWrapper(DriverInfo driver, Connection connection)(Code)
Constructor.
Parameters:
  driver - infos on the driver
Parameters:
  connection - connection to be wrapped




Method Detail
check
public synchronized boolean check()(Code)
Check connection. true if the connection is ok



clearWarnings
public void clearWarnings() throws SQLException(Code)
Clear SQL warnings.
throws:
  SQLException -



close
public void close() throws SQLException(Code)
Close.
throws:
  SQLException -



commit
public synchronized void commit() throws SQLException(Code)
Commit.
throws:
  SQLException -



createArrayOf
public Array createArrayOf(String typeName, Object[] elements) throws SQLException(Code)



createBlob
public Blob createBlob() throws SQLException(Code)



createClob
public Clob createClob() throws SQLException(Code)



createNClob
public NClob createNClob() throws SQLException(Code)



createSQLXML
public SQLXML createSQLXML() throws SQLException(Code)



createStatement
public Statement createStatement() throws SQLException(Code)
Create a statement. created statement
throws:
  SQLException -



createStatement
public synchronized Statement createStatement(int i, int j) throws SQLException(Code)
Create a statement.
Parameters:
  i - result set type
Parameters:
  j - result set concurrency new statement
throws:
  SQLException -



createStatement
public synchronized Statement createStatement(int i, int j, int k) throws SQLException(Code)
Create a statement.
Parameters:
  i - result set type
Parameters:
  j - result set concurrency
Parameters:
  k - result set holdability created statement
throws:
  SQLException -



createStruct
public Struct createStruct(String typeName, Object[] attributes) throws SQLException(Code)



enterBusyState
public void enterBusyState()(Code)
Enter busy state.



getAutoCommit
public boolean getAutoCommit() throws SQLException(Code)
Get autocommit flag. autocommit flag
throws:
  SQLException -



getCatalog
public String getCatalog() throws SQLException(Code)
Catalog getter. catalog
throws:
  SQLException -



getClientInfo
public Properties getClientInfo() throws SQLException(Code)



getClientInfo
public String getClientInfo(String name) throws SQLException(Code)



getHoldability
public int getHoldability() throws SQLException(Code)
Get holdability. holdability
throws:
  SQLException -



getLastInsertId
public long getLastInsertId(Statement statement) throws SQLException(Code)
Get last inserted ID.
Parameters:
  statement - last inserted id
throws:
  SQLException -



getMetaData
public DatabaseMetaData getMetaData() throws SQLException(Code)
Get meta data database meta data
throws:
  SQLException -



getTransactionIsolation
public int getTransactionIsolation() throws SQLException(Code)
Transaction isolation getter. transaction isolation
throws:
  SQLException -



getTypeMap
public Map getTypeMap() throws SQLException(Code)
Get type map. type map
throws:
  SQLException -



getWarnings
public SQLWarning getWarnings() throws SQLException(Code)
Get SQL warnings. next SQL Warning.
throws:
  SQLException -



isBusy
public boolean isBusy()(Code)
Check busy state. busy state



isClosed
public boolean isClosed() throws SQLException(Code)
Check the closed state. closed state
throws:
  SQLException -



isReadOnly
public boolean isReadOnly() throws SQLException(Code)
Check the read-only state. read-only state
throws:
  SQLException -



isValid
public boolean isValid(int timeout) throws SQLException(Code)



isWrapperFor
public boolean isWrapperFor(Class iface) throws SQLException(Code)



leaveBusyState
public void leaveBusyState()(Code)
Leave busy state.



nativeSQL
public synchronized String nativeSQL(String s) throws SQLException(Code)
Gets native SQL for a query.
Parameters:
  s - query native SQL
throws:
  SQLException -



prepareCall
public synchronized CallableStatement prepareCall(String s) throws SQLException(Code)
Prepare a callable statement.
Parameters:
  s - SQL query prepared callable statement
throws:
  SQLException -



prepareCall
public synchronized CallableStatement prepareCall(String s, int i, int j) throws SQLException(Code)
Prepare a call.
Parameters:
  s - SQL query
Parameters:
  i - result set type
Parameters:
  j - result set concurrency callable statement
throws:
  SQLException -



prepareCall
public synchronized CallableStatement prepareCall(String s, int i, int j, int k) throws SQLException(Code)
Prepare a callable statement.
Parameters:
  s - SQL query
Parameters:
  i - result set type
Parameters:
  j - result set concurrency
Parameters:
  k - result set holdability prepared statement
throws:
  SQLException -



prepareStatement
public synchronized PreparedStatement prepareStatement(String s) throws SQLException(Code)
Prepare a statement.
Parameters:
  s - SQL query prepared statement
throws:
  SQLException -



prepareStatement
public synchronized PreparedStatement prepareStatement(String s, int i, int j) throws SQLException(Code)
Prepare a statement.
Parameters:
  s - SQL query
Parameters:
  i - result set type
Parameters:
  j - result set concurrency prepared statement
throws:
  SQLException -



prepareStatement
public synchronized PreparedStatement prepareStatement(String s, int i, int j, int k) throws SQLException(Code)
Prepare a statement.
Parameters:
  s - SQL query
Parameters:
  i - result set type
Parameters:
  j - result set concurrency
Parameters:
  k - result set holdability prepared statement
throws:
  SQLException -



prepareStatement
public synchronized PreparedStatement prepareStatement(String s, int i) throws SQLException(Code)
Prepare a statement.
Parameters:
  s - SQL query
Parameters:
  i - autogenerated keys prepared statement
throws:
  SQLException -



prepareStatement
public synchronized PreparedStatement prepareStatement(String s, int ai) throws SQLException(Code)
Prepare a statement.
Parameters:
  s - SQL query
Parameters:
  ai - autogenerated keys column indexes prepared statement
throws:
  SQLException -



prepareStatement
public synchronized PreparedStatement prepareStatement(String s, String as) throws SQLException(Code)
Prepare a statement.
Parameters:
  s - SQL query
Parameters:
  as - autogenerated keys column names prepared statement
throws:
  SQLException -



releaseSavepoint
public synchronized void releaseSavepoint(Savepoint savepoint) throws SQLException(Code)
Release savepoint.
Parameters:
  savepoint - savepoint
throws:
  SQLException -



rollback
public synchronized void rollback() throws SQLException(Code)
Rollback.
throws:
  SQLException -



rollback
public synchronized void rollback(Savepoint savepoint) throws SQLException(Code)
Rollback.
Parameters:
  savepoint - savepoint
throws:
  SQLException -



setAutoCommit
public void setAutoCommit(boolean flag) throws SQLException(Code)
Set autocommit flag.
Parameters:
  flag - autocommit
throws:
  SQLException -



setCatalog
public void setCatalog(String s) throws SQLException(Code)
Catalog setter.
Parameters:
  s - catalog
throws:
  SQLException -



setClientInfo
public void setClientInfo(String name, String value)(Code)



setClientInfo
public void setClientInfo(Properties properties)(Code)



setHoldability
public void setHoldability(int i) throws SQLException(Code)
Set holdability.
Parameters:
  i - holdability
throws:
  SQLException -



setReadOnly
public void setReadOnly(boolean flag) throws SQLException(Code)
set read-only flag
Parameters:
  flag - read-only
throws:
  SQLException -



setSavepoint
public synchronized Savepoint setSavepoint() throws SQLException(Code)
Savepoint setter. save point
throws:
  SQLException -



setSavepoint
public synchronized Savepoint setSavepoint(String s) throws SQLException(Code)
Set named savepoint.
Parameters:
  s - savepoint name savepoint
throws:
  SQLException -



setTransactionIsolation
public void setTransactionIsolation(int i) throws SQLException(Code)
Transaction isolation setter.
Parameters:
  i - transaction isolation
throws:
  SQLException -



setTypeMap
public void setTypeMap(Map map) throws SQLException(Code)
Set type map.
Parameters:
  map - type map
throws:
  SQLException -



unwrap
public Connection unwrap()(Code)
Unwrap the connection. the unwrapped connection



unwrap
public T unwrap(Class<T> iface) throws SQLException(Code)



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.