Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.impetus.kundera.persistence.KunderaCriteriaBuilder Maven / Gradle / Ivy
/*******************************************************************************
* * Copyright 2014 Impetus Infotech.
* *
* * Licensed under the Apache License, Version 2.0 (the "License");
* * you may not use this file except in compliance with the License.
* * You may obtain a copy of the License at
* *
* * http://www.apache.org/licenses/LICENSE-2.0
* *
* * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* * See the License for the specific language governing permissions and
* * limitations under the License.
******************************************************************************/
package com.impetus.kundera.persistence;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Tuple;
import javax.persistence.criteria.CollectionJoin;
import javax.persistence.criteria.CompoundSelection;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaDelete;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.CriteriaUpdate;
import javax.persistence.criteria.Expression;
import javax.persistence.criteria.Join;
import javax.persistence.criteria.ListJoin;
import javax.persistence.criteria.MapJoin;
import javax.persistence.criteria.Order;
import javax.persistence.criteria.ParameterExpression;
import javax.persistence.criteria.Path;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import javax.persistence.criteria.Selection;
import javax.persistence.criteria.SetJoin;
import javax.persistence.criteria.Subquery;
import javax.persistence.metamodel.Metamodel;
import com.impetus.kundera.persistence.AbstractPredicate.ConditionalOperator;
import com.impetus.kundera.query.KunderaQuery.SortOrder;
/**
* Implements criteria builder {@link CriteriaBuilder}.
*
* @author vivek.mishra
*
*/
public class KunderaCriteriaBuilder implements CriteriaBuilder
{
private EntityManagerFactory entityManagerFactory;
KunderaCriteriaBuilder(EntityManagerFactory entityManagerFactory)
{
this.entityManagerFactory = entityManagerFactory;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#abs(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression abs(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#all(javax.persistence.criteria
* .Subquery)
*/
@Override
public Expression all(Subquery arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#and(javax.persistence.criteria
* .Predicate[])
*/
@Override
public Predicate and(Predicate... predicates)
{
return new ConjuctionPredicate(predicates);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#and(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate and(Expression arg0, Expression arg1)
{
if (arg0 != null && arg1 != null)
{
return new ConjuctionPredicate((Predicate)arg0, (Predicate)arg1);
}
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#any(javax.persistence.criteria
* .Subquery)
*/
@Override
public Expression any(Subquery arg0)
{
// TODO Auto-generated method stub
return null;
}
CompoundSelection array( Class resultClazz, Selection>... arg0)
{
return new DefaultCompoundSelection(Arrays.asList(arg0), resultClazz);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#array(javax.persistence.criteria
* .Selection>[])
*/
@Override
public CompoundSelection array(Selection>... arg0)
{
return new DefaultCompoundSelection(Arrays.asList(arg0), Object.class);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#asc(javax.persistence.criteria
* .Expression)
*/
@Override
public Order asc(Expression> arg0)
{
return new QueryOrder(arg0, SortOrder.ASC);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#avg(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression avg(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#between(javax.persistence.
* criteria.Expression, javax.persistence.criteria.Expression,
* javax.persistence.criteria.Expression)
*/
@Override
public > Predicate between(Expression extends Y> arg0,
Expression extends Y> arg1, Expression extends Y> arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#between(javax.persistence.
* criteria.Expression, java.lang.Comparable, java.lang.Comparable)
*/
@Override
public > Predicate between(Expression extends Y> arg0, Y arg1, Y arg2)
{
return new BetweenPredicate(arg0,arg1,arg2);
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#coalesce()
*/
@Override
public Coalesce coalesce()
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#coalesce(javax.persistence
* .criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression coalesce(Expression extends Y> arg0, Expression extends Y> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#coalesce(javax.persistence
* .criteria.Expression, java.lang.Object)
*/
@Override
public Expression coalesce(Expression extends Y> arg0, Y arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#concat(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression concat(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#concat(javax.persistence.criteria
* .Expression, java.lang.String)
*/
@Override
public Expression concat(Expression arg0, String arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#concat(java.lang.String,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression concat(String arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#conjunction()
*/
@Override
public Predicate conjunction()
{
return new ConjuctionPredicate();
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#construct(java.lang.Class,
* javax.persistence.criteria.Selection>[])
*/
@Override
public CompoundSelection construct(Class arg0, Selection>... arg1)
{
return new DefaultCompoundSelection(Arrays.asList(arg1), arg0);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#count(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression count(Expression> arg0)
{
// TODO Auto-generated method stub
String arg1 = "Count("+arg0.getAlias()+")";
return new AggregateExpression(arg0, arg1);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#countDistinct(javax.persistence
* .criteria.Expression)
*/
@Override
public Expression countDistinct(Expression> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#createQuery()
*/
@Override
public CriteriaQuery createQuery()
{
return new KunderaCritieriaQuery(this);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#createQuery(java.lang.Class)
*/
@Override
public CriteriaQuery createQuery(Class returnClazz)
{
return new KunderaCritieriaQuery(this, returnClazz);
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#createTupleQuery()
*/
@Override
public CriteriaQuery createTupleQuery()
{
return new KunderaCritieriaQuery(this, Tuple.class);
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#currentDate()
*/
@Override
public Expression currentDate()
{
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#currentTime()
*/
@Override
public Expression currentTime()
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#currentTimestamp()
*/
@Override
public Expression currentTimestamp()
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#desc(javax.persistence.criteria
* .Expression)
*/
@Override
public Order desc(Expression> arg0)
{
return new QueryOrder(arg0, SortOrder.DESC);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#diff(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression diff(Expression extends N> arg0, Expression extends N> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#diff(javax.persistence.criteria
* .Expression, java.lang.Number)
*/
@Override
public Expression diff(Expression extends N> arg0, N arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#diff(java.lang.Number,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression diff(N arg0, Expression extends N> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#disjunction()
*/
@Override
public Predicate disjunction()
{
return new DisjunctionPredicate();
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#equal(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate equal(Expression> lhs, Expression> rhs)
{
return new ComparisonPredicate(lhs, rhs, ConditionalOperator.EQ);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#equal(javax.persistence.criteria
* .Expression, java.lang.Object)
*/
@Override
public Predicate equal(Expression> lhs, Object rhs)
{
return new ComparisonPredicate(lhs, rhs, ConditionalOperator.EQ);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#exists(javax.persistence.criteria
* .Subquery)
*/
@Override
public Predicate exists(Subquery> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#function(java.lang.String,
* java.lang.Class, javax.persistence.criteria.Expression>[])
*/
@Override
public Expression function(String arg0, Class arg1, Expression>... arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#ge(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate ge(Expression extends Number> arg0, Expression extends Number> arg1)
{
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#ge(javax.persistence.criteria
* .Expression, java.lang.Number)
*/
@Override
public Predicate ge(Expression extends Number> arg0, Number arg1)
{
// TODO Auto-generated method stub
return new ComparisonPredicate(arg0, arg1, ConditionalOperator.GTE);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#greaterThan(javax.persistence
* .criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public > Predicate greaterThan(Expression extends Y> lhs,
Expression extends Y> rhs)
{
return new ComparisonPredicate(lhs, rhs, ConditionalOperator.GT);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#greaterThan(javax.persistence
* .criteria.Expression, java.lang.Comparable)
*/
@Override
public > Predicate greaterThan(Expression extends Y> lhs, Y rhs)
{
return new ComparisonPredicate(lhs, rhs, ConditionalOperator.GT);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#greaterThanOrEqualTo(javax
* .persistence.criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public > Predicate greaterThanOrEqualTo(Expression extends Y> lhs,
Expression extends Y> rhs)
{
return new ComparisonPredicate(lhs, rhs, ConditionalOperator.GTE);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#greaterThanOrEqualTo(javax
* .persistence.criteria.Expression, java.lang.Comparable)
*/
@Override
public > Predicate greaterThanOrEqualTo(Expression extends Y> lhs, Y rhs)
{
return new ComparisonPredicate(lhs, rhs, ConditionalOperator.GTE);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#greatest(javax.persistence
* .criteria.Expression)
*/
@Override
public > Expression greatest(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#gt(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate gt(Expression extends Number> arg0, Expression extends Number> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#gt(javax.persistence.criteria
* .Expression, java.lang.Number)
*/
@Override
public Predicate gt(Expression extends Number> lhs, Number rhs)
{
return new ComparisonPredicate(lhs, rhs, ConditionalOperator.GT);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#in(javax.persistence.criteria
* .Expression)
*/
@Override
public In in(Expression extends T> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isEmpty(javax.persistence.
* criteria.Expression)
*/
@Override
public > Predicate isEmpty(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isFalse(javax.persistence.
* criteria.Expression)
*/
@Override
public Predicate isFalse(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isMember(javax.persistence
* .criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public > Predicate isMember(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isMember(java.lang.Object,
* javax.persistence.criteria.Expression)
*/
@Override
public > Predicate isMember(E arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isNotEmpty(javax.persistence
* .criteria.Expression)
*/
@Override
public > Predicate isNotEmpty(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isNotMember(javax.persistence
* .criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public > Predicate isNotMember(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isNotMember(java.lang.Object,
* javax.persistence.criteria.Expression)
*/
@Override
public > Predicate isNotMember(E arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isNotNull(javax.persistence
* .criteria.Expression)
*/
@Override
public Predicate isNotNull(Expression> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isNull(javax.persistence.criteria
* .Expression)
*/
@Override
public Predicate isNull(Expression> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#isTrue(javax.persistence.criteria
* .Expression)
*/
@Override
public Predicate isTrue(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#keys(java.util.Map)
*/
@Override
public > Expression> keys(M arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#le(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate le(Expression extends Number> arg0, Expression extends Number> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#le(javax.persistence.criteria
* .Expression, java.lang.Number)
*/
@Override
public Predicate le(Expression extends Number> arg0, Number arg1)
{
// TODO Auto-generated method stub
return new ComparisonPredicate(arg0, arg1, ConditionalOperator.LTE);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#least(javax.persistence.criteria
* .Expression)
*/
@Override
public > Expression least(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#length(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression length(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#lessThan(javax.persistence
* .criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public > Predicate lessThan(Expression extends Y> arg0,
Expression extends Y> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#lessThan(javax.persistence
* .criteria.Expression, java.lang.Comparable)
*/
@Override
public > Predicate lessThan(Expression extends Y> arg0, Y arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#lessThanOrEqualTo(javax.
* persistence.criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public > Predicate lessThanOrEqualTo(Expression extends Y> arg0,
Expression extends Y> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#lessThanOrEqualTo(javax.
* persistence.criteria.Expression, java.lang.Comparable)
*/
@Override
public > Predicate lessThanOrEqualTo(Expression extends Y> arg0, Y arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#like(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate like(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#like(javax.persistence.criteria
* .Expression, java.lang.String)
*/
@Override
public Predicate like(Expression arg0, String arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#like(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression,
* javax.persistence.criteria.Expression)
*/
@Override
public Predicate like(Expression arg0, Expression arg1, Expression arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#like(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression, char)
*/
@Override
public Predicate like(Expression arg0, Expression arg1, char arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#like(javax.persistence.criteria
* .Expression, java.lang.String, javax.persistence.criteria.Expression)
*/
@Override
public Predicate like(Expression arg0, String arg1, Expression arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#like(javax.persistence.criteria
* .Expression, java.lang.String, char)
*/
@Override
public Predicate like(Expression arg0, String arg1, char arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#literal(java.lang.Object)
*/
@Override
public Expression literal(T arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#locate(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression locate(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#locate(javax.persistence.criteria
* .Expression, java.lang.String)
*/
@Override
public Expression locate(Expression arg0, String arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#locate(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression locate(Expression arg0, Expression arg1, Expression arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#locate(javax.persistence.criteria
* .Expression, java.lang.String, int)
*/
@Override
public Expression locate(Expression arg0, String arg1, int arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#lower(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression lower(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#lt(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate lt(Expression extends Number> arg0, Expression extends Number> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#lt(javax.persistence.criteria
* .Expression, java.lang.Number)
*/
@Override
public Predicate lt(Expression extends Number> arg0, Number arg1)
{
return new ComparisonPredicate(arg0, arg1, ConditionalOperator.LT);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#max(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression max(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#min(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression min(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#mod(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression mod(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#mod(javax.persistence.criteria
* .Expression, java.lang.Integer)
*/
@Override
public Expression mod(Expression arg0, Integer arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#mod(java.lang.Integer,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression mod(Integer arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#neg(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression neg(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#not(javax.persistence.criteria
* .Expression)
*/
@Override
public Predicate not(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#notEqual(javax.persistence
* .criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate notEqual(Expression> arg0, Expression> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#notEqual(javax.persistence
* .criteria.Expression, java.lang.Object)
*/
@Override
public Predicate notEqual(Expression> arg0, Object arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#notLike(javax.persistence.
* criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate notLike(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#notLike(javax.persistence.
* criteria.Expression, java.lang.String)
*/
@Override
public Predicate notLike(Expression arg0, String arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#notLike(javax.persistence.
* criteria.Expression, javax.persistence.criteria.Expression,
* javax.persistence.criteria.Expression)
*/
@Override
public Predicate notLike(Expression arg0, Expression arg1, Expression arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#notLike(javax.persistence.
* criteria.Expression, javax.persistence.criteria.Expression, char)
*/
@Override
public Predicate notLike(Expression arg0, Expression arg1, char arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#notLike(javax.persistence.
* criteria.Expression, java.lang.String,
* javax.persistence.criteria.Expression)
*/
@Override
public Predicate notLike(Expression arg0, String arg1, Expression arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#notLike(javax.persistence.
* criteria.Expression, java.lang.String, char)
*/
@Override
public Predicate notLike(Expression arg0, String arg1, char arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#nullLiteral(java.lang.Class)
*/
@Override
public Expression nullLiteral(Class arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#nullif(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression nullif(Expression arg0, Expression> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#nullif(javax.persistence.criteria
* .Expression, java.lang.Object)
*/
@Override
public Expression nullif(Expression arg0, Y arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#or(javax.persistence.criteria
* .Predicate[])
*/
@Override
public Predicate or(Predicate... predicates)
{
return new DisjunctionPredicate(predicates);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#or(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Predicate or(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
if (arg0 != null && arg1 != null)
{
if (arg0.getClass().isAssignableFrom(ComparisonPredicate.class) && arg1.getClass().isAssignableFrom(ComparisonPredicate.class))
{
return new DisjunctionPredicate((Predicate)arg0, (Predicate)arg1);
}
}
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#parameter(java.lang.Class)
*/
@Override
public ParameterExpression parameter(Class arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#parameter(java.lang.Class,
* java.lang.String)
*/
@Override
public ParameterExpression parameter(Class arg0, String arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#prod(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression prod(Expression extends N> arg0, Expression extends N> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#prod(javax.persistence.criteria
* .Expression, java.lang.Number)
*/
@Override
public Expression prod(Expression extends N> arg0, N arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#prod(java.lang.Number,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression prod(N arg0, Expression extends N> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#quot(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression quot(Expression extends Number> arg0, Expression extends Number> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#quot(javax.persistence.criteria
* .Expression, java.lang.Number)
*/
@Override
public Expression quot(Expression extends Number> arg0, Number arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#quot(java.lang.Number,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression quot(Number arg0, Expression extends Number> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#selectCase()
*/
@Override
public Case selectCase()
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#selectCase(javax.persistence
* .criteria.Expression)
*/
@Override
public SimpleCase selectCase(Expression extends C> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#size(javax.persistence.criteria
* .Expression)
*/
@Override
public > Expression size(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#size(java.util.Collection)
*/
@Override
public > Expression size(C arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#some(javax.persistence.criteria
* .Subquery)
*/
@Override
public Expression some(Subquery arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#sqrt(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression sqrt(Expression extends Number> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#substring(javax.persistence
* .criteria.Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression substring(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#substring(javax.persistence
* .criteria.Expression, int)
*/
@Override
public Expression substring(Expression arg0, int arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#substring(javax.persistence
* .criteria.Expression, javax.persistence.criteria.Expression,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression substring(Expression arg0, Expression arg1, Expression arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#substring(javax.persistence
* .criteria.Expression, int, int)
*/
@Override
public Expression substring(Expression arg0, int arg1, int arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#sum(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression sum(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#sum(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression sum(Expression extends N> arg0, Expression extends N> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#sum(javax.persistence.criteria
* .Expression, java.lang.Number)
*/
@Override
public Expression sum(Expression extends N> arg0, N arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#sum(java.lang.Number,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression sum(N arg0, Expression extends N> arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#sumAsDouble(javax.persistence
* .criteria.Expression)
*/
@Override
public Expression sumAsDouble(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#sumAsLong(javax.persistence
* .criteria.Expression)
*/
@Override
public Expression sumAsLong(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#toBigDecimal(javax.persistence
* .criteria.Expression)
*/
@Override
public Expression toBigDecimal(Expression extends Number> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#toBigInteger(javax.persistence
* .criteria.Expression)
*/
@Override
public Expression toBigInteger(Expression extends Number> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#toDouble(javax.persistence
* .criteria.Expression)
*/
@Override
public Expression toDouble(Expression extends Number> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#toFloat(javax.persistence.
* criteria.Expression)
*/
@Override
public Expression toFloat(Expression extends Number> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#toInteger(javax.persistence
* .criteria.Expression)
*/
@Override
public Expression toInteger(Expression extends Number> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#toLong(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression toLong(Expression extends Number> arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#toString(javax.persistence
* .criteria.Expression)
*/
@Override
public Expression toString(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#trim(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression trim(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#trim(javax.persistence.criteria
* .CriteriaBuilder.Trimspec, javax.persistence.criteria.Expression)
*/
@Override
public Expression trim(Trimspec arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#trim(javax.persistence.criteria
* .Expression, javax.persistence.criteria.Expression)
*/
@Override
public Expression trim(Expression arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#trim(char,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression trim(char arg0, Expression arg1)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#trim(javax.persistence.criteria
* .CriteriaBuilder.Trimspec, javax.persistence.criteria.Expression,
* javax.persistence.criteria.Expression)
*/
@Override
public Expression trim(Trimspec arg0, Expression arg1, Expression arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#trim(javax.persistence.criteria
* .CriteriaBuilder.Trimspec, char, javax.persistence.criteria.Expression)
*/
@Override
public Expression trim(Trimspec arg0, char arg1, Expression arg2)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#tuple(javax.persistence.criteria
* .Selection>[])
*/
@Override
public CompoundSelection tuple(Selection>... arg0)
{
return new DefaultCompoundSelection(Arrays.asList(arg0), Tuple.class);
}
/*
* (non-Javadoc)
*
* @see
* javax.persistence.criteria.CriteriaBuilder#upper(javax.persistence.criteria
* .Expression)
*/
@Override
public Expression upper(Expression arg0)
{
// TODO Auto-generated method stub
return null;
}
/*
* (non-Javadoc)
*
* @see javax.persistence.criteria.CriteriaBuilder#values(java.util.Map)
*/
@Override
public > Expression> values(M arg0)
{
// TODO Auto-generated method stub
return null;
}
Metamodel getMetaModel()
{
return this.entityManagerFactory.getMetamodel();
}
@Override
public CriteriaUpdate createCriteriaUpdate(Class paramClass)
{
//TODO: See https://github.com/impetus-opensource/Kundera/issues/457
// Do nothing. Not yet implemented.
return null;
}
@Override
public CriteriaDelete createCriteriaDelete(Class paramClass)
{
//TODO: See https://github.com/impetus-opensource/Kundera/issues/457
// Do nothing. Not yet implemented.
return null;
}
@Override
public Join treat(Join paramJoin, Class paramClass)
{
//TODO: See https://github.com/impetus-opensource/Kundera/issues/457
// Do nothing. Not yet implemented.
return null;
}
@Override
public CollectionJoin treat(CollectionJoin