FileDocCategorySizeDatePackage
UpdateObjectQuery.javaAPI DocGlassfish v2 API3619Tue May 22 16:54:50 BST 2007oracle.toplink.essentials.queryframework

UpdateObjectQuery

public class UpdateObjectQuery extends WriteObjectQuery

Purpose: Used for updating existing objects into the database. This class does not have much behavior. It inherits most of it's behavior from WriteObjectQuery

author
Yvon Lavoie
since
TOPLink/Java 1.0

Fields Summary
Constructors Summary
public UpdateObjectQuery()
PUBLIC: Default constructor.

        super();
    
public UpdateObjectQuery(Object objectToUpdate)
PUBLIC: Create an update query with the object being updated.

        this();
        setObject(objectToUpdate);
    
public UpdateObjectQuery(Call call)
PUBLIC: Create an update query with the custom call.

        this();
        setCall(call);
    
Methods Summary
public voidexecuteCommit()
INTERNAL: Perform an update.

        getQueryMechanism().updateObjectForWrite();
    
public voidexecuteCommitWithChangeSet()
INTERNAL: Perform an update.

        getQueryMechanism().updateObjectForWriteWithChangeSet();
    
public booleanisUpdateObjectQuery()
PUBLIC: Return if this is an update object query.

        return true;
    
protected voidprepare()
INTERNAL: Prepare the receiver for execution in a session.

        super.prepare();

        getQueryMechanism().prepareUpdateObject();