jodd.db.orm
Class DbOrmJoin

java.lang.Object
  extended by jodd.db.orm.DbOrmJoin

public class DbOrmJoin
extends java.lang.Object

Helps working with joins between mapped entities of one row in result set.


Nested Class Summary
protected static class DbOrmJoin.Join
          Join definition.
 class DbOrmJoin.MappedEntity
          Single mapped entity.
 
Field Summary
protected  java.util.List<DbOrmJoin.Join> joins
           
protected  java.util.List<java.lang.Class> mappedEntities
           
protected  jodd.util.collection.IntArrayList rootEntityNdxs
           
 
Constructor Summary
DbOrmJoin()
           
 
Method Summary
 DbOrmJoin.MappedEntity map(java.lang.Class clazz)
          Defines root entity, first in the join chain.
protected  java.lang.Object[] packAll(DbOrmQuery query)
           
protected  void packCollectionAll(DbOrmQuery query, java.util.Collection<java.lang.Object[]> result)
           
protected
<T> void
packCollectionOne(DbOrmQuery query, java.util.Collection<T> result)
           
protected  java.lang.Object packOne(DbOrmQuery query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

joins

protected java.util.List<DbOrmJoin.Join> joins

mappedEntities

protected java.util.List<java.lang.Class> mappedEntities

rootEntityNdxs

protected jodd.util.collection.IntArrayList rootEntityNdxs
Constructor Detail

DbOrmJoin

public DbOrmJoin()
Method Detail

map

public DbOrmJoin.MappedEntity map(java.lang.Class clazz)
Defines root entity, first in the join chain.


packCollectionOne

protected <T> void packCollectionOne(DbOrmQuery query,
                                     java.util.Collection<T> result)

packOne

protected java.lang.Object packOne(DbOrmQuery query)

packCollectionAll

protected void packCollectionAll(DbOrmQuery query,
                                 java.util.Collection<java.lang.Object[]> result)

packAll

protected java.lang.Object[] packAll(DbOrmQuery query)


Copyright ©2008 Jodd Team