org.nuxeo.ecm.core.storage.sql.jdbc.db
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
An INSERT
statement.
- Author:
- Florent Guillaume
- See Also:
- Serialized Form
Insert
public Insert(Table table)
addColumn
public void addColumn(Column column)
setValues
public void setValues(String insertValues)
getStatement
public String getStatement()
- Gets the statement to insert a row, or copy it if
setValues(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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.