|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bretth.osmosis.core.pgsql.common.BaseDao
com.bretth.osmosis.core.pgsql.v0_6.impl.EntityFeatureDao<Tef,Tdb>
Tef
- The entity feature type to be supported.Tdb
- The entity feature database wrapper type to be used.public class EntityFeatureDao<Tef extends Storeable,Tdb extends DbFeature<Tef>>
Provides functionality common to all entity feature daos.
Field Summary | |
---|---|
protected EntityFeatureBuilder<Tdb> |
entityFeatureBuilder
Provides jdbc mapping functionality for this entity feature type. |
Constructor Summary | |
---|---|
protected |
EntityFeatureDao(DatabaseContext dbCtx,
EntityFeatureBuilder<Tdb> entityFeatureBuilder)
Creates a new instance. |
Method Summary | |
---|---|
void |
addList(java.util.List<Tdb> featureList)
Adds the specified feature list to the database. |
java.util.List<Tdb> |
getList(long entityId)
Loads all instances of this feature for the specified entity from the database. |
java.util.List<Tef> |
getRawList(long entityId)
Loads all instances of this feature for the specified entity from the database. |
ReleasableIterator<Tdb> |
iterate()
Returns an iterator providing access to all entity features of this type in the database. |
void |
removeList(long entityId)
Removes the specified feature list from the database. |
Methods inherited from class com.bretth.osmosis.core.pgsql.common.BaseDao |
---|
getDatabaseContext, prepareStatement, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EntityFeatureBuilder<Tdb extends DbFeature<Tef>> entityFeatureBuilder
Constructor Detail |
---|
protected EntityFeatureDao(DatabaseContext dbCtx, EntityFeatureBuilder<Tdb> entityFeatureBuilder)
dbCtx
- The database context to use for accessing the database.entityFeatureBuilder
- Provides entity type specific JDBC support.Method Detail |
---|
public java.util.List<Tdb> getList(long entityId)
entityId
- The unique identifier of the entity.
public java.util.List<Tef> getRawList(long entityId)
entityId
- The unique identifier of the entity.
public void addList(java.util.List<Tdb> featureList)
featureList
- The list of features to add.public void removeList(long entityId)
entityId
- The id of the entity to remove.public ReleasableIterator<Tdb> iterate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |