com.marringtons.object
Class Search.Access
java.lang.Object
com.marringtons.object.Search.Access
- Enclosing class:
- Search
- public static class Search.Access
- extends Object
Static fields in this class are used as part of Search initialisation
to define whether data retrieved is only for perusal or whether it can
be updated.
- See Also:
Search.Search(DAO, Search.Load, Search.Access)
|
Field Summary |
static Search.Access |
readOnly
Search uses Search.Access.readOnly to mark returned DAOs as read only.
|
static Search.Access |
readWrite
Search uses Search.Access.readWrite to mark returned DAOs as ready for
update to the database if changed. |
readWrite
public static final Search.Access readWrite
- Search uses Search.Access.readWrite to mark returned DAOs as ready for
update to the database if changed. This makes for slightly more expensive
retrieval, but more importantly it allows changes to persistent data.
readOnly
public static final Search.Access readOnly
- Search uses Search.Access.readOnly to mark returned DAOs as read only.
This means that you can safely pass retrieved data to unsecured classes
with the knowledge that they cannot be accidentally changed on disk.
The retrievals are a little faster also as a copy is not kept for update
comparisons.
Search.Access
public Search.Access()
Copyright © 2005 Paul Marrington http://library.marringtons.com