org.geotools.arcsde.data
Class FIDReader
java.lang.Object
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:
- 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
- Version:
- $Id: FIDReader.java 33474 2009-07-03 13:39:00Z groldan $
- Author:
- Gabriel Roldan, Axios Engineering
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
layerName
protected java.lang.String layerName
NULL_READER
public static final FIDReader NULL_READER
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.