public class TableChunk extends SqlChunk
If previous chunk is also a table, comma separator will be added between two table definitions, otherwise, regular space will be added if needed to separate from previous chunk.
Tables must be processed first, before all other chunks processing, since other chunks depends on it.
Modifier and Type | Field and Description |
---|---|
protected DbEntityDescriptor |
ded |
protected java.lang.Class |
entity |
protected java.lang.String |
entityName |
protected java.lang.String |
tableAlias |
protected java.lang.String |
tableReference |
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 |
---|
TableChunk(DbEntityManager dbEntityManager,
java.lang.Object entity) |
TableChunk(DbEntityManager dbEntityManager,
java.lang.Object entity,
java.lang.String alias) |
TableChunk(DbEntityManager dbEntityManager,
java.lang.Object entity,
java.lang.String alias,
java.lang.String tableReference) |
TableChunk(DbEntityManager dbEntityManager,
java.lang.String tableRef) |
TableChunk(DbEntityManager dbEntityManager,
java.lang.String entityName,
java.lang.String alias) |
Modifier and Type | Method and Description |
---|---|
void |
init(TemplateData templateData)
Resolves and registers table references.
|
void |
process(java.lang.StringBuilder out)
Process the chunk and appends data to the output.
|
appendMissingSpace, defineParameter, findColumnRef, getNextChunk, getPreviousChunk, insertChunkAfter, isEmptyColumnValue, isPreviousChunkOfSameType, isPreviousChunkOfType, isPreviousMacroChunk, isPreviousRawChunk, lookupName, lookupTableRef, lookupTableRef, lookupType, resolveClass, resolveTable, separateByCommaOrSpace
protected final java.lang.Class entity
protected final java.lang.String entityName
protected final java.lang.String tableAlias
protected final java.lang.String tableReference
protected DbEntityDescriptor ded
public TableChunk(DbEntityManager dbEntityManager, java.lang.Object entity)
public TableChunk(DbEntityManager dbEntityManager, java.lang.Object entity, java.lang.String alias)
public TableChunk(DbEntityManager dbEntityManager, java.lang.Object entity, java.lang.String alias, java.lang.String tableReference)
public TableChunk(DbEntityManager dbEntityManager, java.lang.String entityName, java.lang.String alias)
public TableChunk(DbEntityManager dbEntityManager, java.lang.String tableRef)
public void init(TemplateData templateData)
Copyright © 2003-present Jodd Team