Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


org.eclipse.emf.transaction.impl
Class ReadOnlyValidatorImpl


java.lang.Object
  extended by 

org.eclipse.emf.transaction.impl.ReadWriteValidatorImpl
      extended by 
org.eclipse.emf.transaction.impl.ReadOnlyValidatorImpl
All Implemented Interfaces:
TransactionValidator

public class ReadOnlyValidatorImpl
extends ReadWriteValidatorImpl

A validator for read-only transactions. It provides all of the notifications (in order) that occurred during the transaction, but does not validate them (validation always passes with no problems).

A read-only validator should be created for the root transaction of any nested read-only transaction structure, when the root transaction is activated. As child transactions are activated, they must be added to me so that I may correctly track which notifications were received during which transaction, and at which time relative to the start and completion of nested transactions.

See Also:
ReadWriteValidatorImpl

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.transaction.impl. TransactionValidator
TransactionValidator.Factory
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.transaction.impl. TransactionValidator
NULL
 
Constructor Summary
ReadOnlyValidatorImpl ()
          Initializes me.
 
Method Summary
  IStatus validate ()
          I always return an OK status because there is never anything to validate in a read-only transaction.
 
Methods inherited from class org.eclipse.emf.transaction.impl. ReadWriteValidatorImpl
add, createValidator, dispose, getNotificationsForPostcommit, getNotificationsForPrecommit, getNotificationsForValidation, remove, validate
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyValidatorImpl

public ReadOnlyValidatorImpl()
Initializes me.

Method Detail

validate

public 
IStatus validate()
I always return an OK status because there is never anything to validate in a read-only transaction.

Returns:
an OK status, always

Copyright 2002, 2007 IBM Corporation and others.
All Rights Reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire