FileDocCategorySizeDatePackage
InvalidObject.javaAPI DocGlassfish v2 API3678Tue May 22 16:54:34 BST 2007oracle.toplink.essentials.internal.helper

InvalidObject

public class InvalidObject extends Object
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
since
release specific (what release of product did this appear in)

Fields Summary
public static final InvalidObject
instance
Constructors Summary
private InvalidObject()


      
    
Methods Summary
public static oracle.toplink.essentials.internal.helper.InvalidObjectinstance()

return
singleton invalid object.

        return instance;