org.geotools.arcsde.data
Class FIDReader
Object
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:
- SDE managed mode: a column is assigned by the sde engine to be the feature id (it uses to be
called OBJECTID)
- User managed: a user specified row is used as the fid column.
- Shape fid: if none of the above, the fid happens to be the identifier of the geometry column
- Author:
- Gabriel Roldan, Axios Engineering
- Module:
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
layerName
protected String layerName
NULL_READER
public static final FIDReader NULL_READER
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-2010 Geotools. All Rights Reserved.