jodd.db.orm.sqlgen.chunks
Class ReferenceJoinChunk

java.lang.Object
  extended by jodd.db.orm.sqlgen.chunks.SqlChunk
      extended by jodd.db.orm.sqlgen.chunks.ReferenceJoinChunk

public class ReferenceJoinChunk
extends SqlChunk

Creates join between two references, i.e. between source and destination table. Column reference may be specified either completely (tableRef.propertyName) or just with tableName, indicating that primary or foreign key should be used. Foreign keys are named using naming convention.


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
ReferenceJoinChunk(java.lang.String source, java.lang.String destination)
           
 
Method Summary
 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

ReferenceJoinChunk

public ReferenceJoinChunk(java.lang.String source,
                          java.lang.String destination)
Method Detail

process

public void process()
Description copied from class: SqlChunk
Process the chunk and prepares the output.

Specified by:
process in class SqlChunk


Copyright ©2008 Jodd Team