jodd.db.orm.sqlgen.chunks
Class InsertChunk
java.lang.Object
jodd.db.orm.sqlgen.chunks.SqlChunk
jodd.db.orm.sqlgen.chunks.InsertChunk
- All Implemented Interfaces:
- java.lang.Cloneable
public class InsertChunk
- extends SqlChunk
Renders complete INSERT statement. This chunk is a bit different than others since it renders a complete SQL
query for inserting.
|
Field Summary |
protected java.lang.Object |
data
|
protected java.lang.String |
entityName
|
protected java.lang.Class |
entityType
|
| Fields inherited from class jodd.db.orm.sqlgen.chunks.SqlChunk |
CHUNK_INSERT, CHUNK_MATCH, CHUNK_RAW, CHUNK_REFERENCE, CHUNK_SELECT_COLUMNS, CHUNK_TABLE, CHUNK_UPDATE, CHUNK_VALUE, chunkType, COLS_ALL, COLS_NA, COLS_ONLY_EXISTING, COLS_ONLY_IDS, nextChunk, previousChunk, templateData |
|
Constructor Summary |
|
InsertChunk(java.lang.Class entityType,
java.lang.Object data)
|
protected |
InsertChunk(java.lang.String entityName,
java.lang.Class entityType,
java.lang.Object data)
|
|
InsertChunk(java.lang.String entityName,
java.lang.Object data)
|
|
Method Summary |
SqlChunk |
clone()
Clones all parsed chunk data to an instance that is ready for processing. |
void |
process(java.lang.StringBuilder out)
Process the chunk and appends data to the output. |
| Methods inherited from class jodd.db.orm.sqlgen.chunks.SqlChunk |
appendMissingSpace, defineParameter, getNextChunk, getPreviousChunk, init, insertChunkAfter, isPreviousChunkOfSameType, isPreviousChunkOfType, isPreviousMacroChunk, isPreviousRawChunk, lookupName, lookupTableRef, lookupType, resolveClass, resolveTable, separateByCommaOrSpace |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityName
protected final java.lang.String entityName
entityType
protected final java.lang.Class entityType
data
protected final java.lang.Object data
InsertChunk
public InsertChunk(java.lang.String entityName,
java.lang.Object data)
InsertChunk
public InsertChunk(java.lang.Class entityType,
java.lang.Object data)
InsertChunk
protected InsertChunk(java.lang.String entityName,
java.lang.Class entityType,
java.lang.Object data)
process
public void process(java.lang.StringBuilder out)
- Description copied from class:
SqlChunk
- Process the chunk and appends data to the output.
- Specified by:
process in class SqlChunk
clone
public SqlChunk clone()
- Description copied from class:
SqlChunk
- Clones all parsed chunk data to an instance that is ready for processing.
- Specified by:
clone in class SqlChunk
Copyright © 2003-2010 Jodd Team