SRJRCFrames
v0.1.296

de.schwarzrot.data.access
Interface DataAccessor

All Known Implementing Classes:
JDBCResultSetAccessor, PreferencesAccessor

public interface DataAccessor

interface for anonymous data access. Currently it is used to access a Resultset from JDBC the same way, as Preferences nodes.

Author:
Reinhard Mantey

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
 

Method Detail

close

void close()
close the data container and free resources


entryNames

Collection<String> entryNames()
returns a list of names, that are known by this data collection

Returns:
- a list of names

getHandle

Object getHandle()
returns a handle to the data

Returns:
- a handle to the data

getObject

Object getObject(String name)
returns a value by name

Parameters:
name - - name of the value
Returns:
- the value

hasData

boolean hasData()
returns true, if data is available, otherwise false

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.