Java Doc for Callbacks.java in  » Web-Framework » rife-1.6.1 » com » uwyn » rife » database » querymanagers » generic » 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 » Web Framework » rife 1.6.1 » com.uwyn.rife.database.querymanagers.generic 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.uwyn.rife.database.querymanagers.generic.Callbacks

Callbacks
public interface Callbacks (Code)
Callbacks are hooks that are being called when beans are manipulated through the com.uwyn.rife.database.querymanagers.generic.GenericQueryManager or other query managers that are based on it ( com.uwyn.rife.cmf.dam.ContentQueryManager , for instance). They can either be implemented directly by implementing this interface, or they can be provided by a bean by implementing the com.uwyn.rife.database.querymanagers.generic.CallbacksProvider interface.

This can for example be used to delete associated and dependent objects when delete is called (by implementing Callbacks.beforeDelete(int) ), or to clear a cache when an object has been modified (by implementing Callbacks.afterSave(Object,boolean) and Callbacks.afterDelete(int,boolean) ).

The return value of callbacks can be used to cancel actions. When the before* callbacks return false, the associated actions are cancelled. When the after* callbacks return false, the execution of the action is interrupted at that step and no further callbacks will be called.
author:
   Geert Bevin (gbevin[remove] at uwyn dot com)
version:
   $Revision: 3634 $
See Also:   com.uwyn.rife.database.querymanagers.generic.GenericQueryManager
since:
   1.0





Method Summary
public  booleanafterDelete(int objectId, boolean success)
     Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.delete(int) .
public  booleanafterInsert(BeanType object, boolean success)
     Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.insert(Object) , or at the end of com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) if a new bean was saved.
public  booleanafterRestore(BeanType object)
     Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.restore(int) and com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.restoreFirst(RestoreQuery) , and for every instance restored during com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.restore and com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.restore(RestoreQuery) .
public  booleanafterSave(BeanType object, boolean success)
     Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) .
public  booleanafterUpdate(BeanType object, boolean success)
     Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.update(Object) , or at the end of com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) if an existing bean was saved.
public  booleanafterValidate(BeanType object)
     Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.validate(Validated) .
public  booleanbeforeDelete(int objectId)
     Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.delete(int) .
public  booleanbeforeInsert(BeanType object)
     Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.insert(Object) , or in the beginning of com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) if a new bean is being saved.
public  booleanbeforeSave(BeanType object)
     Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) .
public  booleanbeforeUpdate(BeanType object)
     Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.update(Object) , or in the beginning of com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) if an existing bean is being saved.
public  booleanbeforeValidate(BeanType object)
     Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.validate(Validated) .



Method Detail
afterDelete
public boolean afterDelete(int objectId, boolean success)(Code)
Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.delete(int) .
Parameters:
  objectId - the id of the bean instance that was deleted
Parameters:
  success - true if the delete was successful; or

false otherwise true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




afterInsert
public boolean afterInsert(BeanType object, boolean success)(Code)
Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.insert(Object) , or at the end of com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) if a new bean was saved.
Parameters:
  object - the bean instance that was inserted
Parameters:
  success - true if the insert was successful; or

false otherwise true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




afterRestore
public boolean afterRestore(BeanType object)(Code)
Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.restore(int) and com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.restoreFirst(RestoreQuery) , and for every instance restored during com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.restore and com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.restore(RestoreQuery) .
Parameters:
  object - the bean instance that was restored true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




afterSave
public boolean afterSave(BeanType object, boolean success)(Code)
Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) .
Parameters:
  object - the bean instance that was saved
Parameters:
  success - true if the save was successful; or

false otherwise true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




afterUpdate
public boolean afterUpdate(BeanType object, boolean success)(Code)
Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.update(Object) , or at the end of com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) if an existing bean was saved.
Parameters:
  object - the bean instance that was updated
Parameters:
  success - true if the update was successful; or

false otherwise true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




afterValidate
public boolean afterValidate(BeanType object)(Code)
Is called after com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.validate(Validated) .
Parameters:
  object - the bean instance that was validated true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.3




beforeDelete
public boolean beforeDelete(int objectId)(Code)
Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.delete(int) .
Parameters:
  objectId - the id of the bean that will be deleted true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




beforeInsert
public boolean beforeInsert(BeanType object)(Code)
Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.insert(Object) , or in the beginning of com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) if a new bean is being saved.
Parameters:
  object - the bean instance that will be inserted true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




beforeSave
public boolean beforeSave(BeanType object)(Code)
Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) .
Parameters:
  object - the bean instance that will be saved true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




beforeUpdate
public boolean beforeUpdate(BeanType object)(Code)
Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.update(Object) , or in the beginning of com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.save(Object) if an existing bean is being saved.
Parameters:
  object - the bean instance that will be updated true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.0




beforeValidate
public boolean beforeValidate(BeanType object)(Code)
Is called before com.uwyn.rife.database.querymanagers.generic.GenericQueryManager.validate(Validated) .
Parameters:
  object - the bean instance that will be validated true if the execution should continue as normal;or

false if the execution should be interrupted
since:
   1.3




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