API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.persistance.builders. JOTUpdateQuery View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
 Object
      JOTQueryBase
          JOTUpdateQuery
Implements
Subclasses
Description
public class JOTUpdateQuery
Query builder for update type queries Use through JOQueryBuilder !! Note: does not delete anyhting until you call executeUpdate() !!
See also:   
Constructors
protected JOTUpdateQuery (JOTTransaction transaction)
Methods
Hide/Show inherited methods
public JOTUpdateQuery appendToSQL (String append)
  append generic SQL to the query, use with precautions !
public void executeUpdate () throws Exception
  actually runs the update
public JOTUpdateQuery orWhere (JOTSQLCondition cond)
public JOTUpdateQuery orWhere (String where)
protected void setModelClass (Class modelClass) [Inherited From JOTQueryBase]
public String showFlags () [Inherited From JOTQueryBase]
  Show special statement flags (if any)
public String showSQL () [Inherited From JOTQueryBase]
  return sql generated by query.
public JOTUpdateQuery update (String fields, Object values)
  set the fields and values to be updated.
public JOTUpdateQuery where (JOTSQLCondition cond)
public JOTUpdateQuery where (String where)
  It's much safer to use where(JOTSQLCondition cond)
public JOTUpdateQuery withParams (String pms)
  Pass the (prepared statement )parameters (ie: values)
Fields
Hide/Show inherited fields
protected JOTStatementFlags flags [Inherited From JOTQueryBase]
protected Class modelClass [Inherited From JOTQueryBase]
protected int nbWhere [Inherited From JOTQueryBase]
protected Vector params [Inherited From JOTQueryBase]
protected StringBuffer sql [Inherited From JOTQueryBase]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar