public class InvalidObject
extends java.lang.Object
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
Modifier and Type | Field and Description |
---|---|
static InvalidObject |
instance |
Modifier and Type | Method and Description |
---|---|
static InvalidObject |
instance() |
public static final InvalidObject instance
public static InvalidObject instance()
EclipseLink 2.6.3, "build v20160428-59c81c5" API Reference