Top Description Fields Constructors Methods
org.eclipse.persistence.internal.helper

public Class InvalidObject

extends Object
Class Inheritance

Purpose:Indicates an object that should not be returned from query execution.

When conforming if checkEarly return finds a matching object by exact primary key, but that object is deleted, want to return null from query execution.

However if null is returned from checkEarly return that will indicate that no object was found and to go to the database. Hence returning null is not enough, something else needed to be returned, indicating not only that checkEarlyReturn had failed but query execution should not proceed.

Can be used in other instances where returning null is ambiguous.

Implements singleton pattern

Author
Stephen McRitchie

Field Summary

Modifier and TypeField and Description
public static final InvalidObject

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static InvalidObject

Returns:

singleton invalid object.
instance
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
public static final InvalidObject instance

Constructor Detail

InvalidObjectback to summary
private InvalidObject()

Method Detail

instanceback to summary
public static InvalidObject instance()
Returns:InvalidObject

singleton invalid object.