public class ReferenceChunk extends SqlChunk
tableRef.propertyName
.
The propertyName
may be '+' (e.g. tableRef.+
), indicating the identity columns.
If property name is omitted (e.g. tableRef
), only table name will be rendered.
If table reference is omitted (e.g. .propertyName
), only property i.e. column name
will be rendered.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
columnRef |
protected boolean |
onlyId |
protected java.lang.String |
tableRef |
CHUNK_INSERT, CHUNK_MATCH, CHUNK_RAW, CHUNK_REFERENCE, CHUNK_SELECT_COLUMNS, CHUNK_TABLE, CHUNK_UPDATE, CHUNK_VALUE, COLS_ALL, COLS_ALL_BUT_ID, COLS_NA, COLS_NA_MULTI, COLS_ONLY_EXISTING, COLS_ONLY_IDS, nextChunk, previousChunk, templateData
Constructor and Description |
---|
ReferenceChunk(DbEntityManager dbEntityManager,
java.lang.String reference) |
ReferenceChunk(DbEntityManager dbEntityManager,
java.lang.String tableRef,
java.lang.String columnRef) |
ReferenceChunk(DbEntityManager dbEntityManager,
java.lang.String tableRef,
java.lang.String columnRef,
boolean onlyId) |
Modifier and Type | Method and Description |
---|---|
void |
process(java.lang.StringBuilder out)
Process the chunk and appends data to the output.
|
appendMissingSpace, defineParameter, findColumnRef, getNextChunk, getPreviousChunk, init, insertChunkAfter, isEmptyColumnValue, isPreviousChunkOfSameType, isPreviousChunkOfType, isPreviousMacroChunk, isPreviousRawChunk, lookupName, lookupTableRef, lookupTableRef, lookupType, resolveClass, resolveTable, separateByCommaOrSpace
protected final java.lang.String tableRef
protected final java.lang.String columnRef
protected final boolean onlyId
public ReferenceChunk(DbEntityManager dbEntityManager, java.lang.String tableRef, java.lang.String columnRef)
public ReferenceChunk(DbEntityManager dbEntityManager, java.lang.String tableRef, java.lang.String columnRef, boolean onlyId)
public ReferenceChunk(DbEntityManager dbEntityManager, java.lang.String reference)
Copyright © 2003-present Jodd Team