org.geotools.arcsde.data
Class FIDReader

Object
  extended by FIDReader
Direct Known Subclasses:
FIDReader.SdeManagedFidReader, FIDReader.ShapeFidReader, FIDReader.UserManagedFidReader

public abstract class FIDReader
extends Object

Strategy object used to manage the different ways an ArcSDE server handles row identity.

The supported strategies are:

Author:
Gabriel Roldan, Axios Engineering

Nested Class Summary
static class FIDReader.SdeManagedFidReader
           
static class FIDReader.ShapeFidReader
           
static class FIDReader.UserManagedFidReader
           
 
Field Summary
protected  String layerName
           
static FIDReader NULL_READER
           
 
Method Summary
 int getColumnIndex()
           
 String getFidColumn()
           
static FIDReader getFidReader(ISession session, SeTable table, SeLayer layer, SeRegistration reg)
          Returns a FID strategy appropriate for the given SeLayer
 String[] getPropertiesToFetch(SimpleFeatureType schema)
          Returns the attribute names of the FeatureType passed to the constructor.
 long readFid(SdeRow row)
           
 void setColumnIndex(int fidIndex)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layerName

protected String layerName

NULL_READER

public static final FIDReader NULL_READER
Method Detail

getFidColumn

public String getFidColumn()

setColumnIndex

public void setColumnIndex(int fidIndex)

getColumnIndex

public int getColumnIndex()

readFid

public long readFid(SdeRow row)
             throws IOException
Throws:
IOException

getPropertiesToFetch

public String[] getPropertiesToFetch(SimpleFeatureType schema)
                              throws IOException
Returns the attribute names of the FeatureType passed to the constructor.

Parameters:
the - feature type containing the properties the client code is interested in. May well be a subset of the full set of attributes in the SeLayer
Returns:
the list of property names to actually fetch for a given feature type, taking into account the ones that possibly need to be fetched to generate the feature id, even if they're not part of the schema.
Throws:
IOException - if an arcsde exception is thrown somehow.

getFidReader

public static FIDReader getFidReader(ISession session,
                                     SeTable table,
                                     SeLayer layer,
                                     SeRegistration reg)
                              throws IOException
Returns a FID strategy appropriate for the given SeLayer

Parameters:
session -
tableName -
Returns:
Throws:
IOException


Copyright © 1996-2014 Geotools. All Rights Reserved.