org.geotools.arcsde.data
Class FIDReader

java.lang.Object
  extended by org.geotools.arcsde.data.FIDReader
Direct Known Subclasses:
FIDReader.SdeManagedFidReader, FIDReader.ShapeFidReader, FIDReader.UserManagedFidReader

public abstract class FIDReader
extends java.lang.Object

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

The supported strategies are:

Version:
$Id: FIDReader.java 33474 2009-07-03 13:39:00Z groldan $
Author:
Gabriel Roldan, Axios Engineering

Nested Class Summary
static class FIDReader.SdeManagedFidReader
           
static class FIDReader.ShapeFidReader
           
static class FIDReader.UserManagedFidReader
           
 
Field Summary
protected  java.lang.String layerName
           
static FIDReader NULL_READER
           
 
Method Summary
 int getColumnIndex()
           
 java.lang.String getFidColumn()
           
static FIDReader getFidReader(ISession session, SeTable table, SeLayer layer, SeRegistration reg)
          Returns a FID strategy appropriate for the given SeLayer
 java.lang.String[] getPropertiesToFetch(org.opengis.feature.simple.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layerName

protected java.lang.String layerName

NULL_READER

public static final FIDReader NULL_READER
Method Detail

getFidColumn

public java.lang.String getFidColumn()

setColumnIndex

public void setColumnIndex(int fidIndex)

getColumnIndex

public int getColumnIndex()

readFid

public long readFid(SdeRow row)
             throws java.io.IOException
Throws:
java.io.IOException

getPropertiesToFetch

public java.lang.String[] getPropertiesToFetch(org.opengis.feature.simple.SimpleFeatureType schema)
                                        throws java.io.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:
java.io.IOException - if an arcsde exception is thrown somehow.

getFidReader

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

Parameters:
session -
tableName -
Returns:
Throws:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.