|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.db.orm.sqlgen.chunks.SqlChunk
jodd.db.orm.sqlgen.chunks.ConditionChunk
public class ConditionChunk
Renders condition query based on values in provided object. The best way to describe condition is the following
expression: tableRef = object: every value of object property will be part of the condition query string.
| Field Summary |
|---|
| Fields inherited from class jodd.db.orm.sqlgen.chunks.SqlChunk |
|---|
COLS_ALL, COLS_NA, COLS_ONLY_EXISTING, COLS_ONLY_IDS, isColumnChunk, isJoinOnChunk, isTableChunk, nextChunk, previousChunk, query, sqlBuilder |
| Constructor Summary | |
|---|---|
ConditionChunk(java.lang.String tableRef,
java.lang.Object data,
int includeColumns)
|
|
ConditionChunk(java.lang.String tableRef,
java.lang.Object data,
int includeColumns,
boolean safe)
|
|
| Method Summary | |
|---|---|
boolean |
isEmpty()
Returns true if condition is empty. |
void |
process()
Process the chunk and prepares the output. |
| Methods inherited from class jodd.db.orm.sqlgen.chunks.SqlChunk |
|---|
defineParameter, getNextChunk, getPreviousChunk, init, insertChunkAfter, isColumnChunk, isJoinOnChunk, isTableChunk, lookupName, lookupTableRef, lookupType, render, resolveTableRef |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConditionChunk(java.lang.String tableRef,
java.lang.Object data,
int includeColumns)
public ConditionChunk(java.lang.String tableRef,
java.lang.Object data,
int includeColumns,
boolean safe)
| Method Detail |
|---|
public void process()
SqlChunk
process in class SqlChunkpublic boolean isEmpty()
true if condition is empty.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||