Package com.github.eikecochu.sqlbuilder
Class UpdateValue
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.UpdateValue
-
public class UpdateValue extends java.lang.ObjectThe UpdateValue class that represents a database value to be used with an UPDATE statement.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUpdateValue(Update update, java.lang.String column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Updateexpr(java.lang.String expr)Use an expression to update the valueUpdatevalue(java.lang.Object value)Set the updated value
-
-
-
Constructor Detail
-
UpdateValue
protected UpdateValue(Update update, java.lang.String column)
-
-
Method Detail
-
value
public Update value(java.lang.Object value)
Set the updated value- Parameters:
value- The updated value- Returns:
- The UPDATE statement
-
expr
public Update expr(java.lang.String expr)
Use an expression to update the value- Parameters:
expr- The update expression- Returns:
- The UPDATE statement
-
-