| 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.datastore.sde.AbstractSDERequestHandler
public class AbstractSDERequestHandler
Handles Transaction requests to SQL based datastores.
| Field Summary | |
|---|---|
protected  TableAliasGenerator | 
aliasGenerator
 | 
protected  SDEConnection | 
conn
 | 
protected  SDEDatastore | 
datastore
 | 
protected static String | 
FT_COLUMN
 | 
protected static String | 
FT_PREFIX
 | 
| Constructor Summary | |
|---|---|
AbstractSDERequestHandler(SDEDatastore datastore,
                                                   TableAliasGenerator aliasGenerator,
                                                   SDEConnection conn)
Creates a new instance of AbstractSDERequestHandler from the given parameters. | 
|
| Method Summary | |
|---|---|
protected  Map<String,List<MappingField>> | 
buildColumnsMap(MappedFeatureType featureType,
                               PropertyType[] requestedProperties,
                               boolean withIdFields)
Builds a helper map that contains the column names of the feature type's table as keys.  | 
protected  com.esri.sde.sdk.client.SeQuery | 
buildInitialFIDSelect(MappedFeatureType rootFeatureType,
                                           SDEWhereBuilder whereBuilder)
Builds the initial SELECT statement that retrieves the feature ids that are matched by the given WhereBuilder. | 
protected  Map<MappingField,Integer> | 
buildMappingFieldMap(String[] columns,
                                         Map<String,List<MappingField>> columnsMap)
Builds a lookup map that contains MappingField instances as keys. | 
 FeatureId[] | 
determineAffectedFIDs(MappedFeatureType ft,
                                           Filter filter)
Determines the feature ids that are matched by the given filter.  | 
 FeatureId[] | 
extractFeatureIds(com.esri.sde.sdk.client.SeQuery stmt,
                                   MappedFeatureType ft)
 | 
 TableAliasGenerator | 
getAliasGenerator()
Returns the underlying AbstractSQLDatastore. | 
 SDEConnection | 
getConnection()
Returns the underlying AbstractSQLDatastore. | 
 SDEDatastore | 
getDatastore()
Returns the underlying AbstractSQLDatastore. | 
protected  String[] | 
getFeatureIdColumns(MappedFeatureType featureType)
Appends the alias qualified columns that make up the feature id to the given query.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final String FT_COLUMN
protected static final String FT_PREFIX
protected SDEDatastore datastore
protected TableAliasGenerator aliasGenerator
protected SDEConnection conn
| Constructor Detail | 
|---|
public AbstractSDERequestHandler(SDEDatastore datastore,
                                 TableAliasGenerator aliasGenerator,
                                 SDEConnection conn)
AbstractSDERequestHandler from the given parameters.
datastore - aliasGenerator - conn - | Method Detail | 
|---|
public SDEDatastore getDatastore()
AbstractSQLDatastore.
AbstractSQLDatastore.public SDEConnection getConnection()
AbstractSQLDatastore.
AbstractSQLDatastore.public TableAliasGenerator getAliasGenerator()
AbstractSQLDatastore.
AbstractSQLDatastore.
public FeatureId[] determineAffectedFIDs(MappedFeatureType ft,
                                         Filter filter)
                                  throws DatastoreException
ft - filter - 
DatastoreException
protected com.esri.sde.sdk.client.SeQuery buildInitialFIDSelect(MappedFeatureType rootFeatureType,
                                                                SDEWhereBuilder whereBuilder)
WhereBuilder.
 The statement is structured like this:
SELECTFROMWHERE
rootFeatureType - whereBuilder - 
protected String[] getFeatureIdColumns(MappedFeatureType featureType)
featureType - 
public FeatureId[] extractFeatureIds(com.esri.sde.sdk.client.SeQuery stmt,
                                     MappedFeatureType ft)
                              throws Exception
stmt - ft - 
Exception
protected Map<String,List<MappingField>> buildColumnsMap(MappedFeatureType featureType,
                                                         PropertyType[] requestedProperties,
                                                         boolean withIdFields)
List containing the MappingField
 instances that refer to this column.
 The following MappingField instances of the feature type's annotation are used to build the map:
featureType - feature type for which the map is builtrequestedProperties - requested propertieswithIdFields - 
protected Map<MappingField,Integer> buildMappingFieldMap(String[] columns,
                                                         Map<String,List<MappingField>> columnsMap)
MappingField instances as keys. Each
 MappingField is mapped to the index position (an Integer) of
 the MappingField's field name in the given column array.
columns - columnsMap - 
  | 
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
					For more information visit: http://deegree.sourceforge.net