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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? hibernatedaotemplate.java

?? 本套系統(tǒng)采用了業(yè)界當(dāng)前最為流行的beanAction組件
?? JAVA
字號(hào):
/*
 *  Copyright 2004 Clinton Begin
 *
 *  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.
 */
package com.ibatis.dao.client.template;

import com.ibatis.dao.client.DaoException;
import com.ibatis.dao.client.DaoManager;
import com.ibatis.dao.engine.transaction.hibernate.HibernateDaoTransaction;
import net.sf.hibernate.*;
import net.sf.hibernate.type.Type;

import java.io.Serializable;
import java.sql.Connection;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;

/**
 * A DaoTemplate for Hibernate implementations that provides a
 * convenient method to access the Hibernate Session.
 */
public abstract class HibernateDaoTemplate extends DaoTemplate {

  /**
   * The DaoManager that manages this Dao instance will be passed
   * in as the parameter to this constructor automatically upon
   * instantiation.
   *
   * @param daoManager
   */
  public HibernateDaoTemplate(DaoManager daoManager) {
    super(daoManager);
  }

  /**
   * Gets the Hibernate session associated with the current
   * DaoTransaction that this Dao is working under.
   *
   * @return A Hibernate Session instance.
   */
  protected Session getSession() {
    HibernateDaoTransaction trans = (HibernateDaoTransaction) daoManager.getTransaction(this);
    return trans.getSession();
  }

  public void flush() {
    try {
      getSession().flush();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void setFlushMode(FlushMode flushMode) {
    getSession().setFlushMode(flushMode);
  }

  public FlushMode getFlushMode() {
    return getSession().getFlushMode();
  }

  public SessionFactory getSessionFactory() {
    return getSession().getSessionFactory();
  }

  public Connection connection() {
    try {
      return getSession().connection();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Connection disconnect() {
    try {
      return getSession().disconnect();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void reconnect() {
    try {
      getSession().reconnect();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void reconnect(Connection connection) {
    try {
      getSession().reconnect(connection);
    } catch (HibernateException e) {
      throw new DaoException(e);
    }
  }

  public Connection close() {
    try {
      return getSession().close();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void cancelQuery() {
    try {
      getSession().cancelQuery();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public boolean isOpen() {
    return getSession().isOpen();
  }

  public boolean isConnected() {
    return getSession().isConnected();
  }

  public boolean isDirty() {
    try {
      return getSession().isDirty();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Serializable getIdentifier(Object o) {
    try {
      return getSession().getIdentifier(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public boolean contains(Object o) {
    return getSession().contains(o);
  }

  public void evict(Object o) {
    try {
      getSession().evict(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Object load(Class aClass, Serializable serializable, LockMode lockMode) {
    try {
      return getSession().load(aClass, serializable, lockMode);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Object load(Class aClass, Serializable serializable) {
    try {
      return getSession().load(aClass, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void load(Object o, Serializable serializable) {
    try {
      getSession().load(o, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void replicate(Object o, ReplicationMode replicationMode) {
    try {
      getSession().replicate(o, replicationMode);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Serializable save(Object o) {
    try {
      return getSession().save(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void save(Object o, Serializable serializable) {
    try {
      getSession().save(o, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void saveOrUpdate(Object o) {
    try {
      getSession().save(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void update(Object o) {
    try {
      getSession().update(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void update(Object o, Serializable serializable) {
    try {
      getSession().update(o, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Object saveOrUpdateCopy(Object o) {
    try {
      return getSession().saveOrUpdateCopy(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Object saveOrUpdateCopy(Object o, Serializable serializable) {
    try {
      return getSession().saveOrUpdateCopy(o, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void delete(Object o) {
    try {
      getSession().delete(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public List find(String s) {
    try {
      return getSession().find(s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public List find(String s, Object o, Type type) {
    try {
      return getSession().find(s, o, type);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public List find(String s, Object[] objects, Type[] types) {
    try {
      return getSession().find(s, objects, types);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Iterator iterate(String s) {
    try {
      return getSession().iterate(s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Iterator iterate(String s, Object o, Type type) {
    try {
      return getSession().iterate(s, o, type);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Iterator iterate(String s, Object[] objects, Type[] types) {
    try {
      return getSession().iterate(s, objects, types);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Collection filter(Object o, String s) {
    try {
      return getSession().filter(o, s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Collection filter(Object o, String s, Object o1, Type type) {
    try {
      return getSession().filter(o, s, o1, type);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Collection filter(Object o, String s, Object[] objects, Type[] types) {
    try {
      return getSession().filter(o, s, objects, types);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public int delete(String s) {
    try {
      return getSession().delete(s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public int delete(String s, Object o, Type type) {
    try {
      return getSession().delete(s, o, type);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public int delete(String s, Object[] objects, Type[] types) {
    try {
      return getSession().delete(s, objects, types);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void lock(Object o, LockMode lockMode) {
    try {
      getSession().lock(o, lockMode);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void refresh(Object o) {
    try {
      getSession().refresh(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public void refresh(Object o, LockMode lockMode) {
    try {
      getSession().refresh(o, lockMode);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public LockMode getCurrentLockMode(Object o) {
    try {
      return getSession().getCurrentLockMode(o);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Transaction beginTransaction() {
    try {
      return getSession().beginTransaction();
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Criteria createCriteria(Class aClass) {
    return getSession().createCriteria(aClass);
  }

  public Query createQuery(String s) {
    try {
      return getSession().createQuery(s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Query createFilter(Object o, String s) {
    try {
      return getSession().createFilter(o, s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Query getNamedQuery(String s) {
    try {
      return getSession().getNamedQuery(s);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Query createSQLQuery(String s, String s1, Class aClass) {
    return getSession().createSQLQuery(s, s1, aClass);
  }

  public Query createSQLQuery(String s, String[] strings, Class[] classes) {
    return getSession().createSQLQuery(s, strings, classes);
  }

  public void clear() {
    getSession().clear();
  }

  public Object get(Class aClass, Serializable serializable) {
    try {
      return getSession().get(aClass, serializable);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

  public Object get(Class aClass, Serializable serializable, LockMode lockMode) {
    try {
      return getSession().get(aClass, serializable, lockMode);
    } catch (HibernateException e) {
      throw new DaoException("Error occurred in a Hibernate DAO.  Cause: " + e, e);
    }
  }

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人免费在线视频| 欧美做爰猛烈大尺度电影无法无天| 国产精品人妖ts系列视频| 日韩无一区二区| 欧美撒尿777hd撒尿| 一道本成人在线| 成人午夜电影网站| 国产成人高清视频| 国产91丝袜在线18| 亚洲国产一区二区三区| 久久99国产乱子伦精品免费| 蜜臀av性久久久久蜜臀aⅴ四虎 | 91网站最新网址| 91麻豆精东视频| 在线亚洲高清视频| 在线精品视频免费播放| 欧美撒尿777hd撒尿| 日韩三级视频在线看| 精品人伦一区二区色婷婷| 欧美一区二区三区不卡| 欧美精品免费视频| 欧美日韩中文字幕精品| 成人黄色大片在线观看| 色悠悠亚洲一区二区| 欧美日韩在线直播| 日韩欧美久久一区| 国产亚洲综合av| 国产精品久久久久7777按摩| 日韩久久一区二区| 亚洲狠狠丁香婷婷综合久久久| 亚洲精品成人天堂一二三| 亚洲欧美日韩在线| 日韩电影免费在线看| 国产精品一区二区视频| 99精品视频一区| 欧美电视剧在线观看完整版| 中文字幕一区二区三区在线不卡| 亚洲va欧美va人人爽午夜| 国产高清一区日本| 日韩免费电影一区| 国产精品99久久久久久似苏梦涵 | 欧美一区二区三区的| 日本一区二区三区在线观看| 亚洲成人av免费| 东方aⅴ免费观看久久av| 色综合久久88色综合天天| 欧美卡1卡2卡| 精品国产a毛片| 亚洲视频精选在线| 一区二区三区在线不卡| 一区二区在线观看不卡| 成人精品一区二区三区四区| 老司机精品视频一区二区三区| 老司机午夜精品99久久| 国产精品综合av一区二区国产馆| 国产69精品久久777的优势| 国产福利一区二区三区在线视频| 成人精品视频网站| 亚洲国产cao| 亚洲成人av在线电影| 亚洲福利一二三区| 裸体在线国模精品偷拍| 国产精品丝袜一区| 国产精品的网站| 亚洲色图丝袜美腿| 蜜桃视频在线观看一区二区| 国产精品一区久久久久| 欧洲一区二区av| 日韩av高清在线观看| 国产真实精品久久二三区| 粉嫩一区二区三区在线看| 欧美亚洲综合另类| 国产亚洲综合性久久久影院| 亚洲永久精品大片| 久久国产生活片100| 91视频com| 国产视频一区在线观看| 亚洲免费观看高清完整版在线观看熊| 久久先锋资源网| 亚洲精品一区二区三区四区高清| 亚洲激情图片小说视频| 一区二区三区国产豹纹内裤在线| 色综合天天综合网国产成人综合天 | 色综合天天天天做夜夜夜夜做| 欧美日韩一级视频| 中文字幕一区二区三区在线播放| 日本va欧美va瓶| 在线免费观看一区| 国产精品卡一卡二卡三| 久久精品久久久精品美女| 欧美性猛交xxxx黑人交| 国产精品免费aⅴ片在线观看| 免费视频最近日韩| 99视频超级精品| 制服丝袜亚洲精品中文字幕| 久久精品欧美日韩精品| 亚洲宅男天堂在线观看无病毒| 欧美精品成人一区二区三区四区| 国产精品久线在线观看| 蜜乳av一区二区三区| 在线日韩一区二区| 亚洲乱码日产精品bd| 国产白丝网站精品污在线入口| 欧美成人video| 日韩电影免费在线观看网站| 色香色香欲天天天影视综合网| 国产精品一区二区三区网站| 久久精品久久99精品久久| 国产精品三级av在线播放| 国产精品影音先锋| 久久九九99视频| 国产一二三精品| 精品久久人人做人人爰| 狠狠色狠狠色综合日日91app| 91精品国产综合久久久久| 亚洲第一av色| 久久国产人妖系列| 一区二区三区四区不卡在线 | 欧美一级生活片| 免费一级片91| 欧美日韩性生活| 国产suv精品一区二区6| 久久婷婷国产综合精品青草| 精品在线一区二区| 91精品久久久久久久99蜜桃| 久久99精品久久久久久动态图 | 欧美成人精品二区三区99精品| 欧美日韩一区不卡| 一区二区三区高清| 欧美日韩亚洲综合在线| 图片区小说区国产精品视频| 欧美成人乱码一区二区三区| 国产激情偷乱视频一区二区三区| www国产精品av| 国内成+人亚洲+欧美+综合在线 | 日本中文在线一区| 欧美精品一区二区三区久久久| 国产成人丝袜美腿| 亚洲激情图片小说视频| 欧美一区二区啪啪| 一区二区三区免费看视频| 成人午夜激情视频| 亚洲成人一二三| 26uuu久久综合| 91麻豆精品一区二区三区| 视频一区视频二区中文字幕| 日韩欧美精品在线视频| 久久精品国产亚洲一区二区三区| 国产人妖乱国产精品人妖| 欧美亚洲综合在线| 综合精品久久久| 精品日本一线二线三线不卡| av亚洲精华国产精华| 日韩精品在线网站| 亚洲福利国产精品| 日韩电影在线一区二区| 日韩欧美精品在线| 福利一区在线观看| 人禽交欧美网站| 亚洲精品国产高清久久伦理二区| 777奇米四色成人影色区| 激情图片小说一区| 亚洲天堂中文字幕| 欧美一区二区女人| 国产在线精品一区二区不卡了| 日韩伦理av电影| 日韩一区二区免费在线观看| 91小视频免费看| 国产一区二区美女诱惑| 视频在线观看一区二区三区| 国产精品私人自拍| 在线成人av网站| 国产精品1024| 成人综合婷婷国产精品久久| 另类小说综合欧美亚洲| 无码av免费一区二区三区试看| 国产精品入口麻豆九色| 在线成人高清不卡| 欧美三级日韩三级| 91精品1区2区| 麻豆精品新av中文字幕| 国产suv精品一区二区6| 捆绑调教美女网站视频一区| 亚洲图片有声小说| 中文字幕色av一区二区三区| 26uuu精品一区二区三区四区在线| 欧美日韩一级二级三级| 91国内精品野花午夜精品| 成人av电影免费观看| 亚洲国产视频在线| 久久亚洲二区三区| 国产午夜亚洲精品不卡| 欧美成人官网二区| 国产欧美日韩亚州综合| 国产视频亚洲色图| 中文一区二区完整视频在线观看| xf在线a精品一区二区视频网站| 欧美日韩国产综合一区二区| 91精品国产全国免费观看 | 成人av在线一区二区|