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.portlet.dynamicdatamapping.storage.query;
016    
017    /**
018     * @author Michael C. Han
019     */
020    public enum ComparisonOperator {
021    
022            EQUALS("="), EXCLUDES(" EXCLUDES "), GREATER_THAN(">"),
023            GREATER_THAN_OR_EQUAL_TO(">="), IN(" IN "), INCLUDES(" INCLUDES "),
024            JOIN(" = "), LESS_THAN("<"), LESS_THAN_OR_EQUAL_TO("<="), LIKE(" LIKE "),
025            NOT_EQUALS("!="), NOT_IN(" NOT IN ");
026    
027            public String getValue() {
028                    return _value;
029            }
030    
031            @Override
032            public String toString() {
033                    return _value;
034            }
035    
036            private ComparisonOperator(String value) {
037                    _value = value;
038            }
039    
040            private String _value;
041    
042    }