com.jpattern.orm.persistor.generator
Class GeneratorManipulator<BEAN>

java.lang.Object
  extended by com.jpattern.orm.persistor.generator.GeneratorManipulator<BEAN>
Direct Known Subclasses:
GeneratorManipulatorImpl, NullGeneratorManipulator

public abstract class GeneratorManipulator<BEAN>
extends Object

Author:
Francesco Cina' Apr 1, 2012

Constructor Summary
GeneratorManipulator()
           
 
Method Summary
abstract  boolean hasConditionalGenerator()
          This depends on the ifValueIn() method of the Generator} annotation.
abstract  boolean hasGenerator()
          Return true if a bean has an active generator associated
abstract  boolean useGenerator(BEAN bean)
          Check if a generator has to be activated for a bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorManipulator

public GeneratorManipulator()
Method Detail

useGenerator

public abstract boolean useGenerator(BEAN bean)
                              throws IllegalArgumentException,
                                     IllegalAccessException,
                                     InvocationTargetException
Check if a generator has to be activated for a bean. This depends on the ifValueIn() method of the Generator} annotation.

Parameters:
bean -
Returns:
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

hasConditionalGenerator

public abstract boolean hasConditionalGenerator()
This depends on the ifValueIn() method of the Generator} annotation. if a specific list of values has been specified to activate the generator the this method will return true

Returns:

hasGenerator

public abstract boolean hasGenerator()
Return true if a bean has an active generator associated

Returns:


Copyright © 2013. All Rights Reserved.