You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2015/06/15 13:22:37 UTC
svn commit: r1685549 [5/6] - in /tomee/deps/branches/geronimo-jpa_2.1_spec:
./ src/ src/main/ src/main/java/ src/main/java/javax/
src/main/java/javax/persistence/ src/main/java/javax/persistence/criteria/
src/main/java/javax/persistence/metamodel/ src/...
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaBuilder.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaBuilder.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaBuilder.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaBuilder.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,459 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.persistence.criteria;
+
+import java.math.BigDecimal;
+import java.math.BigInteger;
+import java.util.Collection;
+import java.util.Map;
+import java.util.Set;
+import javax.persistence.Tuple;
+
+public interface CriteriaBuilder {
+
+ CriteriaQuery<Object> createQuery();
+
+ <T> CriteriaQuery<T> createQuery(Class<T> resultClass);
+
+ CriteriaQuery<Tuple> createTupleQuery();
+
+ // methods to construct queries for bulk updates and deletes:
+
+ <T> CriteriaUpdate<T> createCriteriaUpdate(Class<T> targetEntity);
+
+ <T> CriteriaDelete<T> createCriteriaDelete(Class<T> targetEntity);
+
+
+ // selection construction methods:
+
+ <Y> CompoundSelection<Y> construct(Class<Y> resultClass, Selection<?>... selections);
+
+ CompoundSelection<Tuple> tuple(Selection<?>... selections);
+
+ CompoundSelection<Object[]> array(Selection<?>... selections);
+
+
+ //ordering:
+
+ Order asc(Expression<?> x);
+
+ Order desc(Expression<?> x);
+
+
+ //aggregate functions:
+
+ <N extends Number> Expression<Double> avg(Expression<N> x);
+
+ <N extends Number> Expression<N> sum(Expression<N> x);
+
+ Expression<Long> sumAsLong(Expression<Integer> x);
+
+ Expression<Double> sumAsDouble(Expression<Float> x);
+
+ <N extends Number> Expression<N> max(Expression<N> x);
+
+ <N extends Number> Expression<N> min(Expression<N> x);
+
+ <X extends Comparable<? super X>> Expression<X> greatest(Expression<X> x);
+
+ <X extends Comparable<? super X>> Expression<X> least(Expression<X> x);
+
+ Expression<Long> count(Expression<?> x);
+
+ Expression<Long> countDistinct(Expression<?> x);
+
+
+
+ //subqueries:
+
+ Predicate exists(Subquery<?> subquery);
+
+ <Y> Expression<Y> all(Subquery<Y> subquery);
+
+ <Y> Expression<Y> some(Subquery<Y> subquery);
+
+ <Y> Expression<Y> any(Subquery<Y> subquery);
+
+
+ //boolean functions:
+
+ Predicate and(Expression<Boolean> x, Expression<Boolean> y);
+
+ Predicate and(Predicate... restrictions);
+
+ Predicate or(Expression<Boolean> x, Expression<Boolean> y);
+
+ Predicate or(Predicate... restrictions);
+
+ Predicate not(Expression<Boolean> restriction);
+
+ Predicate conjunction();
+
+ Predicate disjunction();
+
+
+ //turn Expression<Boolean> into a Predicate
+ //useful for use with varargs methods
+
+ Predicate isTrue(Expression<Boolean> x);
+
+ Predicate isFalse(Expression<Boolean> x);
+
+
+ //null tests:
+
+ Predicate isNull(Expression<?> x);
+
+ Predicate isNotNull(Expression<?> x);
+
+ //equality:
+
+ Predicate equal(Expression<?> x, Expression<?> y);
+
+ Predicate equal(Expression<?> x, Object y);
+
+ Predicate notEqual(Expression<?> x, Expression<?> y);
+
+ Predicate notEqual(Expression<?> x, Object y);
+
+
+ //comparisons for generic (non-numeric) operands:
+
+ <Y extends Comparable<? super Y>> Predicate greaterThan(Expression<? extends Y> x, Expression<? extends Y> y);
+
+ <Y extends Comparable<? super Y>> Predicate greaterThan(Expression<? extends Y> x, Y y);
+
+ <Y extends Comparable<? super Y>> Predicate greaterThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y);
+
+ <Y extends Comparable<? super Y>> Predicate greaterThanOrEqualTo(Expression<? extends Y> x, Y y);
+
+ <Y extends Comparable<? super Y>> Predicate lessThan(Expression<? extends Y> x, Expression<? extends Y> y);
+
+ <Y extends Comparable<? super Y>> Predicate lessThan(Expression<? extends Y> x, Y y);
+
+ <Y extends Comparable<? super Y>> Predicate lessThanOrEqualTo(Expression<? extends Y> x, Expression<? extends Y> y);
+
+ <Y extends Comparable<? super Y>> Predicate lessThanOrEqualTo(Expression<? extends Y> x, Y y);
+
+ <Y extends Comparable<? super Y>> Predicate between(Expression<? extends Y> v, Expression<? extends Y> x, Expression<? extends Y> y);
+
+ <Y extends Comparable<? super Y>> Predicate between(Expression<? extends Y> v, Y x, Y y);
+
+
+ //comparisons for numeric operands:
+
+ Predicate gt(Expression<? extends Number> x, Expression<? extends Number> y);
+
+ Predicate gt(Expression<? extends Number> x, Number y);
+
+ Predicate ge(Expression<? extends Number> x, Expression<? extends Number> y);
+
+ Predicate ge(Expression<? extends Number> x, Number y);
+
+ Predicate lt(Expression<? extends Number> x, Expression<? extends Number> y);
+
+ Predicate lt(Expression<? extends Number> x, Number y);
+
+ Predicate le(Expression<? extends Number> x, Expression<? extends Number> y);
+
+ Predicate le(Expression<? extends Number> x, Number y);
+
+
+ //numerical operations:
+
+ <N extends Number> Expression<N> neg(Expression<N> x);
+
+ <N extends Number> Expression<N> abs(Expression<N> x);
+
+ <N extends Number> Expression<N> sum(Expression<? extends N> x, Expression<? extends N> y);
+
+ <N extends Number> Expression<N> sum(Expression<? extends N> x, N y);
+
+ <N extends Number> Expression<N> sum(N x, Expression<? extends N> y);
+
+ <N extends Number> Expression<N> prod(Expression<? extends N> x, Expression<? extends N> y);
+
+ <N extends Number> Expression<N> prod(Expression<? extends N> x, N y);
+
+ <N extends Number> Expression<N> prod(N x, Expression<? extends N> y);
+
+ <N extends Number> Expression<N> diff(Expression<? extends N> x, Expression<? extends N> y);
+
+ <N extends Number> Expression<N> diff(Expression<? extends N> x, N y);
+
+ <N extends Number> Expression<N> diff(N x, Expression<? extends N> y);
+
+ Expression<Number> quot(Expression<? extends Number> x, Expression<? extends Number> y);
+
+ Expression<Number> quot(Expression<? extends Number> x, Number y);
+
+ Expression<Number> quot(Number x, Expression<? extends Number> y);
+
+ Expression<Integer> mod(Expression<Integer> x, Expression<Integer> y);
+
+ Expression<Integer> mod(Expression<Integer> x, Integer y);
+
+ Expression<Integer> mod(Integer x, Expression<Integer> y);
+
+ Expression<Double> sqrt(Expression<? extends Number> x);
+
+
+ //typecasts:
+
+ Expression<Long> toLong(Expression<? extends Number> number);
+
+ Expression<Integer> toInteger(Expression<? extends Number> number);
+
+ Expression<Float> toFloat(Expression<? extends Number> number);
+
+ Expression<Double> toDouble(Expression<? extends Number> number);
+
+ Expression<BigDecimal> toBigDecimal(Expression<? extends Number> number);
+
+ Expression<BigInteger> toBigInteger(Expression<? extends Number> number);
+
+ Expression<String> toString(Expression<Character> character);
+
+
+ //literals:
+
+ <T> Expression<T> literal(T value);
+
+ <T> Expression<T> nullLiteral(Class<T> resultClass);
+
+ //parameters:
+
+ <T> ParameterExpression<T> parameter(Class<T> paramClass);
+
+ <T> ParameterExpression<T> parameter(Class<T> paramClass, String name);
+
+
+ //collection operations:
+
+ <C extends Collection<?>> Predicate isEmpty(Expression<C> collection);
+
+ <C extends Collection<?>> Predicate isNotEmpty(Expression<C> collection);
+
+ <C extends java.util.Collection<?>> Expression<Integer> size(Expression<C> collection);
+
+ <C extends Collection<?>> Expression<Integer> size(C collection);
+
+ <E, C extends Collection<E>> Predicate isMember(Expression<E> elem, Expression<C> collection);
+
+ <E, C extends Collection<E>> Predicate isMember(E elem, Expression<C> collection);
+
+ <E, C extends Collection<E>> Predicate isNotMember(Expression<E> elem, Expression<C> collection);
+
+ <E, C extends Collection<E>> Predicate isNotMember(E elem, Expression<C> collection);
+
+
+ //get the values and keys collections of the Map, which may then
+ //be passed to size(), isMember(), isEmpty(), etc
+
+ <V, M extends Map<?, V>> Expression<Collection<V>> values(M map);
+
+ <K, M extends Map<K, ?>> Expression<Set<K>> keys(M map);
+
+
+ //string functions:
+
+ Predicate like(Expression<String> x, Expression<String> pattern);
+
+ Predicate like(Expression<String> x, String pattern);
+
+ Predicate like(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar);
+
+ Predicate like(Expression<String> x, Expression<String> pattern, char escapeChar);
+
+ Predicate like(Expression<String> x, String pattern, Expression<Character> escapeChar);
+
+ Predicate like(Expression<String> x, String pattern, char escapeChar);
+
+ Predicate notLike(Expression<String> x, Expression<String> pattern);
+
+ Predicate notLike(Expression<String> x, String pattern);
+
+ Predicate notLike(Expression<String> x, Expression<String> pattern, Expression<Character> escapeChar);
+
+ Predicate notLike(Expression<String> x, Expression<String> pattern, char escapeChar);
+
+ Predicate notLike(Expression<String> x, String pattern, Expression<Character> escapeChar);
+
+ Predicate notLike(Expression<String> x, String pattern, char escapeChar);
+
+ Expression<String> concat(Expression<String> x, Expression<String> y);
+
+ Expression<String> concat(Expression<String> x, String y);
+
+ Expression<String> concat(String x, Expression<String> y);
+
+ Expression<String> substring(Expression<String> x, Expression<Integer> from);
+
+ Expression<String> substring(Expression<String> x, int from);
+
+ Expression<String> substring(Expression<String> x, Expression<Integer> from, Expression<Integer> len);
+
+ Expression<String> substring(Expression<String> x, int from, int len);
+
+ public static enum Trimspec {
+
+ LEADING,
+
+ TRAILING,
+
+ BOTH
+ }
+
+ Expression<String> trim(Expression<String> x);
+
+ Expression<String> trim(Trimspec ts, Expression<String> x);
+
+ Expression<String> trim(Expression<Character> t, Expression<String> x);
+
+ Expression<String> trim(Trimspec ts, Expression<Character> t, Expression<String> x);
+
+ Expression<String> trim(char t, Expression<String> x);
+
+ Expression<String> trim(Trimspec ts, char t, Expression<String> x);
+
+ Expression<String> lower(Expression<String> x);
+
+ Expression<String> upper(Expression<String> x);
+
+ Expression<Integer> length(Expression<String> x);
+
+
+ Expression<Integer> locate(Expression<String> x, Expression<String> pattern);
+
+ Expression<Integer> locate(Expression<String> x, String pattern);
+
+ Expression<Integer> locate(Expression<String> x, Expression<String> pattern, Expression<Integer> from);
+
+ Expression<Integer> locate(Expression<String> x, String pattern, int from);
+
+
+ // Date/time/timestamp functions:
+
+ Expression<java.sql.Date> currentDate();
+
+ Expression<java.sql.Timestamp> currentTimestamp();
+
+ Expression<java.sql.Time> currentTime();
+
+
+ //in builders:
+
+ public static interface In<T> extends Predicate {
+
+ Expression<T> getExpression();
+
+ In<T> value(T value);
+
+ In<T> value(Expression<? extends T> value);
+ }
+
+ <T> In<T> in(Expression<? extends T> expression);
+
+
+ // coalesce, nullif:
+
+ <Y> Expression<Y> coalesce(Expression<? extends Y> x, Expression<? extends Y> y);
+
+ <Y> Expression<Y> coalesce(Expression<? extends Y> x, Y y);
+
+ <Y> Expression<Y> nullif(Expression<Y> x, Expression<?> y);
+
+ <Y> Expression<Y> nullif(Expression<Y> x, Y y);
+
+
+ // coalesce builder:
+
+ public static interface Coalesce<T> extends Expression<T> {
+
+ Coalesce<T> value(T value);
+
+ Coalesce<T> value(Expression<? extends T> value);
+ }
+
+ <T> Coalesce<T> coalesce();
+
+
+ //case builders:
+
+ public static interface SimpleCase<C,R> extends Expression<R> {
+
+ Expression<C> getExpression();
+
+ SimpleCase<C, R> when(C condition, R result);
+
+ SimpleCase<C, R> when(C condition, Expression<? extends R> result);
+
+ Expression<R> otherwise(R result);
+
+ Expression<R> otherwise(Expression<? extends R> result);
+ }
+
+ <C, R> SimpleCase<C,R> selectCase(Expression<? extends C> expression);
+
+
+ public static interface Case<R> extends Expression<R> {
+
+ Case<R> when(Expression<Boolean> condition, R result);
+
+ Case<R> when(Expression<Boolean> condition, Expression<? extends R> result);
+
+ Expression<R> otherwise(R result);
+
+ Expression<R> otherwise(Expression<? extends R> result);
+ }
+
+ <R> Case<R> selectCase();
+
+ <T> Expression<T> function(String name, Class<T> type,
+Expression<?>... args);
+
+
+ // methods for downcasting:
+
+ <X, T, V extends T> Join<X, V> treat(Join<X, T> join, Class<V> type);
+
+ <X, T, E extends T> CollectionJoin<X, E> treat(CollectionJoin<X, T> join, Class<E> type);
+
+ <X, T, E extends T> SetJoin<X, E> treat(SetJoin<X, T> join, Class<E> type);
+
+ <X, T, E extends T> ListJoin<X, E> treat(ListJoin<X, T> join, Class<E> type);
+
+ <X, K, T, V extends T> MapJoin<X, K, V> treat(MapJoin<X, K, T> join, Class<V> type);
+
+
+ <X, T extends X> Path<T> treat(Path<X> path, Class<T> type);
+
+ <X, T extends X> Root<T> treat(Root<X> root, Class<T> type);
+
+}
+
+
+
+
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaDelete.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaDelete.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaDelete.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaDelete.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.EntityType;
+
+public interface CriteriaDelete<T> extends CommonAbstractCriteria {
+
+ Root<T> from(Class<T> entityClass);
+
+ Root<T> from(EntityType<T> entity);
+
+ Root<T> getRoot();
+
+ CriteriaDelete<T> where(Expression<Boolean> restriction);
+
+ CriteriaDelete<T> where(Predicate... restrictions);
+
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaQuery.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaQuery.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaQuery.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaQuery.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import java.util.List;
+import java.util.Set;
+
+
+public interface CriteriaQuery<T> extends AbstractQuery<T> {
+
+ CriteriaQuery<T> select(Selection<? extends T> selection);
+
+ CriteriaQuery<T> multiselect(Selection<?>... selections);
+
+ CriteriaQuery<T> multiselect(List<Selection<?>> selectionList);
+
+ CriteriaQuery<T> where(Expression<Boolean> restriction);
+
+ CriteriaQuery<T> where(Predicate... restrictions);
+
+ CriteriaQuery<T> groupBy(Expression<?>... grouping);
+
+ CriteriaQuery<T> groupBy(List<Expression<?>> grouping);
+
+ CriteriaQuery<T> having(Expression<Boolean> restriction);
+
+ CriteriaQuery<T> having(Predicate... restrictions);
+
+ CriteriaQuery<T> orderBy(Order... o);
+
+ CriteriaQuery<T> orderBy(List<Order> o);
+
+ CriteriaQuery<T> distinct(boolean distinct);
+
+ List<Order> getOrderList();
+
+ Set<ParameterExpression<?>> getParameters();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaUpdate.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaUpdate.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaUpdate.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/CriteriaUpdate.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.SingularAttribute;
+import javax.persistence.metamodel.EntityType;
+
+public interface CriteriaUpdate<T> extends CommonAbstractCriteria {
+
+ Root<T> from(Class<T> entityClass);
+
+ Root<T> from(EntityType<T> entity);
+
+ Root<T> getRoot();
+
+ <Y, X extends Y> CriteriaUpdate<T> set(SingularAttribute<? super T, Y> attribute, X value);
+
+ <Y> CriteriaUpdate<T> set(SingularAttribute<? super T, Y> attribute, Expression<? extends Y> value);
+
+ <Y, X extends Y> CriteriaUpdate<T> set(Path<Y> attribute, X value);
+
+ <Y> CriteriaUpdate<T> set(Path<Y> attribute, Expression<? extends Y> value);
+
+ CriteriaUpdate<T> set(String attributeName, Object value);
+
+ CriteriaUpdate<T> where(Expression<Boolean> restriction);
+
+ CriteriaUpdate<T> where(Predicate... restrictions);
+ }
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Expression.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Expression.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Expression.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Expression.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import java.util.Collection;
+
+
+public interface Expression<T> extends Selection<T> {
+
+ Predicate isNull();
+
+ Predicate isNotNull();
+
+ Predicate in(Object... values);
+
+ Predicate in(Expression<?>... values);
+
+ Predicate in(Collection<?> values);
+
+ Predicate in(Expression<Collection<?>> values);
+
+ <X> Expression<X> as(Class<X> type);
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Fetch.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Fetch.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Fetch.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Fetch.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.Attribute;
+
+
+public interface Fetch<Z, X> extends FetchParent<Z, X> {
+
+ Attribute<? super Z, ?> getAttribute();
+
+ FetchParent<?, Z> getParent();
+
+ JoinType getJoinType();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/FetchParent.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/FetchParent.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/FetchParent.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/FetchParent.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.PluralAttribute;
+import javax.persistence.metamodel.SingularAttribute;
+
+
+public interface FetchParent<Z, X> {
+
+ java.util.Set<Fetch<X, ?>> getFetches();
+
+ <Y> Fetch<X, Y> fetch(SingularAttribute<? super X, Y> attribute);
+
+ <Y> Fetch<X, Y> fetch(SingularAttribute<? super X, Y> attribute, JoinType jt);
+
+ <Y> Fetch<X, Y> fetch(PluralAttribute<? super X, ?, Y> attribute);
+
+ <Y> Fetch<X, Y> fetch(PluralAttribute<? super X, ?, Y> attribute, JoinType jt);
+
+ @SuppressWarnings("hiding")
+ <X, Y> Fetch<X, Y> fetch(String attributeName);
+
+ @SuppressWarnings("hiding")
+ <X, Y> Fetch<X, Y> fetch(String attributeName, JoinType jt);
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/From.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/From.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/From.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/From.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.SingularAttribute;
+import javax.persistence.metamodel.CollectionAttribute;
+import javax.persistence.metamodel.ListAttribute;
+import javax.persistence.metamodel.MapAttribute;
+import javax.persistence.metamodel.SetAttribute;
+import java.util.Set;
+
+
+@SuppressWarnings("hiding")
+public interface From<Z, X> extends Path<X>, FetchParent<Z, X> {
+
+ Set<Join<X, ?>> getJoins();
+ boolean isCorrelated();
+
+ From<Z, X> getCorrelationParent();
+
+ <Y> Join<X, Y> join(SingularAttribute<? super X, Y> attribute);
+
+ <Y> Join<X, Y> join(SingularAttribute<? super X, Y> attribute, JoinType jt);
+
+ <Y> CollectionJoin<X, Y> join(CollectionAttribute<? super X, Y> collection);
+
+ <Y> SetJoin<X, Y> join(SetAttribute<? super X, Y> set);
+
+ <Y> ListJoin<X, Y> join(ListAttribute<? super X, Y> list);
+
+ <K, V> MapJoin<X, K, V> join(MapAttribute<? super X, K, V> map);
+
+ <Y> CollectionJoin<X, Y> join(CollectionAttribute<? super X, Y> collection, JoinType jt);
+
+ <Y> SetJoin<X, Y> join(SetAttribute<? super X, Y> set, JoinType jt);
+
+ <Y> ListJoin<X, Y> join(ListAttribute<? super X, Y> list, JoinType jt);
+
+ <K, V> MapJoin<X, K, V> join(MapAttribute<? super X, K, V> map, JoinType jt);
+
+ <X, Y> Join<X, Y> join(String attributeName);
+
+ <X, Y> CollectionJoin<X, Y> joinCollection(String attributeName);
+
+ <X, Y> SetJoin<X, Y> joinSet(String attributeName);
+
+ <X, Y> ListJoin<X, Y> joinList(String attributeName);
+
+ <X, K, V> MapJoin<X, K, V> joinMap(String attributeName);
+
+ <X, Y> Join<X, Y> join(String attributeName, JoinType jt);
+
+ <X, Y> CollectionJoin<X, Y> joinCollection(String attributeName, JoinType jt);
+
+ <X, Y> SetJoin<X, Y> joinSet(String attributeName, JoinType jt);
+
+ <X, Y> ListJoin<X, Y> joinList(String attributeName, JoinType jt);
+
+ <X, K, V> MapJoin<X, K, V> joinMap(String attributeName, JoinType jt);
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Join.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Join.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Join.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Join.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.Attribute;
+
+public interface Join<Z, X> extends From<Z, X> {
+
+ Join<Z, X> on(Expression<Boolean> restriction);
+
+ Join<Z, X> on(Predicate... restrictions);
+
+ Predicate getOn();
+
+ Attribute<? super Z, ?> getAttribute();
+
+ From<?, Z> getParent();
+
+ JoinType getJoinType();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/JoinType.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/JoinType.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/JoinType.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/JoinType.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+
+public enum JoinType {
+
+ INNER,
+
+ LEFT,
+
+ RIGHT
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/ListJoin.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/ListJoin.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/ListJoin.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/ListJoin.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.persistence.criteria;
+
+import java.util.List;
+import javax.persistence.metamodel.ListAttribute;
+
+public interface ListJoin<Z, E>
+ extends PluralJoin<Z, List<E>, E> {
+
+ ListJoin<Z, E> on(Expression<Boolean> restriction);
+
+ ListJoin<Z, E> on(Predicate... restrictions);
+
+ ListAttribute<? super Z, E> getModel();
+
+ Expression<Integer> index();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/MapJoin.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/MapJoin.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/MapJoin.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/MapJoin.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.persistence.criteria;
+
+import java.util.Map;
+import javax.persistence.metamodel.MapAttribute;
+
+public interface MapJoin<Z, K, V>
+ extends PluralJoin<Z, Map<K, V>, V> {
+
+ MapJoin<Z, K, V> on(Expression<Boolean> restriction);
+
+ MapJoin<Z, K, V> on(Predicate... restrictions);
+
+ MapAttribute<? super Z, K, V> getModel();
+
+ Path<K> key();
+
+ Path<V> value();
+
+ Expression<Map.Entry<K, V>> entry();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Order.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Order.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Order.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Order.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+
+public interface Order {
+
+ Order reverse();
+
+ boolean isAscending();
+
+ Expression<?> getExpression();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/ParameterExpression.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/ParameterExpression.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/ParameterExpression.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/ParameterExpression.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.Parameter;
+
+
+
+public interface ParameterExpression<T> extends Parameter<T>, Expression<T> {}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Path.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Path.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Path.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Path.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.PluralAttribute;
+import javax.persistence.metamodel.SingularAttribute;
+import javax.persistence.metamodel.Bindable;
+import javax.persistence.metamodel.MapAttribute;
+
+
+public interface Path<X> extends Expression<X> {
+
+ Bindable<X> getModel();
+
+ Path<?> getParentPath();
+
+ <Y> Path<Y> get(SingularAttribute<? super X, Y> attribute);
+
+ <E, C extends java.util.Collection<E>> Expression<C> get(PluralAttribute<X, C, E> collection);
+
+ <K, V, M extends java.util.Map<K, V>> Expression<M> get(MapAttribute<X, K, V> map);
+
+ Expression<Class<? extends X>> type();
+
+ <Y> Path<Y> get(String attributeName);
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/PluralJoin.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/PluralJoin.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/PluralJoin.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/PluralJoin.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.PluralAttribute;
+
+
+public interface PluralJoin<Z, C, E> extends Join<Z, E> {
+
+ PluralAttribute<? super Z, C, E> getModel();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Predicate.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Predicate.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Predicate.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Predicate.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import java.util.List;
+
+
+public interface Predicate extends Expression<Boolean> {
+
+ public static enum BooleanOperator {
+ AND, OR
+ }
+
+ BooleanOperator getOperator();
+
+ boolean isNegated();
+
+ List<Expression<Boolean>> getExpressions();
+
+ Predicate not();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Root.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Root.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Root.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Root.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.metamodel.EntityType;
+
+
+public interface Root<X> extends From<X, X> {
+
+ EntityType<X> getModel();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Selection.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Selection.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Selection.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Selection.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
+
+import javax.persistence.TupleElement;
+import java.util.List;
+
+
+public interface Selection<X> extends TupleElement<X> {
+
+ Selection<X> alias(String name);
+
+ boolean isCompoundSelection();
+
+ List<Selection<?>> getCompoundSelectionItems();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/SetJoin.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/SetJoin.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/SetJoin.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/SetJoin.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.persistence.criteria;
+
+import java.util.Set;
+import javax.persistence.metamodel.SetAttribute;
+
+public interface SetJoin<Z, E> extends PluralJoin<Z, Set<E>, E> {
+
+ SetJoin<Z, E> on(Expression<Boolean> restriction);
+
+ SetJoin<Z, E> on(Predicate... restrictions);
+
+ SetAttribute<? super Z, E> getModel();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Subquery.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Subquery.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Subquery.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/Subquery.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.persistence.criteria;
+
+import java.util.List;
+import java.util.Set;
+
+public interface Subquery<T> extends AbstractQuery<T>, Expression<T> {
+
+ Subquery<T> select(Expression<T> expression);
+
+ Subquery<T> where(Expression<Boolean> restriction);
+
+ Subquery<T> where(Predicate... restrictions);
+
+ Subquery<T> groupBy(Expression<?>... grouping);
+
+ Subquery<T> groupBy(List<Expression<?>> grouping);
+
+ Subquery<T> having(Expression<Boolean> restriction);
+
+ Subquery<T> having(Predicate... restrictions);
+
+ Subquery<T> distinct(boolean distinct);
+
+ <Y> Root<Y> correlate(Root<Y> parentRoot);
+
+ <X, Y> Join<X, Y> correlate(Join<X, Y> parentJoin);
+
+ <X, Y> CollectionJoin<X, Y> correlate(CollectionJoin<X, Y> parentCollection);
+
+ <X, Y> SetJoin<X, Y> correlate(SetJoin<X, Y> parentSet);
+
+ <X, Y> ListJoin<X, Y> correlate(ListJoin<X, Y> parentList);
+
+ <X, K, V> MapJoin<X, K, V> correlate(MapJoin<X, K, V> parentMap);
+
+ AbstractQuery<?> getParent();
+
+ CommonAbstractCriteria getContainingQuery();
+
+ Expression<T> getSelection();
+
+ Set<Join<?, ?>> getCorrelatedJoins();
+
+}
+
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/package-info.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/package-info.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/package-info.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/criteria/package-info.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.criteria;
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Attribute.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Attribute.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Attribute.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Attribute.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface Attribute<X, Y> {
+
+ public static enum PersistentAttributeType {
+
+ MANY_TO_ONE,
+
+ ONE_TO_ONE,
+
+ BASIC,
+
+ EMBEDDED,
+
+ MANY_TO_MANY,
+
+ ONE_TO_MANY,
+
+ ELEMENT_COLLECTION
+ }
+
+ String getName();
+
+ PersistentAttributeType getPersistentAttributeType();
+
+ ManagedType<X> getDeclaringType();
+
+ Class<Y> getJavaType();
+
+ java.lang.reflect.Member getJavaMember();
+
+ boolean isAssociation();
+
+ boolean isCollection();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/BasicType.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/BasicType.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/BasicType.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/BasicType.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface BasicType<X> extends Type<X> {}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Bindable.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Bindable.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Bindable.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Bindable.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface Bindable<T> {
+ public static enum BindableType {
+
+ SINGULAR_ATTRIBUTE,
+
+ PLURAL_ATTRIBUTE,
+
+ ENTITY_TYPE
+ }
+
+ BindableType getBindableType();
+
+ Class<T> getBindableJavaType();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/CollectionAttribute.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/CollectionAttribute.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/CollectionAttribute.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/CollectionAttribute.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface CollectionAttribute<X, E>
+ extends PluralAttribute<X, java.util.Collection<E>, E> {}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/EmbeddableType.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/EmbeddableType.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/EmbeddableType.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/EmbeddableType.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface EmbeddableType<X> extends ManagedType<X> {}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/EntityType.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/EntityType.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/EntityType.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/EntityType.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface EntityType<X>
+ extends IdentifiableType<X>, Bindable<X>{
+
+ String getName();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/IdentifiableType.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/IdentifiableType.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/IdentifiableType.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/IdentifiableType.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+import java.util.Set;
+
+
+public interface IdentifiableType<X> extends ManagedType<X> {
+ <Y> SingularAttribute<? super X, Y> getId(Class<Y> type);
+
+ <Y> SingularAttribute<X, Y> getDeclaredId(Class<Y> type);
+
+ <Y> SingularAttribute<? super X, Y> getVersion(Class<Y> type);
+
+ <Y> SingularAttribute<X, Y> getDeclaredVersion(Class<Y> type);
+
+ IdentifiableType<? super X> getSupertype();
+
+ boolean hasSingleIdAttribute();
+
+ boolean hasVersionAttribute();
+
+ Set<SingularAttribute<? super X, ?>> getIdClassAttributes();
+
+ Type<?> getIdType();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/ListAttribute.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/ListAttribute.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/ListAttribute.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/ListAttribute.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface ListAttribute<X, E>
+ extends PluralAttribute<X, java.util.List<E>, E> {}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/ManagedType.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/ManagedType.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/ManagedType.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/ManagedType.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,92 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+import java.util.Set;
+
+
+public interface ManagedType<X> extends Type<X> {
+
+ Set<Attribute<? super X, ?>> getAttributes();
+
+ Set<Attribute<X, ?>> getDeclaredAttributes();
+
+ <Y> SingularAttribute<? super X, Y> getSingularAttribute(String name, Class<Y> type);
+
+ <Y> SingularAttribute<X, Y> getDeclaredSingularAttribute(String name, Class<Y> type);
+
+ Set<SingularAttribute<? super X, ?>> getSingularAttributes();
+
+ Set<SingularAttribute<X, ?>> getDeclaredSingularAttributes();
+
+ <E> CollectionAttribute<? super X, E> getCollection(String name, Class<E> elementType);
+
+ <E> CollectionAttribute<X, E> getDeclaredCollection(String name, Class<E> elementType);
+
+ <E> SetAttribute<? super X, E> getSet(String name, Class<E> elementType);
+
+ <E> SetAttribute<X, E> getDeclaredSet(String name, Class<E> elementType);
+
+ <E> ListAttribute<? super X, E> getList(String name, Class<E> elementType);
+
+ <E> ListAttribute<X, E> getDeclaredList(String name, Class<E> elementType);
+
+ <K, V> MapAttribute<? super X, K, V> getMap(String name,
+ Class<K> keyType,
+ Class<V> valueType);
+
+ <K, V> MapAttribute<X, K, V> getDeclaredMap(String name,
+ Class<K> keyType,
+ Class<V> valueType);
+ Set<PluralAttribute<? super X, ?, ?>> getPluralAttributes();
+
+ Set<PluralAttribute<X, ?, ?>> getDeclaredPluralAttributes();
+
+
+ Attribute<? super X, ?> getAttribute(String name);
+
+ Attribute<X, ?> getDeclaredAttribute(String name);
+
+ SingularAttribute<? super X, ?> getSingularAttribute(String name);
+
+ SingularAttribute<X, ?> getDeclaredSingularAttribute(String name);
+
+ CollectionAttribute<? super X, ?> getCollection(String name);
+
+ CollectionAttribute<X, ?> getDeclaredCollection(String name);
+
+ SetAttribute<? super X, ?> getSet(String name);
+
+ SetAttribute<X, ?> getDeclaredSet(String name);
+
+ ListAttribute<? super X, ?> getList(String name);
+
+ ListAttribute<X, ?> getDeclaredList(String name);
+
+ MapAttribute<? super X, ?, ?> getMap(String name);
+
+ MapAttribute<X, ?, ?> getDeclaredMap(String name);
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/MapAttribute.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/MapAttribute.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/MapAttribute.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/MapAttribute.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface MapAttribute<X, K, V>
+ extends PluralAttribute<X, java.util.Map<K, V>, V> {
+
+ Class<K> getKeyJavaType();
+
+ Type<K> getKeyType();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/MappedSuperclassType.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/MappedSuperclassType.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/MappedSuperclassType.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/MappedSuperclassType.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+
+package javax.persistence.metamodel;
+
+
+public interface MappedSuperclassType<X> extends IdentifiableType<X> {}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Metamodel.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Metamodel.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Metamodel.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/Metamodel.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+import java.util.Set;
+
+
+public interface Metamodel {
+
+ <X> EntityType<X> entity(Class<X> cls);
+
+ <X> ManagedType<X> managedType(Class<X> cls);
+
+ <X> EmbeddableType<X> embeddable(Class<X> cls);
+
+ Set<ManagedType<?>> getManagedTypes();
+
+ Set<EntityType<?>> getEntities();
+
+ Set<EmbeddableType<?>> getEmbeddables();
+}
Added: tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/PluralAttribute.java
URL: http://svn.apache.org/viewvc/tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/PluralAttribute.java?rev=1685549&view=auto
==============================================================================
--- tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/PluralAttribute.java (added)
+++ tomee/deps/branches/geronimo-jpa_2.1_spec/src/main/java/javax/persistence/metamodel/PluralAttribute.java Mon Jun 15 11:22:35 2015
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.
+ */
+
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+
+package javax.persistence.metamodel;
+
+
+public interface PluralAttribute<X, C, E>
+ extends Attribute<X, C>, Bindable<E> {
+ public static enum CollectionType {
+
+ COLLECTION,
+
+ SET,
+
+ LIST,
+
+ MAP
+ }
+ CollectionType getCollectionType();
+
+ Type<E> getElementType();
+}