removed deprecated Wildcard class

This commit is contained in:
Timo Westkämper 2011-02-26 13:23:04 +00:00
parent 9b4681fb88
commit d9f4cba477
3 changed files with 2 additions and 37 deletions

View File

@ -1,33 +0,0 @@
/*
* Copyright (c) 2010 Mysema Ltd.
* All rights reserved.
*
*/
package com.mysema.query.sql;
import com.mysema.query.types.expr.NumberExpression;
import com.mysema.query.types.expr.SimpleExpression;
import com.mysema.query.types.template.SimpleTemplate;
/**
* Wildcard provides shortcuts for the wildcard (*) and wildcard count (count(*)) expressions
*
* @deprecated use com.mysema.query.types.expr.Wildcard instead
*
* @author sasa
*
*/
@Deprecated
public final class Wildcard {
private static final long serialVersionUID = -675749944676437551L;
public static final SimpleExpression<Object[]> all = SimpleTemplate.create(Object[].class, "*");
private Wildcard() {}
public static NumberExpression<Long> count() {
return all.count();
}
}

View File

@ -9,10 +9,8 @@ import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import com.mysema.query.codegen.BeanSerializer;
import com.mysema.query.codegen.Serializer;
import com.mysema.query.sql.DefaultNamingStrategy;
import com.mysema.query.sql.MetaDataExporter;
import com.mysema.query.sql.MetaDataSerializer;
import com.mysema.query.sql.NamingStrategy;
/**

View File

@ -43,7 +43,6 @@ import com.mysema.query.sql.SQLQuery;
import com.mysema.query.sql.SQLSerializer;
import com.mysema.query.sql.SQLSubQuery;
import com.mysema.query.sql.SQLTemplates;
import com.mysema.query.sql.Wildcard;
import com.mysema.query.sql.domain.Employee;
import com.mysema.query.sql.domain.IdName;
import com.mysema.query.sql.domain.QEmployee;
@ -54,6 +53,7 @@ import com.mysema.query.types.expr.BooleanExpression;
import com.mysema.query.types.expr.Coalesce;
import com.mysema.query.types.expr.NumberExpression;
import com.mysema.query.types.expr.Param;
import com.mysema.query.types.expr.Wildcard;
import com.mysema.query.types.path.NumberPath;
import com.mysema.query.types.path.PathBuilder;
import com.mysema.query.types.query.ListSubQuery;
@ -246,7 +246,7 @@ public abstract class SelectBaseTest extends AbstractBaseTest{
public void Count_All() {
expectedQuery = "select count(*) as rowCount from EMPLOYEE2 e";
NumberPath<Long> rowCount = new NumberPath<Long>(Long.class, "rowCount");
query().from(employee).uniqueResult(Wildcard.count().as(rowCount));
query().from(employee).uniqueResult(Wildcard.count.as(rowCount));
}
@Test