org.geotools.jdbc
Class JDBCFeatureReader.ResultSetFeature

Object
  extended by JDBCFeatureReader.ResultSetFeature
All Implemented Interfaces:
Attribute, ComplexAttribute, Feature, Property, SimpleFeature
Enclosing class:
JDBCFeatureReader

protected class JDBCFeatureReader.ResultSetFeature
extends Object
implements SimpleFeature

Feature wrapper around a result set.


Method Summary
 void close()
           
 Object getAttribute(int index)
           
 Object getAttribute(Name name)
           
 Object getAttribute(String name)
           
 int getAttributeCount()
           
 List<Object> getAttributes()
           
 BoundingBox getBounds()
           
 Object getDefaultGeometry()
           
 GeometryAttribute getDefaultGeometryProperty()
           
 AttributeDescriptor getDescriptor()
           
 SimpleFeatureType getFeatureType()
           
 String getID()
           
 FeatureId getIdentifier()
           
 Name getName()
           
 Collection<Property> getProperties()
           
 Collection<Property> getProperties(Name name)
           
 Collection<Property> getProperties(String name)
           
 Property getProperty(Name name)
           
 Property getProperty(String name)
           
 SimpleFeatureType getType()
           
 Map<Object,Object> getUserData()
           
 Collection<? extends Property> getValue()
           
 void init()
           
 void init(String fid)
           
 boolean isDirrty(String name)
           
 boolean isDirty(int index)
           
 boolean isNillable()
           
 void setAttribute(int index, Object value)
           
 void setAttribute(Name name, Object value)
           
 void setAttribute(String name, Object value)
           
 void setAttributes(List<Object> values)
           
 void setAttributes(Object[] object)
           
 void setDefaultGeometry(Object defaultGeometry)
           
 void setDefaultGeometryProperty(GeometryAttribute defaultGeometry)
           
 void setID(String id)
           
 void setValue(Collection<Property> value)
           
 void setValue(Object value)
           
 void validate()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init(String fid)

init

public void init()
          throws SQLException,
                 IOException
Throws:
SQLException
IOException

getFeatureType

public SimpleFeatureType getFeatureType()
Specified by:
getFeatureType in interface SimpleFeature

getType

public SimpleFeatureType getType()
Specified by:
getType in interface Attribute
Specified by:
getType in interface ComplexAttribute
Specified by:
getType in interface Feature
Specified by:
getType in interface Property
Specified by:
getType in interface SimpleFeature

getIdentifier

public FeatureId getIdentifier()
Specified by:
getIdentifier in interface Attribute
Specified by:
getIdentifier in interface Feature

getID

public String getID()
Specified by:
getID in interface SimpleFeature

setID

public void setID(String id)

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in interface SimpleFeature

getAttribute

public Object getAttribute(Name name)
Specified by:
getAttribute in interface SimpleFeature

getAttribute

public Object getAttribute(int index)
                    throws IndexOutOfBoundsException
Specified by:
getAttribute in interface SimpleFeature
Throws:
IndexOutOfBoundsException

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in interface SimpleFeature

setAttribute

public void setAttribute(Name name,
                         Object value)
Specified by:
setAttribute in interface SimpleFeature

setAttribute

public void setAttribute(int index,
                         Object value)
                  throws IndexOutOfBoundsException
Specified by:
setAttribute in interface SimpleFeature
Throws:
IndexOutOfBoundsException

setAttributes

public void setAttributes(List<Object> values)
Specified by:
setAttributes in interface SimpleFeature

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in interface SimpleFeature

isDirty

public boolean isDirty(int index)

isDirrty

public boolean isDirrty(String name)

close

public void close()

getAttributes

public List<Object> getAttributes()
Specified by:
getAttributes in interface SimpleFeature

getDefaultGeometry

public Object getDefaultGeometry()
Specified by:
getDefaultGeometry in interface SimpleFeature

setAttributes

public void setAttributes(Object[] object)
Specified by:
setAttributes in interface SimpleFeature

setDefaultGeometry

public void setDefaultGeometry(Object defaultGeometry)
Specified by:
setDefaultGeometry in interface SimpleFeature

getBounds

public BoundingBox getBounds()
Specified by:
getBounds in interface Feature

getDefaultGeometryProperty

public GeometryAttribute getDefaultGeometryProperty()
Specified by:
getDefaultGeometryProperty in interface Feature

setDefaultGeometryProperty

public void setDefaultGeometryProperty(GeometryAttribute defaultGeometry)
Specified by:
setDefaultGeometryProperty in interface Feature

getProperties

public Collection<Property> getProperties()
Specified by:
getProperties in interface ComplexAttribute

getProperties

public Collection<Property> getProperties(Name name)
Specified by:
getProperties in interface ComplexAttribute

getProperties

public Collection<Property> getProperties(String name)
Specified by:
getProperties in interface ComplexAttribute

getProperty

public Property getProperty(Name name)
Specified by:
getProperty in interface ComplexAttribute

getProperty

public Property getProperty(String name)
Specified by:
getProperty in interface ComplexAttribute

getValue

public Collection<? extends Property> getValue()
Specified by:
getValue in interface ComplexAttribute
Specified by:
getValue in interface Property

setValue

public void setValue(Collection<Property> value)
Specified by:
setValue in interface ComplexAttribute

getDescriptor

public AttributeDescriptor getDescriptor()
Specified by:
getDescriptor in interface Attribute
Specified by:
getDescriptor in interface Property

getName

public Name getName()
Specified by:
getName in interface Property

getUserData

public Map<Object,Object> getUserData()
Specified by:
getUserData in interface Property

isNillable

public boolean isNillable()
Specified by:
isNillable in interface Property

setValue

public void setValue(Object value)
Specified by:
setValue in interface Property

validate

public void validate()
Specified by:
validate in interface Attribute
Specified by:
validate in interface ComplexAttribute


Copyright © 1996-2009 Geotools. All Rights Reserved.