|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.pgsql.v0_6.impl.EntityFeatureMapper<T>
T
- The type of feature to be built.public abstract class EntityFeatureMapper<T>
Provides functionality common to all entity feature mapper implementations.
Constructor Summary | |
---|---|
EntityFeatureMapper()
|
Method Summary | |
---|---|
abstract T |
buildEntity(java.sql.ResultSet resultSet)
Creates a new entity based upon the current row in the result set. |
abstract java.lang.String |
getEntityName()
Returns the name of the entity feature. |
abstract java.lang.String |
getParentEntityName()
Returns the name of the entity features entity type. |
java.lang.String |
getSqlDefaultOrderBy()
Provides a default SQL ORDER BY clause suitable for this entity feature. |
abstract java.lang.String |
getSqlDelete(boolean filterByEntityId)
The SQL DELETE statement for deleting entity features. |
abstract java.lang.String |
getSqlInsert(int rowCount)
The SQL INSERT statement for adding features. |
abstract java.lang.String |
getSqlSelect(boolean filterByEntityId,
boolean orderBy)
The SQL SELECT statement for retrieving entity feature details. |
abstract int |
populateEntityParameters(java.sql.PreparedStatement statement,
int initialIndex,
T entityFeature)
Sets entity values as bind variable parameters to an entity insert query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityFeatureMapper()
Method Detail |
---|
public abstract java.lang.String getParentEntityName()
public abstract java.lang.String getEntityName()
public java.lang.String getSqlDefaultOrderBy()
public abstract java.lang.String getSqlSelect(boolean filterByEntityId, boolean orderBy)
filterByEntityId
- If true, a WHERE clause will be added filtering by the entity
id column.orderBy
- If true, a default ORDER BY clause will be added ordering by
the entity id column at a minimum and possibly other fields
depending on implementation.
public abstract java.lang.String getSqlInsert(int rowCount)
rowCount
- The number of rows to insert in a single statement.
public abstract java.lang.String getSqlDelete(boolean filterByEntityId)
filterByEntityId
- If true, a WHERE clause will be added filtering by the entity
id column.
public abstract T buildEntity(java.sql.ResultSet resultSet)
resultSet
- The result set to read from.
public abstract int populateEntityParameters(java.sql.PreparedStatement statement, int initialIndex, T entityFeature)
statement
- The prepared statement to add the values to.initialIndex
- The offset index of the first variable to set.entityFeature
- The entity containing the data to be inserted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |