org.progeeks.meta.jdbc
Class ResultSetMetaObjectIterator

java.lang.Object
  extended by org.progeeks.util.beans.BeanChangeSupport
      extended by org.progeeks.meta.AbstractMetaObject
          extended by org.progeeks.meta.jdbc.ResultSetMetaObjectIterator
All Implemented Interfaces:
MetaObject, MetaObjectIterator, StandardBean

public class ResultSetMetaObjectIterator
extends AbstractMetaObject
implements MetaObjectIterator

Implementation of a meta-object iterator that is backed by a JDBC result set object. Performs some small slight of hand to transform the standard result set navigation into a more iterator-like model.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.progeeks.meta.AbstractMetaObject
AbstractMetaObject.BaseListMutator
 
Constructor Summary
ResultSetMetaObjectIterator(java.sql.ResultSet resultSet, MetaClass metaClass)
          Create the iterator object for the supplied result set using the supplied meta-class and column name mappings.
 
Method Summary
protected  java.lang.Object getPropertyValue(java.lang.String name)
          Provide access to the value of a property which is really just the value of a particular column for the current row.
 boolean next()
          Move to the next meta-object.
protected  java.lang.Object setPropertyValue(java.lang.String name, java.lang.Object value)
          Set a property that just generates an error right now.
 
Methods inherited from class org.progeeks.meta.AbstractMetaObject
cacheWrapper, createListMutator, createPropertyMutator, getCachedWrapper, getMetaClass, getMetaKit, getProperty, getPropertyMutator, readMetaClass, readResolve, release, setMetaClass, setMetaKit, setProperty, unwrapPropertyValue, wrapPropertyValue, writeMetaClass, writeReplace
 
Methods inherited from class org.progeeks.util.beans.BeanChangeSupport
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.progeeks.meta.MetaObject
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, getMetaClass, getMetaKit, getProperty, getPropertyMutator, hasListeners, hasListeners, release, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, setProperty
 

Constructor Detail

ResultSetMetaObjectIterator

public ResultSetMetaObjectIterator(java.sql.ResultSet resultSet,
                                   MetaClass metaClass)
Create the iterator object for the supplied result set using the supplied meta-class and column name mappings.

Parameters:
resultSet - Result set to back the iterator.
metaClass - Meta-class describing the meta-object for the result set row.
Method Detail

next

public boolean next()
Description copied from interface: MetaObjectIterator
Move to the next meta-object. If there are no more objects, false is returned.

Specified by:
next in interface MetaObjectIterator
See Also:
MetaObjectIterator.next()

getPropertyValue

protected java.lang.Object getPropertyValue(java.lang.String name)
Provide access to the value of a property which is really just the value of a particular column for the current row.

Specified by:
getPropertyValue in class AbstractMetaObject
See Also:
AbstractMetaObject.getPropertyValue(java.lang.String)

setPropertyValue

protected java.lang.Object setPropertyValue(java.lang.String name,
                                            java.lang.Object value)
Set a property that just generates an error right now. Eventually, this will probably update the database.

Specified by:
setPropertyValue in class AbstractMetaObject
See Also:
AbstractMetaObject.setPropertyValue(java.lang.String, java.lang.Object)


Copyright © 2002-2003 Paul Speed. All Rights Reserved.