SRJRCFrames
v0.1.296

de.schwarzrot.data.access.jdbc
Class JDBCResultSetAccessor

java.lang.Object
  extended by de.schwarzrot.data.access.jdbc.JDBCResultSetAccessor
All Implemented Interfaces:
DataAccessor

public class JDBCResultSetAccessor
extends Object
implements DataAccessor

implementation of DataAccessor to wrap a jdbc-result set in an abstract way.

Author:
Reinhard Mantey

Constructor Summary
JDBCResultSetAccessor(ResultSet rs, Connection con)
           
 
Method Summary
 void close()
          close the data container and free resources
 Collection<String> entryNames()
          returns a list of names, that are known by this data collection
 Object getHandle()
          returns a handle to the data
 Object getObject(String name)
          returns a value by name
 boolean hasData()
          returns true, if data is available, otherwise false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCResultSetAccessor

public JDBCResultSetAccessor(ResultSet rs,
                             Connection con)
Method Detail

close

public void close()
Description copied from interface: DataAccessor
close the data container and free resources

Specified by:
close in interface DataAccessor

entryNames

public Collection<String> entryNames()
Description copied from interface: DataAccessor
returns a list of names, that are known by this data collection

Specified by:
entryNames in interface DataAccessor
Returns:
- a list of names

getHandle

public final Object getHandle()
Description copied from interface: DataAccessor
returns a handle to the data

Specified by:
getHandle in interface DataAccessor
Returns:
- a handle to the data

getObject

public Object getObject(String name)
Description copied from interface: DataAccessor
returns a value by name

Specified by:
getObject in interface DataAccessor
Parameters:
name - - name of the value
Returns:
- the value

hasData

public boolean hasData()
Description copied from interface: DataAccessor
returns true, if data is available, otherwise false

Specified by:
hasData in interface DataAccessor
Returns:
- true, if data is available, otherwise false

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.