org.jcreme.enumerations
Interface EnumerationLoader
- public interface EnumerationLoader
This interface describes the loaders to be used for Enumeration subclasses
values. The implementations of this interface are to be specialized for each
database model.
- Version:
- $Revision: 1.1 $
- Author:
- $Author: dbregeon $
|
Method Summary |
void |
loadValues(java.lang.Class enumerationClass,
java.sql.Connection databaseConnection)
This method enables to load the values available in a database for a
given sub class of Enumeration. |
loadValues
public void loadValues(java.lang.Class enumerationClass,
java.sql.Connection databaseConnection)
throws java.lang.IllegalArgumentException,
java.sql.SQLException
- This method enables to load the values available in a database for a
given sub class of Enumeration.
- Parameters:
enumerationClass - the class for which we want to load the values.databaseConnection - the connection to use when loading.
- Throws:
java.lang.IllegalArgumentException - if the enumerationClass is not a subclass of Enumeration.
java.sql.SQLException - if an error occurs in the database.
Copyright 2006 null. All Rights Reserved.