Java Doc for BaseConnection.java in  » Database-JDBC-Connection-Pool » postgresql » org » postgresql » core » 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 JDBC Connection Pool » postgresql » org.postgresql.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.postgresql.core.BaseConnection

All known Subclasses:   org.postgresql.jdbc2.AbstractJdbc2Connection,
BaseConnection
public interface BaseConnection extends PGConnection,Connection(Code)
Driver-internal connection interface. Application code should not use this interface.




Method Summary
public  voidcancelQuery()
     Cancel the current query executing on this connection.
public  byte[]encodeString(String str)
     Encode a string using the database's client_encoding (usually UNICODE, but can vary on older server versions).
public  StringescapeString(String str)
     Escapes a string for use as string-literal within an SQL command.
public  ResultSetexecSQLQuery(String s)
     Execute a SQL query that returns a single resultset.
public  ResultSetexecSQLQuery(String s, int resultSetType, int resultSetConcurrency)
    
public  voidexecSQLUpdate(String s)
     Execute a SQL query that does not return results.
public  StringgetJavaClass(int oid)
    
public  LoggergetLogger()
    
public  ObjectgetObject(String type, String value)
     Construct and return an appropriate object for the given type and value.
public  StringgetPGType(int oid)
     Look up the postgresql type name for a given oid.
public  intgetPGType(String pgTypeName)
     Look up the oid for a given postgresql type name.
public  QueryExecutorgetQueryExecutor()
     Get the QueryExecutor implementation for this connection.
public  intgetSQLType(int oid)
     Look up the SQL typecode for a given type oid.
public  intgetSQLType(String pgTypeName)
     Look up the SQL typecode for a given postgresql type name.
public  booleangetStandardConformingStrings()
     Returns whether the server treats string-literals according to the SQL standard or if it uses traditional PostgreSQL escaping rules.
public  booleangetStringVarcharFlag()
    
public  TimestampUtilsgetTimestampUtils()
    
public  booleanhaveMinimumCompatibleVersion(String ver)
     Check if we should use driver behaviour introduced in a particular driver version.
public  booleanhaveMinimumServerVersion(String ver)
     Check if we have at least a particular server version.



Method Detail
cancelQuery
public void cancelQuery() throws SQLException(Code)
Cancel the current query executing on this connection.
throws:
  SQLException - if something goes wrong.



encodeString
public byte[] encodeString(String str) throws SQLException(Code)
Encode a string using the database's client_encoding (usually UNICODE, but can vary on older server versions). This is used when constructing synthetic resultsets (for example, in metadata methods).
Parameters:
  str - the string to encode an encoded representation of the string
throws:
  SQLException - if something goes wrong.



escapeString
public String escapeString(String str) throws SQLException(Code)
Escapes a string for use as string-literal within an SQL command. The method chooses the applicable escaping rules based on the value of BaseConnection.getStandardConformingStrings() .
Parameters:
  str - a string value the escaped representation of the string
throws:
  SQLException - if the string contains a \0 character



execSQLQuery
public ResultSet execSQLQuery(String s) throws SQLException(Code)
Execute a SQL query that returns a single resultset. Never causes a new transaction to be started regardless of the autocommit setting.
Parameters:
  s - the query to execute the (non-null) returned resultset
throws:
  SQLException - if something goes wrong.



execSQLQuery
public ResultSet execSQLQuery(String s, int resultSetType, int resultSetConcurrency) throws SQLException(Code)



execSQLUpdate
public void execSQLUpdate(String s) throws SQLException(Code)
Execute a SQL query that does not return results. Never causes a new transaction to be started regardless of the autocommit setting.
Parameters:
  s - the query to execute
throws:
  SQLException - if something goes wrong.



getJavaClass
public String getJavaClass(int oid) throws SQLException(Code)



getLogger
public Logger getLogger()(Code)



getObject
public Object getObject(String type, String value) throws SQLException(Code)
Construct and return an appropriate object for the given type and value. This only considers the types registered via org.postgresql.PGConnection.addDataType(StringClass) and org.postgresql.PGConnection.addDataType(StringString) .

If no class is registered as handling the given type, then a generic org.postgresql.util.PGobject instance is returned.
Parameters:
  type - the backend typename
Parameters:
  value - the type-specific string representation of the value an appropriate object; never null.
throws:
  SQLException - if something goes wrong




getPGType
public String getPGType(int oid) throws SQLException(Code)
Look up the postgresql type name for a given oid. This is the inverse of BaseConnection.getPGType(String) .
Parameters:
  oid - the type's OID the server type name for that OID, or null if unknown
throws:
  SQLException - if something goes wrong



getPGType
public int getPGType(String pgTypeName) throws SQLException(Code)
Look up the oid for a given postgresql type name. This is the inverse of BaseConnection.getPGType(int) .
Parameters:
  pgTypeName - the server type name to look up oid the type's OID, or 0 if unknown
throws:
  SQLException - if something goes wrong



getQueryExecutor
public QueryExecutor getQueryExecutor()(Code)
Get the QueryExecutor implementation for this connection. the (non-null) executor



getSQLType
public int getSQLType(int oid) throws SQLException(Code)
Look up the SQL typecode for a given type oid.
Parameters:
  oid - the type's OID the SQL typecode (a constant from java.sql.Types) for the type
throws:
  SQLException - if something goes wrong



getSQLType
public int getSQLType(String pgTypeName) throws SQLException(Code)
Look up the SQL typecode for a given postgresql type name.
Parameters:
  pgTypeName - the server type name to look up the SQL typecode (a constant from java.sql.Types) for the type
throws:
  SQLException - if something goes wrong



getStandardConformingStrings
public boolean getStandardConformingStrings()(Code)
Returns whether the server treats string-literals according to the SQL standard or if it uses traditional PostgreSQL escaping rules. Versions up to 8.1 always treated backslashes as escape characters in string-literals. Since 8.2, this depends on the value of the standard_conforming_strings server variable. true if the server treats string literals according to the SQLstandard
See Also:   ProtocolConnection.getStandardConformingStrings



getStringVarcharFlag
public boolean getStringVarcharFlag()(Code)



getTimestampUtils
public TimestampUtils getTimestampUtils()(Code)



haveMinimumCompatibleVersion
public boolean haveMinimumCompatibleVersion(String ver)(Code)
Check if we should use driver behaviour introduced in a particular driver version. This defaults to behaving as the actual driver's version but can be overridden by the "compatible" URL parameter.
Parameters:
  ver - the driver version to check true if the driver's behavioural version is at least "ver".
throws:
  SQLException - if something goes wrong



haveMinimumServerVersion
public boolean haveMinimumServerVersion(String ver)(Code)
Check if we have at least a particular server version.
Parameters:
  ver - the server version to check true if the server version is at least "ver".
throws:
  SQLException - if something goes wrong



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