Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.storage.sql.jdbc.db
Class Insert

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.jdbc.db.Insert
All Implemented Interfaces:
java.io.Serializable

public class Insert
extends java.lang.Object
implements java.io.Serializable

An INSERT statement.

Author:
Florent Guillaume
See Also:
Serialized Form

Constructor Summary
Insert(Table table)
           
 
Method Summary
 void addColumn(Column column)
           
 java.lang.String getStatement()
          Gets the statement to insert a row, or copy it if setValues(java.lang.String) has been called.
 void setValues(java.lang.String insertValues)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Insert

public Insert(Table table)
Method Detail

addColumn

public void addColumn(Column column)

setValues

public void setValues(java.lang.String insertValues)

getStatement

public java.lang.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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.