Java Doc for MySQL.java in  » Workflow-Engines » pegasus-2.1.0 » org » griphyn » vdl » dbdriver » 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 » Workflow Engines » pegasus 2.1.0 » org.griphyn.vdl.dbdriver 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.griphyn.vdl.dbdriver.DatabaseDriver
      org.griphyn.vdl.dbdriver.MySQL

MySQL
public class MySQL extends DatabaseDriver (Code)
This class implements the driver API for the MySQL 4.* database.
author:
   Jens-S. Vöckler
author:
   Yong Zhao
version:
   $Revision: 50 $
See Also:   DatabaseDriver
See Also:   org.griphyn.vdl.dbschema


Field Summary
 booleanm_lockSequenceTable
     Maintains the property, if locking of sequence table is required.

Constructor Summary
public  MySQL()
     Default constructor.

Method Summary
public  booleancachingMakesSense()
     Determines, if the backend is expensive, and results should be cached.
public  booleanconnect(String url, Properties info, Set tables)
     Establish a connection to your database.
public  booleanpreferString()
     Predicate to tell the schema, if using a string instead of number will result in the speedier index scans instead of sequential scans. PostGreSQL has this problem, but using strings in the place of integers may not be universally portable. true, if using strings instead of integers and bigintswill yield better performance.
public  Stringquote(String s)
     Quotes a string that may contain special SQL characters.
Parameters:
  s - is the raw string.
public  longsequence1(String name)
     Obtains the next value from a sequence.
Parameters:
  name - is the name of the sequence.
public  longsequence2(Statement s, String name, int pos)
     Obtains the sequence value for the current statement.

Field Detail
m_lockSequenceTable
boolean m_lockSequenceTable(Code)
Maintains the property, if locking of sequence table is required.




Constructor Detail
MySQL
public MySQL()(Code)
Default constructor. As the constructor will do nothing, please use the connect method to obtain a database connection.
See Also:   MySQL.connect(String,Properties,Set)




Method Detail
cachingMakesSense
public boolean cachingMakesSense()(Code)
Determines, if the backend is expensive, and results should be cached. Ideally, this will move transparently into the backend itself. true if caching is advisable, false for no caching.



connect
public boolean connect(String url, Properties info, Set tables) throws SQLException, ClassNotFoundException(Code)
Establish a connection to your database. The parameters will often be ignored or abused for different purposes on different backends. It is assumed that the connection is not in auto-commit mode, and explicit commits must be issued.
Parameters:
  url - the contact string to database, or schema location
Parameters:
  info - additional parameters, usually username and password
Parameters:
  tables - is a set of all table names in the schema. Theexistence of all tables will be checked to verifythat the schema is active in the database. true if the connection succeeded, false otherwise. Usually,false is returned, if the any of the tables or sequences is missing.
exception:
  SQLException - if the driver is incapable of establishinga connection.



preferString
public boolean preferString()(Code)
Predicate to tell the schema, if using a string instead of number will result in the speedier index scans instead of sequential scans. PostGreSQL has this problem, but using strings in the place of integers may not be universally portable. true, if using strings instead of integers and bigintswill yield better performance.



quote
public String quote(String s)(Code)
Quotes a string that may contain special SQL characters.
Parameters:
  s - is the raw string. the quoted string, which may be just the input string.



sequence1
public long sequence1(String name) throws SQLException(Code)
Obtains the next value from a sequence.
Parameters:
  name - is the name of the sequence. the next sequence number.
exception:
  SQLException - if something goes wrong while fetching thenew value.



sequence2
public long sequence2(Statement s, String name, int pos) throws SQLException(Code)
Obtains the sequence value for the current statement. Sigh.
Parameters:
  s - is a statment or prepared statement
Parameters:
  name - is the name of the sequence.
Parameters:
  pos - is the column number of the auto-increment column. the next sequence number.
exception:
  SQLException - if something goes wrong while fetching thenew value.



Fields inherited from org.griphyn.vdl.dbdriver.DatabaseDriver
protected Connection m_connection(Code)(Java Doc)
protected Map m_prepared(Code)(Java Doc)

Methods inherited from org.griphyn.vdl.dbdriver.DatabaseDriver
public boolean addPreparedStatement(String id, String statement) throws SQLException(Code)(Java Doc)
protected boolean addPreparedStatement(String id, String statement, boolean autoGeneratedKeys) throws SQLException(Code)(Java Doc)
public ResultSet backdoor(String query) throws SQLException(Code)(Java Doc)
abstract public boolean cachingMakesSense()(Code)(Java Doc)
public void cancelPreparedStatement(String id) throws SQLException, ArrayIndexOutOfBoundsException(Code)(Java Doc)
public void clearWarnings() throws SQLException(Code)(Java Doc)
public void commit() throws SQLException(Code)(Java Doc)
protected boolean connect(String driver, String url, Properties info, Set tables) throws SQLException, ClassNotFoundException(Code)(Java Doc)
abstract public boolean connect(String url, Properties info, Set tables) throws SQLException, ClassNotFoundException(Code)(Java Doc)
public int delete(String table, Map columns) throws SQLException(Code)(Java Doc)
public void disconnect() throws SQLException(Code)(Java Doc)
public void driverMatch() throws SQLException(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
public PreparedStatement getPreparedStatement(String id) throws SQLException(Code)(Java Doc)
public SQLWarning getWarnings() throws SQLException(Code)(Java Doc)
public long insert(String table, Map keycolumns, Map columns) throws SQLException(Code)(Java Doc)
public boolean insertPreparedStatement(String id, String statement) throws SQLException(Code)(Java Doc)
public static DatabaseDriver loadDriver(String dbDriverName, String propertyPrefix, Object[] arguments) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, SQLException(Code)(Java Doc)
public static DatabaseDriver loadDriver(String propertyPrefix) throws ClassNotFoundException, IOException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException, SQLException(Code)(Java Doc)
abstract public boolean preferString()(Code)(Java Doc)
public String quote(String s)(Code)(Java Doc)
public void removePreparedStatement(String id) throws SQLException(Code)(Java Doc)
public void rollback() throws SQLException(Code)(Java Doc)
public ResultSet select(List select, String table, Map where, String order) throws SQLException(Code)(Java Doc)
public ResultSet select(List select, String table, Map where, Map operator, String order) throws SQLException(Code)(Java Doc)
abstract public long sequence1(String name) throws SQLException(Code)(Java Doc)
abstract public long sequence2(Statement s, String name, int pos) throws SQLException(Code)(Java Doc)
public int update(String table, Map keycolumns, Map columns) throws SQLException(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.