亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
久久综合狠狠综合| 欧美裸体一区二区三区| 亚洲成人久久影院| 亚洲精品一区在线观看| 在线观看日产精品| 激情文学综合插| 亚洲午夜久久久久中文字幕久| 日韩视频一区二区在线观看| 色哟哟一区二区在线观看| 精品亚洲aⅴ乱码一区二区三区| 一区二区三区免费在线观看| 中文字幕电影一区| 久久先锋影音av鲁色资源| 欧美日韩国产综合一区二区| 99在线精品观看| 国产成人精品三级| 久久精品久久久精品美女| 亚洲成人动漫在线免费观看| 日韩美女视频一区| 国产欧美一区二区精品性色| 日韩丝袜美女视频| 在线不卡免费欧美| 欧美性生活一区| 91猫先生在线| 91视频一区二区三区| 懂色av一区二区三区免费观看| 久久爱www久久做| 首页综合国产亚洲丝袜| 亚洲午夜一二三区视频| 一区二区三区高清| 亚洲免费色视频| 亚洲人精品一区| 亚洲日韩欧美一区二区在线| 国产精品福利一区二区三区| 国产精品污污网站在线观看| 国产午夜久久久久| 国产喷白浆一区二区三区| 亚洲精品一区二区三区蜜桃下载| 日韩一区二区影院| 日韩欧美123| 欧美精品一区二区三区蜜桃视频| 精品入口麻豆88视频| 欧美成人a视频| 亚洲精品一区二区三区在线观看 | 亚洲国产wwwccc36天堂| 亚洲综合色视频| 偷拍亚洲欧洲综合| 免费看精品久久片| 精品一区二区三区在线观看| 麻豆免费看一区二区三区| 久久er99热精品一区二区| 国产综合色视频| 成人激情综合网站| 91官网在线免费观看| 欧美视频一区二区| 日韩一二三四区| 欧美精品一区二区三区四区 | 亚洲精品国产a久久久久久| 亚洲欧美日韩小说| 亚洲一级在线观看| 免费av成人在线| 国产精品一区2区| 国产河南妇女毛片精品久久久| 国产美女视频91| 97se亚洲国产综合在线| 欧美亚洲禁片免费| 2023国产精品自拍| 136国产福利精品导航| 亚洲国产另类精品专区| 免费日韩伦理电影| 麻豆成人久久精品二区三区红| 国产成人精品免费网站| 91丨九色丨黑人外教| 欧美日韩日日夜夜| 久久只精品国产| 亚洲美女在线国产| 蜜臀99久久精品久久久久久软件| 国产成人在线网站| 欧美三级中文字幕| 国产视频一区在线观看 | 亚洲欧美另类小说| 韩国女主播成人在线观看| 99re6这里只有精品视频在线观看| 欧美人伦禁忌dvd放荡欲情| 国产亚洲精品超碰| 亚洲高清免费观看| 国产福利一区二区三区视频| 一本色道久久综合亚洲aⅴ蜜桃| 欧美一级二级三级蜜桃| 国产精品福利电影一区二区三区四区| 亚洲v中文字幕| 成人免费视频免费观看| 欧美一区中文字幕| 亚洲视频中文字幕| 国产一区二区三区精品欧美日韩一区二区三区 | 欧美成人vps| 亚洲国产人成综合网站| 成人深夜在线观看| 欧美xxxxxxxx| 亚洲一区二区三区免费视频| 国产精品亚洲综合一区在线观看| 欧美少妇性性性| 国产精品不卡视频| 国产麻豆精品久久一二三| 欧美三级资源在线| 亚洲蜜臀av乱码久久精品| 成人免费视频一区二区| 久久青草欧美一区二区三区| 亚洲成av人片在线观看无码| 99精品欧美一区二区蜜桃免费| 精品美女一区二区| 日韩高清中文字幕一区| 91美女在线观看| 中文字幕欧美一| 国产精品亚洲人在线观看| 91精品国产色综合久久不卡蜜臀| 亚洲精选在线视频| 91麻豆国产香蕉久久精品| 久久久91精品国产一区二区精品| 毛片av一区二区三区| 欧美丰满少妇xxxbbb| 亚洲国产成人精品视频| 在线观看免费亚洲| 亚洲欧美日韩在线不卡| 不卡大黄网站免费看| 国产欧美日韩在线| 国产精品一区二区果冻传媒| 欧美日韩国产电影| 亚洲蜜臀av乱码久久精品蜜桃| www.在线成人| 国产精品国产三级国产三级人妇| 国产乱人伦偷精品视频免下载 | 欧美日韩国产成人在线91| 一区二区三区四区亚洲| 色综合中文字幕国产 | 成人avav影音| 中日韩免费视频中文字幕| 国产高清久久久| 国产欧美精品在线观看| 国产福利一区在线| 中文文精品字幕一区二区| 粉嫩在线一区二区三区视频| 国产精品五月天| 色婷婷综合久久久久中文一区二区| 中文字幕亚洲一区二区av在线 | 久久综合av免费| 国产一区二区三区最好精华液| 精品国产免费人成电影在线观看四季| 蜜臀va亚洲va欧美va天堂 | 欧美国产日韩a欧美在线观看| 国产一区二区三区免费| 国产人伦精品一区二区| 91在线视频观看| 亚洲风情在线资源站| 欧美一卡二卡在线| 国产精品羞羞答答xxdd| 国产精品乱子久久久久| 色婷婷亚洲综合| 天堂久久一区二区三区| 精品国产乱码久久久久久牛牛| 国产乱码精品一区二区三区五月婷| 国产亚洲短视频| 91影视在线播放| 亚洲一区视频在线| 在线播放视频一区| 国产一区二区视频在线播放| 久久精品一区四区| 91久久精品一区二区三| 视频一区视频二区中文字幕| 精品久久人人做人人爰| caoporen国产精品视频| 亚洲成人精品在线观看| 国产亚洲污的网站| 日本高清不卡一区| 久久国产日韩欧美精品| 日本一区二区三区在线不卡| 色8久久人人97超碰香蕉987| 欧美bbbbb| 亚洲色图一区二区三区| 日韩三级免费观看| www.欧美色图| 亚洲乱码国产乱码精品精可以看 | 91女厕偷拍女厕偷拍高清| 青青草97国产精品免费观看无弹窗版| 国产日韩欧美电影| 欧美日韩一本到| 成人精品国产福利| 久久99国产精品麻豆| 亚洲欧美乱综合| 国产日韩三级在线| 国产精一区二区三区| 欧美日韩国产系列| 欧美一区永久视频免费观看| 中文字幕不卡在线| 日韩精彩视频在线观看| 另类欧美日韩国产在线| 欧美精品一区二区三区在线播放| 色噜噜久久综合| 久久er99精品| 午夜av电影一区|