|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| CriterionWrapper.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Joey and its relative products are published under the terms
|
|
| 3 |
* of the Apache Software License.
|
|
| 4 |
*/
|
|
| 5 |
/*
|
|
| 6 |
* Created on 2004/02/29
|
|
| 7 |
*/
|
|
| 8 |
package org.asyrinx.brownie.hibernate.wrapper;
|
|
| 9 |
|
|
| 10 |
import java.util.Map;
|
|
| 11 |
|
|
| 12 |
import net.sf.hibernate.HibernateException;
|
|
| 13 |
import net.sf.hibernate.engine.SessionFactoryImplementor;
|
|
| 14 |
import net.sf.hibernate.engine.TypedValue;
|
|
| 15 |
import net.sf.hibernate.expression.Criterion;
|
|
| 16 |
|
|
| 17 |
/**
|
|
| 18 |
* @author akima
|
|
| 19 |
*/
|
|
| 20 |
public class CriterionWrapper implements Criterion { |
|
| 21 |
|
|
| 22 |
/**
|
|
| 23 |
*
|
|
| 24 |
*/
|
|
| 25 | 0 |
public CriterionWrapper(Criterion wrapped) {
|
| 26 | 0 |
super();
|
| 27 | 0 |
this.wrapped = wrapped;
|
| 28 |
} |
|
| 29 |
|
|
| 30 |
protected final Criterion wrapped;
|
|
| 31 |
|
|
| 32 |
/**
|
|
| 33 |
* @param sessionFactory
|
|
| 34 |
* @param persistentClass
|
|
| 35 |
* @param aliasClasses
|
|
| 36 |
* @return @throws
|
|
| 37 |
* net.sf.hibernate.HibernateException
|
|
| 38 |
*/
|
|
| 39 | 0 |
public TypedValue[] getTypedValues(
|
| 40 |
SessionFactoryImplementor sessionFactory, Class persistentClass, |
|
| 41 |
Map aliasClasses) throws HibernateException {
|
|
| 42 | 0 |
return wrapped.getTypedValues(sessionFactory, persistentClass,
|
| 43 |
aliasClasses); |
|
| 44 |
} |
|
| 45 |
|
|
| 46 |
/**
|
|
| 47 |
* @param sessionFactory
|
|
| 48 |
* @param persistentClass
|
|
| 49 |
* @param alias
|
|
| 50 |
* @param aliasClasses
|
|
| 51 |
* @return @throws
|
|
| 52 |
* net.sf.hibernate.HibernateException
|
|
| 53 |
*/
|
|
| 54 | 0 |
public String toSqlString(SessionFactoryImplementor sessionFactory,
|
| 55 |
Class persistentClass, String alias, Map aliasClasses) |
|
| 56 |
throws HibernateException {
|
|
| 57 | 0 |
return wrapped.toSqlString(sessionFactory, persistentClass, alias,
|
| 58 |
aliasClasses); |
|
| 59 |
} |
|
| 60 |
|
|
| 61 |
} |
|
||||||||||