Class Insert
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.sql.jdbc.db.Insert
-
- All Implemented Interfaces:
Serializable
public class Insert extends Object implements Serializable
AnINSERT
statement.- Author:
- Florent Guillaume
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(Column column)
void
addIdentityColumn(Column idColumn)
String
getStatement()
Gets the statement to insert a row, or copy it ifsetValues(java.lang.String)
has been called.void
setValues(String insertValues)
-
-
-
Field Detail
-
dialect
protected final Dialect dialect
-
-
Constructor Detail
-
Insert
public Insert(Table table)
-
-
Method Detail
-
addColumn
public void addColumn(Column column)
-
addIdentityColumn
public void addIdentityColumn(Column idColumn)
-
setValues
public void setValues(String insertValues)
-
getStatement
public String getStatement()
Gets the statement to insert a row, or copy it ifsetValues(java.lang.String)
has been called.Example:
INSERT INTO foo (a, b, c) SELECT ?, b, c FROM foo WHERE id = ?
- Returns:
- the SQL insert or copy statement
-
-