}
@Override
- public boolean matches (final Storable storeable) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
+ public boolean matches (final Storable storable) throws IllegalArgumentException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {
// Trace message
- this.getLogger().trace(MessageFormat.format("storeable={0} - CALLED!", storeable)); //NOI18N
+ this.getLogger().trace(MessageFormat.format("storable={0} - CALLED!", storable)); //NOI18N
// Must not be null
- if (null == storeable) {
+ if (null == storable) {
// Abort here
- throw new NullPointerException("storeable is null"); //NOI18N
+ throw new NullPointerException("storable is null"); //NOI18N
}
// Debug message
this.getLogger().debug(MessageFormat.format("criteria: key={0},value[{1}]={2}", criteria.getKey(), criteria.getValue().getClass().getSimpleName(), criteria.getValue())); //NOI18N
// Get value from column name
- Object value = storeable.getValueFromColumn(criteria.getKey());
+ Object value = storable.getValueFromColumn(criteria.getKey());
// Debug message
this.getLogger().debug(MessageFormat.format("value={0},getValue()={1}", value, criteria.getValue())); //NOI18N
/**
* Checks if the given instance of a Storable class matches
*
- * @param storeable A Storable instance to check
+ * @param storable A Storable instance to check
* @return Whether the Storable instance matches
* @throws IllegalArgumentException Some implementations may throw this
* @throws java.lang.NoSuchMethodException If the invoked method was not found
* @throws java.lang.IllegalAccessException If the method cannot be accessed
* @throws java.lang.reflect.InvocationTargetException Any other problems?
*/
- public boolean matches (final Storable storeable) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException;
+ public boolean matches (final Storable storable) throws NoSuchMethodException, IllegalAccessException, IllegalArgumentException, InvocationTargetException;
/**
* Setter for limit of possible matches
Map<String, String> map = this.getMapFromLine(line);
// Convert it to a Storable instance
- Storable storeable = this.getFrontend().toStorable(map);
+ Storable storable = this.getFrontend().toStorable(map);
// Debug message
- this.getLogger().debug(MessageFormat.format("storeable={0}", storeable)); //NOI18N
+ this.getLogger().debug(MessageFormat.format("storable={0}", storable)); //NOI18N
// Now matches the found instance
- if (criteria.matches(storeable)) {
+ if (criteria.matches(storable)) {
// Then add it to result
- result.add(storeable);
+ result.add(storable);
}
}
/**
* Given Storable instance as a query result.
*
- * @param storeable An instance of a Storable class
+ * @param storable An instance of a Storable class
*/
@Override
- public final void add (final Storable storeable) {
+ public final void add (final Storable storable) {
// Add to result
- this.result.add(storeable);
+ this.result.add(storable);
}
/**
* An interface for database results
*
* @author Roland Haeder
- * @param <T> Anything that is storeable
+ * @param <T> Anything that is storable
*/
public interface Result<T extends Storable> extends FrameworkInterface, Iterator<T>, Iterable<T> {
/**
* Given Storable instance as a query result.
*
- * @param storeable An instance of a Storable class
+ * @param storable An instance of a Storable class
*/
- public void add (final Storable storeable);
+ public void add (final Storable storable);
/**
* Setter for warnings