Package com.github.eikecochu.sqlbuilder
Class InsertValue
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.InsertValue
-
public class InsertValue extends java.lang.ObjectThe InsertValue represents a value that is inserted into the database with the INSERT statement.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedInsertValue(Insert insert, java.lang.String column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insertquery(Query query)Use a subquery as value supplier.Insertvalue(java.lang.Object value)Set a value to be insertedInsertvalues(ValueHolder values)Set multiple values to be insertedInsertvalues(java.lang.Object... values)Set multiple values to be inserted
-
-
-
Constructor Detail
-
InsertValue
protected InsertValue(Insert insert, java.lang.String column)
-
-
Method Detail
-
value
public Insert value(java.lang.Object value)
Set a value to be inserted- Parameters:
value- The value- Returns:
- The INSERT statement
-
values
public Insert values(java.lang.Object... values)
Set multiple values to be inserted- Parameters:
values- The values- Returns:
- The INSERT statement
-
values
public Insert values(ValueHolder values)
Set multiple values to be inserted- Parameters:
values- The values- Returns:
- The INSERT statement
-
-