org.millstone.base.data

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 
org.millstone.base.data

Provides interfaces for the MillStone data layer which contains classes for typed data values, data collections, and handlers. A {@link org.millstone.base.data.Property Property} is a simple typed data value; an {@link org.millstone.base.data.Item Item} is a collection of Properties, each corresponding to a unique identifier; a {@link org.millstone.base.data.Container Container} is a collection of identified Items with special constraints; a {@link org.millstone.base.data.Buffered Buffered} class is able to track its changes and to commit or discard them later.

Package Specification

The package contains a three-tiered structure for typed data objects and collections of them:

  • The simplest of these is the {@link org.millstone.base.data.Property Property} which represents a single typed data value. A Property may be read-only in which case attempts to modify its contents will throw an exception.
  • The second level of the data layer is represented by the {@link org.millstone.base.data.Item Item} which embodies a set of Properties. Each Property in an Item corresponds to a locally unique(that is, inside the Item) identifier.
  • The third level is called the {@link org.millstone.base.data.Container Container} which can be visualized as a set of Items, each corresponding to a locally unique identifier. Note that the Container imposes a few restrictions on the data stored in it, see further documentation in the class specification.

In addition to these interfaces the package contains the {@link org.millstone.base.data.Buffered Buffered} interface, which defines the methods to make an object buffered, that is, track the changes to an object and allow committing or discarding them at a later time.

Provides interfaces for the MillStone validation framework. The framework defines two interfaces; one for classes that need to support external validation, and another one for the validators themselves.

Validation

The most important method defined by the {@link org.millstone.base.data.Validatable Validatable} interface is {@link org.millstone.base.data.Validatable#isValid() isValid()}. It asks all registered validators to verify if the object's value is valid or not. Note that it depends on the validators registered for a object which values are valid and which are not. For example, a null value can be valid value for one validator but invalid for another.

In addition to isValid(), Validatable defines methods to add, remove and list validators of a validatable object.

{@link org.millstone.base.data.Validator Validator} defines the interface for an external validator. These validators may be added to any Validatable object, and their task is to check, when requested, that the object which they are attached to contains a valid value. The actual validation logic is hidden in the {@link org.millstone.base.data.Validator#validate(Object) validate(Object)} method.

In addition to check(Object), Validator defines the InvalidValueException which is used to signal that a checked value is invalid, and the {@link org.millstone.base.data.Validator.Suggestive Suggestive} subinterface which includes functionality to suggest a valid value for the validated object.

Java Source File NameTypeComment
Buffered.javaInterface

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.

BufferedValidatable.javaInterface

This interface defines the combination of Validatable and Buffered interfaces.

Container.javaInterface

A specialized set of identified Items.

Item.javaInterface

Provides a mechanism for handling a set of Properties, each associated to a locally unique identifier.

Property.javaInterface Property is a simple data object that contains one typed value.
Validatable.javaInterface

Interface for validatable objects.

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