Expresso 5-6

com.jcorporate.expresso.core.dbobj
Interface LookupInterface

All Known Subinterfaces:
UserInfo
All Known Implementing Classes:
DBObject, DefaultUserInfo, MapBasedUserInfo, SingleDBUserInfo, User, UserLDAP

public interface LookupInterface

Anything that implements the lookup interface must provide a return vector of valid values that when called provide a key that maps one to one to a particular value. For example, using this in UserInfo type classes, it provides a way to map user id integers to username strings.

Since:
Expresso 4.0
Author:
Michael Rimov

Method Summary
 Vector getValues()
          Method to return a Vector of ValidValue This method may be implemented by objects that want to provide a list of valid values for other DB objects.
 

Method Detail

getValues

public Vector getValues()
                 throws DBException
Method to return a Vector of ValidValue This method may be implemented by objects that want to provide a list of valid values for other DB objects. It is strongly recommended that the valid value list be cached (via the CacheManager) for performance. The naming convention used in Expresso is to store the ValidValue list with a cache name the same as the db objects class name with ".validValues" appended

Returns:
A ValidValue vector describing what can be looked up.
Throws:
DBException

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.