com.atlassian.jira.entity
Class Update

java.lang.Object
  extended by com.atlassian.jira.entity.Update

public class Update
extends Object

This class is a fluent builder to create an Update SQL statement to be executed by Entity Engine.

You can run this like:

     Update.into("Project").set("counter", counter).whereEqual("key", projectKey).execute(ofBizDelegator);
 
or:
     entityEngine.execute(
         Update.into("Project").set("counter", counter).whereEqual("key", projectKey)
     );
 

Since:
v5.0
See Also:
EntityEngine.execute(Update.WhereContext)

Nested Class Summary
static class Update.IntoContext
           
static class Update.SetContext
           
static class Update.WhereContext
           
 
Constructor Summary
Update()
           
 
Method Summary
static Update.IntoContext into(EntityFactory entityFactory)
           
static Update.IntoContext into(String entityName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Update

public Update()
Method Detail

into

public static Update.IntoContext into(String entityName)

into

public static Update.IntoContext into(EntityFactory entityFactory)


Copyright © 2002-2013 Atlassian. All Rights Reserved.