Java Doc for Buffered.java in  » Web-Framework » Millstone » org » millstone » base » data » 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 » Millstone » org.millstone.base.data 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.millstone.base.data.Buffered

All known Subclasses:   org.millstone.base.ui.Form,
Buffered
public interface Buffered (Code)

Defines the interface to commit and discard changes to an object, supporting read-through and write-through modes.

Read-through mode means that the value read from the buffered object is constantly up to date with the data source. Write-through mode means that all changes to the object are immediately updated to the data source.

Since these modes are independent, their combinations may result in some behaviour that may sound surprising. For example, if a Buffered object is in read-through mode but not in write-through mode, the result is an object whose value is updated directly from the data source only if it's not locally modified. If the value is locally modified, retrieving the value from the object would result in a value that is different than the one stored in the data source, even though the object is in read-through mode.


author:
   IT Mill Ltd.
version:
   3.1.1
since:
   3.0

Inner Class :public class SourceException extends RuntimeException implements ErrorMessage



Method Summary
public  voidcommit()
     Updates all changes since the previous commit to the data source. The value stored in the object will always be updated into the data source when commit is called.
throws:
  SourceException - if the operation fails because of an exception is thrown by the data source.
public  voiddiscard()
     Discards all changes since last commit.
public  booleanisModified()
     Tests if the value stored in the object has been modified since it was last updated from the data source.
public  booleanisReadThrough()
     Tests if the object is in read-through mode.
public  booleanisWriteThrough()
     Tests if the object is in write-through mode.
public  voidsetReadThrough(boolean readThrough)
     Sets the object's read-through mode to the specified status.
public  voidsetWriteThrough(boolean writeThrough)
     Sets the object's write-through mode to the specified status.



Method Detail
commit
public void commit() throws SourceException(Code)
Updates all changes since the previous commit to the data source. The value stored in the object will always be updated into the data source when commit is called.
throws:
  SourceException - if the operation fails because of an exception is thrown by the data source. The cause is included in theexception.



discard
public void discard() throws SourceException(Code)
Discards all changes since last commit. The object updates its value from the data source.
throws:
  SourceException - if the operation fails because of an exception is thrown by the data source. The cause is included in theexception.



isModified
public boolean isModified()(Code)
Tests if the value stored in the object has been modified since it was last updated from the data source. true if the value in the object has beenmodified since the last data source update, false ifnot.



isReadThrough
public boolean isReadThrough()(Code)
Tests if the object is in read-through mode. If the object is in read-through mode, retrieving its value will result in the value being first updated from the data source to the object. The only exception to this rule is that when the object is not in write-through mode and it's buffer contains a modified value, the value retrieved from the object will be the locally modified value in the buffer which may differ from the value in the data source. true if the object is in read-through mode,false if it's not.



isWriteThrough
public boolean isWriteThrough()(Code)
Tests if the object is in write-through mode. If the object is in write-through mode, all modifications to it will result in commit being called after the modification. true if the object is in write-through mode,false if it's not.



setReadThrough
public void setReadThrough(boolean readThrough) throws SourceException(Code)
Sets the object's read-through mode to the specified status. When switching read-through mode on, the object's value is updated from the data source.
Parameters:
  readThrough - Boolean value to indicate if the object should bein read-through mode after the call.
throws:
  SourceException - if the operation fails because of an exception is thrown by the data source. The cause is included in theexception.



setWriteThrough
public void setWriteThrough(boolean writeThrough) throws SourceException(Code)
Sets the object's write-through mode to the specified status. When switching the write-through mode on, the commit() operation will be performed.
Parameters:
  writeThrough - Boolean value to indicate if the object should bein write-through mode after the call.



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