|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.jdbc.depot.clause.QueryClause
com.samskivert.jdbc.depot.clause.UpdateClause<T>
public class UpdateClause<T extends PersistentRecord>
Builds actual SQL given a main persistent type and some QueryClause objects.
| Field Summary | |
|---|---|
protected String[] |
_fields
The persistent fields to update. |
protected Class<? extends PersistentRecord> |
_pClass
The class we're updating. |
protected Object |
_pojo
The object from which to fetch values, or null. |
protected SQLExpression[] |
_values
The field values, or null. |
protected WhereClause |
_where
The where clause. |
| Constructor Summary | |
|---|---|
UpdateClause(Class<? extends PersistentRecord> pClass,
WhereClause where,
String[] fields,
SQLExpression[] values)
|
|
UpdateClause(Class<? extends PersistentRecord> pClass,
WhereClause where,
String[] fields,
T pojo)
|
|
| Method Summary | |
|---|---|
void |
accept(ExpressionVisitor builder)
Most uses of this class have been implemented with a visitor pattern. |
void |
addClasses(Collection<Class<? extends PersistentRecord>> classSet)
Adds all persistent classes that are brought into the SQL context by this clause: FROM clauses, JOINs, UPDATEs, anything that could create a new table abbreviation. |
String[] |
getFields()
|
Class<? extends PersistentRecord> |
getPersistentClass()
|
Object |
getPojo()
|
SQLExpression[] |
getValues()
|
WhereClause |
getWhereClause()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Class<? extends PersistentRecord> _pClass
protected WhereClause _where
protected String[] _fields
protected SQLExpression[] _values
protected Object _pojo
| Constructor Detail |
|---|
public UpdateClause(Class<? extends PersistentRecord> pClass,
WhereClause where,
String[] fields,
T pojo)
public UpdateClause(Class<? extends PersistentRecord> pClass,
WhereClause where,
String[] fields,
SQLExpression[] values)
| Method Detail |
|---|
public WhereClause getWhereClause()
public String[] getFields()
public SQLExpression[] getValues()
public Object getPojo()
public Class<? extends PersistentRecord> getPersistentClass()
public void addClasses(Collection<Class<? extends PersistentRecord>> classSet)
SQLExpression
public void accept(ExpressionVisitor builder)
throws Exception
SQLExpressionExpressionVisitor and call this method with it.
ExceptionSQLBuilder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||