亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? criteria.java

?? 另外一種持久性o/m軟件
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
package org.apache.torque.util;/* * Copyright 2001-2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *     http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */import java.io.Serializable;import java.lang.reflect.Array;import java.math.BigDecimal;import java.util.ArrayList;import java.util.Arrays;import java.util.GregorianCalendar;import java.util.HashMap;import java.util.Hashtable;import java.util.Iterator;import java.util.List;import java.util.Map;import org.apache.commons.collections.OrderedMap;import org.apache.commons.collections.map.ListOrderedMap;import org.apache.commons.lang.StringUtils;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.apache.torque.Torque;import org.apache.torque.adapter.DB;import org.apache.torque.om.DateKey;import org.apache.torque.om.ObjectKey;/** * This is a utility class that is used for retrieving different types * of values from a hashtable based on a simple name string.  This * class is meant to minimize the amount of casting that needs to be * done when working with Hashtables. * * NOTE: other methods will be added as needed and as time permits. * * @author <a href="mailto:frank.kim@clearink.com">Frank Y. Kim</a> * @author <a href="mailto:jmcnally@collab.net">John D. McNally</a> * @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a> * @author <a href="mailto:eric@dobbse.net">Eric Dobbs</a> * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a> * @author <a href="mailto:sam@neurogrid.com">Sam Joseph</a> * @author <a href="mailto:mpoeschl@marmot.at">Martin Poeschl</a> * @author <a href="mailto:fischer@seitenbau.de">Thomas Fischer</a> * @version $Id: Criteria.java,v 1.47 2005/07/02 15:22:32 tfischer Exp $ */public class Criteria extends Hashtable{    /** Comparison type. */    public static final SqlEnum EQUAL = SqlEnum.EQUAL;    /** Comparison type. */    public static final SqlEnum NOT_EQUAL = SqlEnum.NOT_EQUAL;    /** Comparison type. */    public static final SqlEnum ALT_NOT_EQUAL = SqlEnum.ALT_NOT_EQUAL;    /** Comparison type. */    public static final SqlEnum GREATER_THAN = SqlEnum.GREATER_THAN;    /** Comparison type. */    public static final SqlEnum LESS_THAN = SqlEnum.LESS_THAN;    /** Comparison type. */    public static final SqlEnum GREATER_EQUAL = SqlEnum.GREATER_EQUAL;    /** Comparison type. */    public static final SqlEnum LESS_EQUAL = SqlEnum.LESS_EQUAL;    /** Comparison type. */    public static final SqlEnum LIKE = SqlEnum.LIKE;    /** Comparison type. */    public static final SqlEnum NOT_LIKE = SqlEnum.NOT_LIKE;    /** Comparison type. */    public static final SqlEnum ILIKE = SqlEnum.ILIKE;    /** Comparison type. */    public static final SqlEnum NOT_ILIKE = SqlEnum.NOT_ILIKE;    /** Comparison type. */    public static final SqlEnum CUSTOM = SqlEnum.CUSTOM;    /** Comparison type. */    public static final SqlEnum DISTINCT = SqlEnum.DISTINCT;    /** Comparison type. */    public static final SqlEnum IN = SqlEnum.IN;    /** Comparison type. */    public static final SqlEnum NOT_IN = SqlEnum.NOT_IN;    /** Comparison type. */    public static final SqlEnum ALL = SqlEnum.ALL;    /** Comparison type. */    public static final SqlEnum JOIN = SqlEnum.JOIN;    /** &quot;Order by&quot; qualifier - ascending */    private static final SqlEnum ASC = SqlEnum.ASC;    /** &quot;Order by&quot; qualifier - descending */    private static final SqlEnum DESC = SqlEnum.DESC;    /** &quot;IS NULL&quot; null comparison */    public static final SqlEnum ISNULL = SqlEnum.ISNULL;    /** &quot;IS NOT NULL&quot; null comparison */    public static final SqlEnum ISNOTNULL = SqlEnum.ISNOTNULL;    /** &quot;CURRENT_DATE&quot; ANSI SQL function */    public static final SqlEnum CURRENT_DATE = SqlEnum.CURRENT_DATE;    /** &quot;CURRENT_TIME&quot; ANSI SQL function */    public static final SqlEnum CURRENT_TIME = SqlEnum.CURRENT_TIME;    /** &quot;LEFT JOIN&quot; SQL statement */    public static final SqlEnum LEFT_JOIN = SqlEnum.LEFT_JOIN;    /** &quot;RIGHT JOIN&quot; SQL statement */    public static final SqlEnum RIGHT_JOIN = SqlEnum.RIGHT_JOIN;      /** &quot;INNER JOIN&quot; SQL statement */    public static final SqlEnum INNER_JOIN = SqlEnum.INNER_JOIN;        private static final int DEFAULT_CAPACITY = 10;    private boolean ignoreCase = false;    private boolean singleRecord = false;    private boolean cascade = false;    private UniqueList selectModifiers = new UniqueList();    private UniqueList selectColumns = new UniqueList();    private UniqueList orderByColumns = new UniqueList();    private UniqueList groupByColumns = new UniqueList();    private Criterion having = null;    private OrderedMap asColumns = ListOrderedMap.decorate(new HashMap());    private List joins = null;    /** The name of the database. */    private String dbName;    /** The name of the database as given in the contructor. */    private String originalDbName;    /**     * To limit the number of rows to return.  <code>-1</code> means return all     * rows.     */    private int limit = -1;    /** To start the results at a row other than the first one. */    private int offset = 0;    private HashMap aliases = null;    private boolean useTransaction = false;    /** the log. */    private static Log log = LogFactory.getLog(Criteria.class);    /**     * Creates a new instance with the default capacity.     */    public Criteria()    {        this(DEFAULT_CAPACITY);    }    /**     * Creates a new instance with the specified capacity.     *     * @param initialCapacity An int.     */    public Criteria(int initialCapacity)    {        this(Torque.getDefaultDB(), initialCapacity);    }    /**     * Creates a new instance with the default capacity which corresponds to     * the specified database.     *     * @param dbName The dabase name.     */    public Criteria(String dbName)    {        this(dbName, DEFAULT_CAPACITY);    }    /**     * Creates a new instance with the specified capacity which corresponds to     * the specified database.     *     * @param dbName          The dabase name.     * @param initialCapacity The initial capacity.     */    public Criteria(String dbName, int initialCapacity)    {        super(initialCapacity);        this.dbName = dbName;        this.originalDbName = dbName;    }    /**     * Brings this criteria back to its initial state, so that it     * can be reused as if it was new. Except if the criteria has grown in     * capacity, it is left at the current capacity.     */    public void clear()    {        super.clear();        ignoreCase = false;        singleRecord = false;        cascade = false;        selectModifiers.clear();        selectColumns.clear();        orderByColumns.clear();        groupByColumns.clear();        having = null;        asColumns.clear();        joins = null;        dbName = originalDbName;        offset = 0;        limit = -1;        aliases = null;        useTransaction = false;    }    /**     * Add an AS clause to the select columns. Usage:     * <p>     * <code>     *     * Criteria myCrit = new Criteria();     * myCrit.addAsColumn(&quot;alias&quot;, &quot;ALIAS(&quot;+MyPeer.ID+&quot;)&quot;);     *     * </code>     *     * @param name  wanted Name of the column     * @param clause SQL clause to select from the table     *     * If the name already exists, it is replaced by the new clause.     *     * @return A modified Criteria object.     */    public Criteria addAsColumn(String name, String clause)    {        asColumns.put(name, clause);        return this;    }    /**     * Get the column aliases.     *     * @return A Map which map the column alias names     * to the alias clauses.     */    public Map getAsColumns()    {        return asColumns;    }    /**     * Allows one to specify an alias for a table that can     * be used in various parts of the SQL.     *     * @param alias a <code>String</code> value     * @param table a <code>String</code> value     */    public void addAlias(String alias, String table)    {        if (aliases == null)        {            aliases = new HashMap(8);        }        aliases.put(alias, table);    }    /**     * Returns the table name associated with an alias.     *     * @param alias a <code>String</code> value     * @return a <code>String</code> value     */    public String getTableForAlias(String alias)    {        if (aliases == null)        {            return null;        }        return (String) aliases.get(alias);    }    /**     * Does this Criteria Object contain the specified key?     *     * @param table The name of the table.     * @param column The name of the column.     * @return True if this Criteria Object contain the specified key.     */    public boolean containsKey(String table, String column)    {        return containsKey(table + '.' + column);    }    /**     * Convenience method to return value as a boolean.     *     * @param column String name of column.     * @return A boolean.     */    public boolean getBoolean(String column)    {        return ((Boolean) getCriterion(column).getValue()).booleanValue();    }    /**     * Convenience method to return value as a boolean.     *     * @param table String name of table.     * @param column String name of column.     * @return A boolean.     */    public boolean getBoolean(String table, String column)    {        return getBoolean(new StringBuffer(table.length() + column.length() + 1)                .append(table).append('.').append(column)                .toString());    }    /**     * Will force the sql represented by this criteria to be executed within     * a transaction.  This is here primarily to support the oid type in     * postgresql.  Though it can be used to require any single sql statement     * to use a transaction.     */    public void setUseTransaction(boolean v)    {        useTransaction = v;    }    /**     * called by BasePeer to determine whether the sql command specified by     * this criteria must be wrapped in a transaction.     *     * @return a <code>boolean</code> value     */    protected boolean isUseTransaction()    {        return useTransaction;    }    /**     * Method to return criteria related to columns in a table.     *     * @param column String name of column.     * @return A Criterion.     */    public Criterion getCriterion(String column)    {        return (Criterion) super.get(column);    }    /**     * Method to return criteria related to a column in a table.     *     * @param table String name of table.     * @param column String name of column.     * @return A Criterion.     */    public Criterion getCriterion(String table, String column)    {        return getCriterion(                new StringBuffer(table.length() + column.length() + 1)                .append(table).append('.').append(column)                .toString());    }    /**     * Method to return criterion that is not added automatically     * to this Criteria.  This can be used to chain the     * Criterions to form a more complex where clause.     *     * @param column String full name of column (for example TABLE.COLUMN).     * @return A Criterion.     */    public Criterion getNewCriterion(String column, Object value,            SqlEnum comparison)    {        return new Criterion(column, value, comparison);    }    /**     * Method to return criterion that is not added automatically     * to this Criteria.  This can be used to chain the     * Criterions to form a more complex where clause.     *     * @param table String name of table.     * @param column String name of column.     * @return A Criterion.     */    public Criterion getNewCriterion(String table, String column,            Object value, SqlEnum comparison)    {        return new Criterion(table, column, value, comparison);    }    /**     * This method adds a prepared Criterion object to the Criteria.     * You can get a new, empty Criterion object with the     * getNewCriterion() method. If a criterion for the requested column     * already exists, it is replaced. This is used as follows:     *     * <p>     * <code>     * Criteria crit = new Criteria();     * Criteria.Criterion c = crit     * .getNewCriterion(BasePeer.ID, new Integer(5), Criteria.LESS_THAN);     * crit.add(c);     * </code>     *     * @param c A Criterion object     *     * @return A modified Criteria object.     */    public Criteria add(Criterion c)    {        StringBuffer sb = new StringBuffer(c.getTable().length()                + c.getColumn().length() + 1);        sb.append(c.getTable());        sb.append('.');        sb.append(c.getColumn());        super.put(sb.toString(), c);        return this;    }    /**     * Method to return a String table name.     *     * @param name A String with the name of the key.     * @return A String with the value of the object at key.     */    public String getColumnName(String name)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品中文字幕欧美| 91精品国产品国语在线不卡| 欧美日韩精品综合在线| 久久久国产一区二区三区四区小说 | 精品成人在线观看| 亚洲乱码中文字幕| 国产精品一区在线观看你懂的| 欧美日韩你懂得| 亚洲欧美综合色| 国产乱对白刺激视频不卡| 欧美一区二区国产| 视频一区视频二区中文| 一本大道av一区二区在线播放 | 亚洲图片激情小说| 国产高清不卡一区| 精品国产免费视频| 麻豆一区二区在线| 正在播放一区二区| 日韩影院免费视频| 7777精品伊人久久久大香线蕉完整版 | 91丝袜美女网| 欧美国产精品专区| 国产成人av网站| 精品久久久网站| 蜜桃视频在线观看一区| 欧美精品自拍偷拍| 亚洲午夜在线视频| 欧美三级韩国三级日本三斤| 一级女性全黄久久生活片免费| 99久久精品免费| 亚洲三级电影全部在线观看高清| 成人的网站免费观看| 欧美国产精品久久| 成人污视频在线观看| 国产精品国产三级国产专播品爱网| 国产一区二区三区综合| 精品播放一区二区| 国产高清一区日本| 亚洲国产日韩一级| 精品视频资源站| 丝袜亚洲另类丝袜在线| 日韩精品一区二区三区四区视频| 精品一区二区在线免费观看| 久久综合国产精品| 不卡一区二区在线| 亚洲图片欧美视频| 日韩精品综合一本久道在线视频| 国产自产v一区二区三区c| 久久久久久黄色| 色诱视频网站一区| 免费在线观看精品| 国产亚洲自拍一区| 在线视频国产一区| 久久国产尿小便嘘嘘尿| 国产精品免费人成网站| 色狠狠一区二区| 麻豆专区一区二区三区四区五区| 国产午夜亚洲精品羞羞网站| 色综合久久精品| 久久精品国产**网站演员| 国产精品天干天干在观线| 在线视频一区二区三区| 精品中文字幕一区二区小辣椒| 国产目拍亚洲精品99久久精品| 99精品视频中文字幕| 日韩电影在线免费观看| 国产精品久久二区二区| 91精品国模一区二区三区| 懂色av一区二区三区蜜臀| 亚洲大片精品永久免费| 欧美韩日一区二区三区| 在线电影欧美成精品| 成人免费视频一区| 蜜臀av性久久久久蜜臀aⅴ四虎| 中文字幕第一区综合| 日韩一区二区三区电影在线观看| 成年人网站91| 久久精品国产一区二区| 亚洲一区二区三区四区不卡| 国产欧美一二三区| 日韩小视频在线观看专区| 在线欧美日韩国产| a在线欧美一区| 精品一区二区在线看| 一级做a爱片久久| 国产精品久久久一区麻豆最新章节| 91麻豆精品国产自产在线| 色婷婷精品久久二区二区蜜臀av| 国产精品一区免费视频| 青青青伊人色综合久久| 亚洲大型综合色站| 一区二区三区中文字幕精品精品| 国产校园另类小说区| 日韩欧美中文字幕精品| 欧美三级一区二区| 色94色欧美sute亚洲线路二| 成人福利视频网站| 成人午夜av电影| 国产999精品久久| 久久66热偷产精品| 美女mm1313爽爽久久久蜜臀| 日韩—二三区免费观看av| 香蕉成人伊视频在线观看| 亚洲三级电影全部在线观看高清| 国产精品视频第一区| 中文字幕免费一区| 亚洲国产精品成人综合| 中文乱码免费一区二区| 国产女人水真多18毛片18精品视频| 亚洲男人天堂一区| 亚洲同性同志一二三专区| 中文字幕一区二区三区乱码在线| 欧美国产日韩在线观看| 国产精品久久久久毛片软件| 国产精品久久久久久亚洲毛片| 国产精品久久久久一区| 亚洲天堂精品在线观看| 亚洲免费看黄网站| 亚洲国产wwwccc36天堂| 天堂va蜜桃一区二区三区漫画版| 日日夜夜精品免费视频| 麻豆精品新av中文字幕| 韩日欧美一区二区三区| 国产成人精品网址| 97国产精品videossex| 91福利视频网站| 欧美精选午夜久久久乱码6080| 日韩一区二区在线免费观看| 日韩欧美123| 久久久www免费人成精品| 成人黄色国产精品网站大全在线免费观看 | 亚洲一区二区视频在线观看| 亚洲欧美乱综合| 亚洲国产另类av| 日韩av在线发布| 风流少妇一区二区| 91福利精品第一导航| 欧美日韩成人高清| 6080yy午夜一二三区久久| 中文字幕成人av| 亚洲国产视频在线| 精品夜夜嗨av一区二区三区| 成人福利视频网站| 欧美精品精品一区| 日本一区二区三区视频视频| 亚洲精品免费一二三区| 奇米影视在线99精品| 成人av在线看| 欧美精品国产精品| 国产精品久99| 蓝色福利精品导航| 91麻豆免费视频| 欧美成人综合网站| 亚洲欧洲精品成人久久奇米网| 日韩影院精彩在线| av电影在线观看完整版一区二区| 在线看一区二区| 国产色产综合产在线视频| 亚洲午夜电影在线| 国产老妇另类xxxxx| 欧美午夜精品久久久久久孕妇| 精品国产自在久精品国产| 一区二区三区日韩精品| 国产精品中文字幕欧美| 欧美日韩mp4| 中文字幕制服丝袜一区二区三区| 日本不卡一二三区黄网| 色欧美88888久久久久久影院| 精品成人一区二区三区四区| 亚洲第一在线综合网站| youjizz国产精品| 精品剧情v国产在线观看在线| 亚洲成人自拍网| 99久久免费国产| 国产欧美精品一区| 国产在线视频一区二区三区| 欧美疯狂性受xxxxx喷水图片| 亚洲三级在线看| 成人国产一区二区三区精品| 亚洲精品一区二区三区99| 婷婷久久综合九色综合绿巨人 | 日韩视频一区二区在线观看| 一个色妞综合视频在线观看| 成人免费高清在线观看| 久久免费的精品国产v∧| 日本免费在线视频不卡一不卡二| 欧美视频完全免费看| 亚洲精品福利视频网站| 91麻豆国产香蕉久久精品| 欧美国产日韩a欧美在线观看| 国产乱国产乱300精品| 精品国产免费一区二区三区香蕉| 美腿丝袜亚洲一区| 欧美一级欧美三级| 久久精品久久精品| 精品久久久久久久人人人人传媒| 久久国产尿小便嘘嘘| 日韩欧美区一区二| 国内精品伊人久久久久av一坑| 精品卡一卡二卡三卡四在线|