| java.lang.Object org.mdarad.framework.expr.CriteriaTranslator
All known Subclasses: org.mdarad.framework.expr.HibernateCriteriaTranslator,
CriteriaTranslator | abstract public class CriteriaTranslator (Code) | | This abstract class is used to translate criteria objects from the MDARAD framework
to criteria objects of the persistence framework used.
To be used, a class must be derived and the methods
getExpressionStatement() and
getCriterionObject() must be implemented.
At this moment, the only supported translator is for the Hibernate framework
(http://www.hibernate.org)
author: Philippe Brouillette version: 1.0 |
HIBERNATE_TRANSLATOR | final public static String HIBERNATE_TRANSLATOR(Code) | | Constant needed to instanciate the Hibernate Translator
|
CriteriaTranslator | protected CriteriaTranslator()(Code) | | Default constructor
|
getCriterionObject | abstract public Object getCriterionObject(Class entity, Collection criteria)(Code) | | Method that returns the expression statement as an object. Usually, it will
returns a SQL statement as a object from the persistence framework. As an example,
the object returned for the Hibernate framework is a DetachedCriteria object.
Parameters: entity - persistence type Parameters: criteria - collection of the criteria Return the expression statement as an object. |
getExpressionStatement | abstract public String getExpressionStatement(Class entity, Collection criteria)(Code) | | Method that returns the expression statement as a string. Usually, it will
returns a SQL statement as a string.
Parameters: entity - persistence type Parameters: criteria - collection of the criteria The string expression representing the statement (SQL, XML, etc) |
|
|