org.geotools.jdbc
Class JDBCFeatureReader.ResultSetFeature

java.lang.Object
  extended by org.geotools.jdbc.JDBCFeatureReader.ResultSetFeature
All Implemented Interfaces:
org.opengis.feature.Attribute, org.opengis.feature.ComplexAttribute, org.opengis.feature.Feature, org.opengis.feature.Property, org.opengis.feature.simple.SimpleFeature
Enclosing class:
JDBCFeatureReader

protected class JDBCFeatureReader.ResultSetFeature
extends java.lang.Object
implements org.opengis.feature.simple.SimpleFeature

Feature wrapper around a result set.


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

Method Detail

init

public void init(java.lang.String fid)

init

public void init()
          throws java.sql.SQLException,
                 java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

getFeatureType

public org.opengis.feature.simple.SimpleFeatureType getFeatureType()
Specified by:
getFeatureType in interface org.opengis.feature.simple.SimpleFeature

getType

public org.opengis.feature.simple.SimpleFeatureType getType()
Specified by:
getType in interface org.opengis.feature.Attribute
Specified by:
getType in interface org.opengis.feature.ComplexAttribute
Specified by:
getType in interface org.opengis.feature.Feature
Specified by:
getType in interface org.opengis.feature.Property
Specified by:
getType in interface org.opengis.feature.simple.SimpleFeature

getIdentifier

public org.opengis.filter.identity.FeatureId getIdentifier()
Specified by:
getIdentifier in interface org.opengis.feature.Attribute
Specified by:
getIdentifier in interface org.opengis.feature.Feature

getID

public java.lang.String getID()
Specified by:
getID in interface org.opengis.feature.simple.SimpleFeature

setID

public void setID(java.lang.String id)

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in interface org.opengis.feature.simple.SimpleFeature

getAttribute

public java.lang.Object getAttribute(org.opengis.feature.type.Name name)
Specified by:
getAttribute in interface org.opengis.feature.simple.SimpleFeature

getAttribute

public java.lang.Object getAttribute(int index)
                              throws java.lang.IndexOutOfBoundsException
Specified by:
getAttribute in interface org.opengis.feature.simple.SimpleFeature
Throws:
java.lang.IndexOutOfBoundsException

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Specified by:
setAttribute in interface org.opengis.feature.simple.SimpleFeature

setAttribute

public void setAttribute(org.opengis.feature.type.Name name,
                         java.lang.Object value)
Specified by:
setAttribute in interface org.opengis.feature.simple.SimpleFeature

setAttribute

public void setAttribute(int index,
                         java.lang.Object value)
                  throws java.lang.IndexOutOfBoundsException
Specified by:
setAttribute in interface org.opengis.feature.simple.SimpleFeature
Throws:
java.lang.IndexOutOfBoundsException

setAttributes

public void setAttributes(java.util.List<java.lang.Object> values)
Specified by:
setAttributes in interface org.opengis.feature.simple.SimpleFeature

getAttributeCount

public int getAttributeCount()
Specified by:
getAttributeCount in interface org.opengis.feature.simple.SimpleFeature

isDirty

public boolean isDirty(int index)

isDirrty

public boolean isDirrty(java.lang.String name)

close

public void close()

getAttributes

public java.util.List<java.lang.Object> getAttributes()
Specified by:
getAttributes in interface org.opengis.feature.simple.SimpleFeature

getDefaultGeometry

public java.lang.Object getDefaultGeometry()
Specified by:
getDefaultGeometry in interface org.opengis.feature.simple.SimpleFeature

setAttributes

public void setAttributes(java.lang.Object[] object)
Specified by:
setAttributes in interface org.opengis.feature.simple.SimpleFeature

setDefaultGeometry

public void setDefaultGeometry(java.lang.Object defaultGeometry)
Specified by:
setDefaultGeometry in interface org.opengis.feature.simple.SimpleFeature

getBounds

public org.opengis.geometry.BoundingBox getBounds()
Specified by:
getBounds in interface org.opengis.feature.Feature

getDefaultGeometryProperty

public org.opengis.feature.GeometryAttribute getDefaultGeometryProperty()
Specified by:
getDefaultGeometryProperty in interface org.opengis.feature.Feature

setDefaultGeometryProperty

public void setDefaultGeometryProperty(org.opengis.feature.GeometryAttribute defaultGeometry)
Specified by:
setDefaultGeometryProperty in interface org.opengis.feature.Feature

getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties()
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties(org.opengis.feature.type.Name name)
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

getProperties

public java.util.Collection<org.opengis.feature.Property> getProperties(java.lang.String name)
Specified by:
getProperties in interface org.opengis.feature.ComplexAttribute

getProperty

public org.opengis.feature.Property getProperty(org.opengis.feature.type.Name name)
Specified by:
getProperty in interface org.opengis.feature.ComplexAttribute

getProperty

public org.opengis.feature.Property getProperty(java.lang.String name)
Specified by:
getProperty in interface org.opengis.feature.ComplexAttribute

getValue

public java.util.Collection<? extends org.opengis.feature.Property> getValue()
Specified by:
getValue in interface org.opengis.feature.ComplexAttribute
Specified by:
getValue in interface org.opengis.feature.Property

setValue

public void setValue(java.util.Collection<org.opengis.feature.Property> value)
Specified by:
setValue in interface org.opengis.feature.ComplexAttribute

getDescriptor

public org.opengis.feature.type.AttributeDescriptor getDescriptor()
Specified by:
getDescriptor in interface org.opengis.feature.Attribute
Specified by:
getDescriptor in interface org.opengis.feature.Property

getName

public org.opengis.feature.type.Name getName()
Specified by:
getName in interface org.opengis.feature.Property

getUserData

public java.util.Map<java.lang.Object,java.lang.Object> getUserData()
Specified by:
getUserData in interface org.opengis.feature.Property

isNillable

public boolean isNillable()
Specified by:
isNillable in interface org.opengis.feature.Property

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface org.opengis.feature.Property

validate

public void validate()
Specified by:
validate in interface org.opengis.feature.Attribute
Specified by:
validate in interface org.opengis.feature.ComplexAttribute


Copyright © 1996-2010 Geotools. All Rights Reserved.