Java Doc for JdbcBridge.java in  » J2EE » Jaffa » org » jaffa » persistence » engines » jdbcengine » querygenerator » 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 » J2EE » Jaffa » org.jaffa.persistence.engines.jdbcengine.querygenerator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jaffa.persistence.engines.jdbcengine.querygenerator.JdbcBridge

JdbcBridge
public class JdbcBridge (Code)
Use the methods of this class to execute various operations on the database.




Method Summary
public static  voidexecuteAdd(IPersistent object, DataSource dataSource)
     Adds the Persistent object to the database.
public static  voidexecuteDelete(IPersistent object, DataSource dataSource)
     Deletes the Persistent object from the database.
public static  voidexecuteLock(IPersistent object, DataSource dataSource)
     Locks the underlying database row of the Persistent object.
public static  CollectionexecuteQuery(Criteria criteria, DataSource dataSource)
     Executes the query based on the Criteria object.
Parameters:
  criteria - The input Criteria.
Parameters:
  dataSource - The DataSource against which the query is to be executed.
throws:
  IOException - if any error occurs while extracting the String from the criteria.
throws:
  SQLException - if any database error occurs.
throws:
  PostLoadFailedException - if any error is thrown in the PostLoad trigger of the persistent object.
throws:
  DataSourceCursorRuntimeException - if any error occurs while molding the row into the Persistent object.
public static  voidexecuteStoredProcedure(IStoredProcedure sp, DataSource dataSource)
     Executes the Stored Procedure.
public static  voidexecuteUpdate(IPersistent object, DataSource dataSource)
     Updates the Persistent object in the database.
public static  voidupdatePersistentFlagsOnAdd(IPersistent object)
     This method sets the appropriate flags on a Persistent object after being added to the database.
public static  voidupdatePersistentFlagsOnDelete(IPersistent object)
     This method sets the appropriate flags on a Persistent object after being deleted from the database.
public static  voidupdatePersistentFlagsOnLock(IPersistent object)
     This method sets the appropriate flags on a Persistent object after the underlying row is locked in the database.
public static  voidupdatePersistentFlagsOnQuery(IPersistent object, Criteria criteria)
     This method sets the appropriate flags on a Persistent object after being retrieved from the database.
public static  voidupdatePersistentFlagsOnUpdate(IPersistent object)
     This method sets the appropriate flags on a Persistent object after being updated to the database.



Method Detail
executeAdd
public static void executeAdd(IPersistent object, DataSource dataSource) throws SQLException, IllegalAccessException, InvocationTargetException, IOException(Code)
Adds the Persistent object to the database.
Parameters:
  object - The object to be added.
Parameters:
  dataSource - The DataSource to which the object will be added.
throws:
  SQLException - if any database error occurs.
throws:
  IllegalAccessException - if the Persistent class is not accessible for introspection.
throws:
  InvocationTargetException - if the accessor method for the Persistent class throws an exception.
throws:
  IOException - if any error occurs while extracting the value for an attribute.



executeDelete
public static void executeDelete(IPersistent object, DataSource dataSource) throws SQLException, IllegalAccessException, InvocationTargetException, IOException(Code)
Deletes the Persistent object from the database.
Parameters:
  object - The object to be deleted.
Parameters:
  dataSource - The DataSource from which the object will be deleted.
throws:
  SQLException - if any database error occurs.
throws:
  IllegalAccessException - if the Persistent class is not accessible for introspection.
throws:
  InvocationTargetException - if the accessor method for the Persistent class throws an exception.
throws:
  IOException - if any error occurs while extracting the value for an attribute.



executeLock
public static void executeLock(IPersistent object, DataSource dataSource) throws SQLException, IllegalAccessException, InvocationTargetException, IOException(Code)
Locks the underlying database row of the Persistent object.
Parameters:
  object - The object to be locked.
Parameters:
  dataSource - The DataSource in which the object will be locked.
throws:
  SQLException - if any database error occurs.
throws:
  IllegalAccessException - if the Persistent class is not accessible for introspection.
throws:
  InvocationTargetException - if the accessor method for the Persistent class throws an exception.
throws:
  IOException - if any error occurs while extracting the value for an attribute.



executeQuery
public static Collection executeQuery(Criteria criteria, DataSource dataSource) throws IOException, SQLException, PostLoadFailedException, DataSourceCursorRuntimeException(Code)
Executes the query based on the Criteria object.
Parameters:
  criteria - The input Criteria.
Parameters:
  dataSource - The DataSource against which the query is to be executed.
throws:
  IOException - if any error occurs while extracting the String from the criteria.
throws:
  SQLException - if any database error occurs.
throws:
  PostLoadFailedException - if any error is thrown in the PostLoad trigger of the persistent object.
throws:
  DataSourceCursorRuntimeException - if any error occurs while molding the row into the Persistent object. a Collection of Persistent objects as a result of the query.



executeStoredProcedure
public static void executeStoredProcedure(IStoredProcedure sp, DataSource dataSource) throws SQLException, IllegalAccessException, InvocationTargetException, IOException(Code)
Executes the Stored Procedure.
Parameters:
  sp - The Stored Procedure to execute.
Parameters:
  dataSource - The DataSource against which the Stored Procedure is to be executed.
throws:
  SQLException - if any database error occurs.
throws:
  IllegalAccessException - if the class is not accessible.
throws:
  InvocationTargetException - if the accessor/mutator method for the Stored Procedure throws an exception.
throws:
  IOException - if any error occurs in reading the data from the database.



executeUpdate
public static void executeUpdate(IPersistent object, DataSource dataSource) throws SQLException, IllegalAccessException, InvocationTargetException, IOException(Code)
Updates the Persistent object in the database.
Parameters:
  object - The object to be updated.
Parameters:
  dataSource - The DataSource in which the object will be updated.
throws:
  SQLException - if any database error occurs.
throws:
  IllegalAccessException - if the Persistent class is not accessible for introspection.
throws:
  InvocationTargetException - if the accessor method for the Persistent class throws an exception.
throws:
  IOException - if any error occurs while extracting the value for an attribute.



updatePersistentFlagsOnAdd
public static void updatePersistentFlagsOnAdd(IPersistent object)(Code)
This method sets the appropriate flags on a Persistent object after being added to the database.
Parameters:
  object - the Persistent object.



updatePersistentFlagsOnDelete
public static void updatePersistentFlagsOnDelete(IPersistent object)(Code)
This method sets the appropriate flags on a Persistent object after being deleted from the database.
Parameters:
  object - the Persistent object.



updatePersistentFlagsOnLock
public static void updatePersistentFlagsOnLock(IPersistent object)(Code)
This method sets the appropriate flags on a Persistent object after the underlying row is locked in the database.
Parameters:
  object - the Persistent object.



updatePersistentFlagsOnQuery
public static void updatePersistentFlagsOnQuery(IPersistent object, Criteria criteria)(Code)
This method sets the appropriate flags on a Persistent object after being retrieved from the database.
Parameters:
  object - the Persistent object.
Parameters:
  criteria - the Criteria used for retrieving the object.



updatePersistentFlagsOnUpdate
public static void updatePersistentFlagsOnUpdate(IPersistent object)(Code)
This method sets the appropriate flags on a Persistent object after being updated to the database.
Parameters:
  object - the Persistent object.



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.