001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.dao.orm.jpa;
016    
017    import com.liferay.portal.kernel.dao.orm.Conjunction;
018    import com.liferay.portal.kernel.dao.orm.Criterion;
019    import com.liferay.portal.kernel.dao.orm.Disjunction;
020    import com.liferay.portal.kernel.dao.orm.RestrictionsFactory;
021    import com.liferay.portal.kernel.dao.orm.Type;
022    import com.liferay.portal.kernel.security.pacl.DoPrivileged;
023    
024    import java.util.Collection;
025    import java.util.Map;
026    
027    /**
028     * @author Prashant Dighe
029     * @author Brian Wing Shun Chan
030     */
031    @DoPrivileged
032    public class RestrictionsFactoryImpl implements RestrictionsFactory {
033    
034            @Override
035            public Criterion allEq(Map<String, Criterion> propertyNameValues) {
036                    throw new UnsupportedOperationException();
037            }
038    
039            @Override
040            public Criterion and(Criterion lhs, Criterion rhs) {
041                    throw new UnsupportedOperationException();
042            }
043    
044            @Override
045            public Criterion between(String propertyName, Object lo, Object hi) {
046                    throw new UnsupportedOperationException();
047            }
048    
049            @Override
050            public Conjunction conjunction() {
051                    throw new UnsupportedOperationException();
052            }
053    
054            @Override
055            public Disjunction disjunction() {
056                    throw new UnsupportedOperationException();
057            }
058    
059            @Override
060            public Criterion eq(String propertyName, Object value) {
061                    throw new UnsupportedOperationException();
062            }
063    
064            @Override
065            public Criterion eqProperty(String propertyName, String otherPropertyName) {
066                    throw new UnsupportedOperationException();
067            }
068    
069            @Override
070            public Criterion ge(String propertyName, Object value) {
071                    throw new UnsupportedOperationException();
072            }
073    
074            @Override
075            public Criterion geProperty(String propertyName, String otherPropertyName) {
076                    throw new UnsupportedOperationException();
077            }
078    
079            @Override
080            public Criterion gt(String propertyName, Object value) {
081                    throw new UnsupportedOperationException();
082            }
083    
084            @Override
085            public Criterion gtProperty(String propertyName, String otherPropertyName) {
086                    throw new UnsupportedOperationException();
087            }
088    
089            @Override
090            public Criterion ilike(String propertyName, Object value) {
091                    throw new UnsupportedOperationException();
092            }
093    
094            @Override
095            public Criterion in(String propertyName, Collection<?> values) {
096                    throw new UnsupportedOperationException();
097            }
098    
099            @Override
100            public Criterion in(String propertyName, Object[] values) {
101                    throw new UnsupportedOperationException();
102            }
103    
104            @Override
105            public Criterion isEmpty(String propertyName) {
106                    throw new UnsupportedOperationException();
107            }
108    
109            @Override
110            public Criterion isNotEmpty(String propertyName) {
111                    throw new UnsupportedOperationException();
112            }
113    
114            @Override
115            public Criterion isNotNull(String propertyName) {
116                    throw new UnsupportedOperationException();
117            }
118    
119            @Override
120            public Criterion isNull(String propertyName) {
121                    throw new UnsupportedOperationException();
122            }
123    
124            @Override
125            public Criterion le(String propertyName, Object value) {
126                    throw new UnsupportedOperationException();
127            }
128    
129            @Override
130            public Criterion leProperty(String propertyName, String otherPropertyName) {
131                    throw new UnsupportedOperationException();
132            }
133    
134            @Override
135            public Criterion like(String propertyName, Object value) {
136                    throw new UnsupportedOperationException();
137            }
138    
139            @Override
140            public Criterion lt(String propertyName, Object value) {
141                    throw new UnsupportedOperationException();
142            }
143    
144            @Override
145            public Criterion ltProperty(String propertyName, String otherPropertyName) {
146                    throw new UnsupportedOperationException();
147            }
148    
149            @Override
150            public Criterion ne(String propertyName, Object value) {
151                    throw new UnsupportedOperationException();
152            }
153    
154            @Override
155            public Criterion neProperty(String propertyName, String otherPropertyName) {
156                    throw new UnsupportedOperationException();
157            }
158    
159            @Override
160            public Criterion not(Criterion expression) {
161                    throw new UnsupportedOperationException();
162            }
163    
164            @Override
165            public Criterion or(Criterion lhs, Criterion rhs) {
166                    throw new UnsupportedOperationException();
167            }
168    
169            @Override
170            public Criterion sizeEq(String propertyName, int size) {
171                    throw new UnsupportedOperationException();
172            }
173    
174            @Override
175            public Criterion sizeGe(String propertyName, int size) {
176                    throw new UnsupportedOperationException();
177            }
178    
179            @Override
180            public Criterion sizeGt(String propertyName, int size) {
181                    throw new UnsupportedOperationException();
182            }
183    
184            @Override
185            public Criterion sizeLe(String propertyName, int size) {
186                    throw new UnsupportedOperationException();
187            }
188    
189            @Override
190            public Criterion sizeLt(String propertyName, int size) {
191                    throw new UnsupportedOperationException();
192            }
193    
194            @Override
195            public Criterion sizeNe(String propertyName, int size) {
196                    throw new UnsupportedOperationException();
197            }
198    
199            @Override
200            public Criterion sqlRestriction(String sql) {
201                    throw new UnsupportedOperationException();
202            }
203    
204            @Override
205            public Criterion sqlRestriction(String sql, Object value, Type type) {
206                    throw new UnsupportedOperationException();
207            }
208    
209            @Override
210            public Criterion sqlRestriction(String sql, Object[] values, Type[] types) {
211                    throw new UnsupportedOperationException();
212            }
213    
214    }