|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.common.BaseDao
org.openstreetmap.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 EntityFeatureMapper<Tdb> |
entityFeatureBuilder
Provides jdbc mapping functionality for this entity feature type. |
| Constructor Summary | |
|---|---|
protected |
EntityFeatureDao(DatabaseContext dbCtx,
EntityFeatureMapper<Tdb> entityFeatureBuilder)
Creates a new instance. |
| Method Summary | |
|---|---|
void |
addAll(java.util.Collection<Tdb> features)
Adds the specified features to the database. |
java.util.Collection<Tdb> |
getAll(long entityId)
Loads all instances of this feature for the specified entity from the database. |
java.util.Collection<Tef> |
getAllRaw(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 org.openstreetmap.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 EntityFeatureMapper<Tdb extends DbFeature<Tef>> entityFeatureBuilder
| Constructor Detail |
|---|
protected EntityFeatureDao(DatabaseContext dbCtx,
EntityFeatureMapper<Tdb> entityFeatureBuilder)
dbCtx - The database context to use for accessing the database.entityFeatureBuilder - Provides entity type specific JDBC support.| Method Detail |
|---|
public java.util.Collection<Tdb> getAll(long entityId)
entityId - The unique identifier of the entity.
public java.util.Collection<Tef> getAllRaw(long entityId)
entityId - The unique identifier of the entity.
public void addAll(java.util.Collection<Tdb> features)
features - The 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 | ||||||||