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

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

?? jdodialect.java

?? spring framework 2.5.4源代碼
?? JAVA
字號:
/*
 * Copyright 2002-2007 the original author or authors.
 *
 * 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 org.springframework.orm.jdo;

import java.sql.SQLException;

import javax.jdo.JDOException;
import javax.jdo.PersistenceManager;
import javax.jdo.Query;
import javax.jdo.Transaction;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.datasource.ConnectionHandle;
import org.springframework.transaction.TransactionDefinition;
import org.springframework.transaction.TransactionException;

/**
 * SPI strategy that allows for customizing integration with a specific JDO provider,
 * in particular regarding transaction management and exception translation. To be
 * implemented for specific JDO providers such as JPOX, Kodo, Lido, Versant Open Access.
 *
 * <p>JDO 2.0 defines standard ways for most of the functionality covered here.
 * Hence, Spring's {@link DefaultJdoDialect} uses the corresponding JDO 2.0 methods
 * by default, to be overridden in a vendor-specific fashion if necessary.
 * Vendor-specific subclasses of {@link DefaultJdoDialect} are still required for special
 * transaction semantics and more sophisticated exception translation (if needed).
 *
 * <p>In general, it is recommended to derive from {@link DefaultJdoDialect} instead
 * of implementing this interface directly. This allows for inheriting common
 * behavior (present and future) from {@link DefaultJdoDialect}, only overriding
 * specific hooks to plug in concrete vendor-specific behavior.
 *
 * @author Juergen Hoeller
 * @since 02.11.2003
 * @see JdoTransactionManager#setJdoDialect
 * @see JdoAccessor#setJdoDialect
 * @see DefaultJdoDialect
 */
public interface JdoDialect {

	//-------------------------------------------------------------------------
	// Hooks for transaction management (used by JdoTransactionManager)
	//-------------------------------------------------------------------------

	/**
	 * Begin the given JDO transaction, applying the semantics specified by the
	 * given Spring transaction definition (in particular, an isolation level
	 * and a timeout). Invoked by JdoTransactionManager on transaction begin.
	 * <p>An implementation can configure the JDO Transaction object and then
	 * invoke <code>begin</code>, or invoke a special begin method that takes,
	 * for example, an isolation level.
	 * <p>An implementation can also apply read-only flag and isolation level to the
	 * underlying JDBC Connection before beginning the transaction. In that case,
	 * a transaction data object can be returned that holds the previous isolation
	 * level (and possibly other data), to be reset in <code>cleanupTransaction</code>.
	 * <p>Implementations can also use the Spring transaction name, as exposed by the
	 * passed-in TransactionDefinition, to optimize for specific data access use cases
	 * (effectively using the current transaction name as use case identifier).
	 * @param transaction the JDO transaction to begin
	 * @param definition the Spring transaction definition that defines semantics
	 * @return an arbitrary object that holds transaction data, if any
	 * (to be passed into cleanupTransaction)
	 * @throws JDOException if thrown by JDO methods
	 * @throws SQLException if thrown by JDBC methods
	 * @throws TransactionException in case of invalid arguments
	 * @see #cleanupTransaction
	 * @see javax.jdo.Transaction#begin
	 * @see org.springframework.jdbc.datasource.DataSourceUtils#prepareConnectionForTransaction
	 */
	Object beginTransaction(Transaction transaction, TransactionDefinition definition)
			throws JDOException, SQLException, TransactionException;

	/**
	 * Clean up the transaction via the given transaction data.
	 * Invoked by JdoTransactionManager on transaction cleanup.
	 * <p>An implementation can, for example, reset read-only flag and
	 * isolation level of the underlying JDBC Connection. Furthermore,
	 * an exposed data access use case can be reset here.
	 * @param transactionData arbitrary object that holds transaction data, if any
	 * (as returned by beginTransaction)
	 * @see #beginTransaction
	 * @see org.springframework.jdbc.datasource.DataSourceUtils#resetConnectionAfterTransaction
	 */
	void cleanupTransaction(Object transactionData);

	/**
	 * Retrieve the JDBC Connection that the given JDO PersistenceManager uses underneath,
	 * if accessing a relational database. This method will just get invoked if actually
	 * needing access to the underlying JDBC Connection, usually within an active JDO
	 * transaction (for example, by JdoTransactionManager). The returned handle will
	 * be passed into the <code>releaseJdbcConnection</code> method when not needed anymore.
	 * <p>Implementations are encouraged to return an unwrapped Connection object, i.e.
	 * the Connection as they got it from the connection pool. This makes it easier for
	 * application code to get at the underlying native JDBC Connection, like an
	 * OracleConnection, which is sometimes necessary for LOB handling etc. We assume
	 * that calling code knows how to properly handle the returned Connection object.
	 * <p>In a simple case where the returned Connection will be auto-closed with the
	 * PersistenceManager or can be released via the Connection object itself, an
	 * implementation can return a SimpleConnectionHandle that just contains the
	 * Connection. If some other object is needed in <code>releaseJdbcConnection</code>,
	 * an implementation should use a special handle that references that other object.
	 * @param pm the current JDO PersistenceManager
	 * @param readOnly whether the Connection is only needed for read-only purposes
	 * @return a handle for the JDBC Connection, to be passed into
	 * <code>releaseJdbcConnection</code>, or <code>null</code>
	 * if no JDBC Connection can be retrieved
	 * @throws JDOException if thrown by JDO methods
	 * @throws SQLException if thrown by JDBC methods
	 * @see #releaseJdbcConnection
	 * @see org.springframework.jdbc.datasource.ConnectionHandle#getConnection
	 * @see org.springframework.jdbc.datasource.SimpleConnectionHandle
	 * @see JdoTransactionManager#setDataSource
	 * @see org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor
	 */
	ConnectionHandle getJdbcConnection(PersistenceManager pm, boolean readOnly)
			throws JDOException, SQLException;

	/**
	 * Release the given JDBC Connection, which has originally been retrieved
	 * via <code>getJdbcConnection</code>. This should be invoked in any case,
	 * to allow for proper release of the retrieved Connection handle.
	 * <p>An implementation might simply do nothing, if the Connection returned
	 * by <code>getJdbcConnection</code> will be implicitly closed when the JDO
	 * transaction completes or when the PersistenceManager is closed.
	 * @param conHandle the JDBC Connection handle to release
	 * @param pm the current JDO PersistenceManager
	 * @throws JDOException if thrown by JDO methods
	 * @throws SQLException if thrown by JDBC methods
	 * @see #getJdbcConnection
	 */
	void releaseJdbcConnection(ConnectionHandle conHandle, PersistenceManager pm)
			throws JDOException, SQLException;

	/**
	 * Flush the given PersistenceManager, i.e. flush all changes (that have been
	 * applied to persistent objects) to the underlying database. This method will
	 * just get invoked when eager flushing is actually necessary, for example when
	 * JDBC access code needs to see changes within the same transaction.
	 * @param pm the current JDO PersistenceManager
	 * @throws JDOException in case of errors
	 * @see JdoAccessor#setFlushEager
	 */
	void flush(PersistenceManager pm) throws JDOException;

	/**
	 * Apply the given timeout to the given JDO query object.
	 * <p>Invoked with the remaining time of a specified transaction timeout, if any.
	 * @param query the JDO query object to apply the timeout to
	 * @param timeout the timeout value to apply
	 * @throws JDOException if thrown by JDO methods
	 * @see JdoTemplate#prepareQuery
	 */
	void applyQueryTimeout(Query query, int timeout) throws JDOException;


	//-----------------------------------------------------------------------------------
	// Hook for exception translation (used by JdoTransactionManager and JdoTemplate)
	//-----------------------------------------------------------------------------------

	/**
	 * Translate the given JDOException to a corresponding exception from Spring's
	 * generic DataAccessException hierarchy. An implementation should apply
	 * PersistenceManagerFactoryUtils' standard exception translation if can't do
	 * anything more specific.
	 * <p>Of particular importance is the correct translation to
	 * DataIntegrityViolationException, for example on constraint violation.
	 * Unfortunately, standard JDO does not allow for portable detection of this.
	 * <p>Can use a SQLExceptionTranslator for translating underlying SQLExceptions
	 * in a database-specific fashion.
	 * @param ex the JDOException thrown
	 * @return the corresponding DataAccessException (must not be <code>null</code>)
	 * @see JdoAccessor#convertJdoAccessException
	 * @see JdoTransactionManager#convertJdoAccessException
	 * @see PersistenceManagerFactoryUtils#convertJdoAccessException
	 * @see org.springframework.dao.DataIntegrityViolationException
	 * @see org.springframework.jdbc.support.SQLExceptionTranslator
	 */
	DataAccessException translateException(JDOException ex);

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩理论片一区二区| 视频一区二区三区中文字幕| 久久婷婷国产综合精品青草| 日韩欧美久久久| 日韩精品一区二区三区老鸭窝| 欧美一区二区三区在线看| 精品视频在线看| 欧美色成人综合| 欧美日韩专区在线| 欧美高清dvd| 制服丝袜亚洲精品中文字幕| 欧美久久久久久久久中文字幕| 欧美精品在线一区二区| 欧美一区二区三区在线看| 欧美不卡123| 国产欧美日韩另类一区| 亚洲欧美怡红院| ww久久中文字幕| 91麻豆精品国产91久久久更新时间| 色综合天天综合网天天狠天天 | 国产精品另类一区| 欧美综合一区二区三区| av亚洲精华国产精华| 国产精品白丝av| 久久精品国产成人一区二区三区| 麻豆精品在线看| 国产午夜亚洲精品不卡| 国产精品免费aⅴ片在线观看| 亚洲视频一区二区在线| 亚洲a一区二区| 精品一区二区三区日韩| 亚洲欧洲另类国产综合| 日韩影视精彩在线| 日本v片在线高清不卡在线观看| 国产精品久久久久影院老司 | 国产日韩欧美电影| 欧美一激情一区二区三区| 国产成人aaa| 91视频你懂的| 精品在线免费观看| 国产乱子轮精品视频| www.成人在线| 欧美精品久久久久久久久老牛影院| 精品嫩草影院久久| ...中文天堂在线一区| 日韩黄色免费电影| 成人手机在线视频| 91麻豆精品久久久久蜜臀| 久久婷婷国产综合国色天香| 亚洲自拍偷拍av| 美女视频一区二区| 色一情一乱一乱一91av| 日韩女优电影在线观看| 国产精品久久三| 卡一卡二国产精品| 成人午夜视频在线观看| 欧美影院一区二区三区| 久久综合久久99| 一区二区三区电影在线播| 国内精品免费在线观看| 日韩高清电影一区| 99精品欧美一区二区三区小说| 久久久影视传媒| 日韩中文字幕1| voyeur盗摄精品| 日韩欧美国产电影| 国产精品久久一卡二卡| 老司机免费视频一区二区| av电影在线观看一区| 欧美日韩亚洲国产综合| 视频一区中文字幕国产| 97精品久久久久中文字幕| 91精品综合久久久久久| 亚洲免费电影在线| 国产盗摄一区二区| 日韩免费视频一区二区| av一二三不卡影片| 欧美三级电影在线观看| 国产资源精品在线观看| 欧美一卡在线观看| 亚洲一区二区3| 99麻豆久久久国产精品免费| 欧美成人aa大片| 午夜精品一区二区三区电影天堂 | 99国产精品久久久久久久久久久| 亚洲午夜激情网页| www.欧美.com| 国产欧美精品在线观看| 久久99精品国产.久久久久久 | 久久夜色精品国产噜噜av| 香港成人在线视频| 色综合色综合色综合| 中文字幕一区二区三区精华液| 国产一区二区三区四| 欧美一区二区三区不卡| 午夜欧美大尺度福利影院在线看| 色网站国产精品| 国产精品白丝在线| 成人黄色小视频| 欧美国产精品v| 福利电影一区二区| 精品粉嫩aⅴ一区二区三区四区| 日本不卡视频一二三区| 午夜精品视频在线观看| 怡红院av一区二区三区| 亚洲国产精品久久一线不卡| 色成人在线视频| 亚洲欧美日韩电影| 久久电影网站中文字幕| 日韩精品午夜视频| 懂色av中文字幕一区二区三区| 国产欧美日本一区视频| 粉嫩嫩av羞羞动漫久久久 | 日韩影院免费视频| 6080午夜不卡| 美女脱光内衣内裤视频久久网站| 欧美丰满嫩嫩电影| 久久国产日韩欧美精品| 久久先锋资源网| 国产成人免费视频| 国产精品免费人成网站| 91在线porny国产在线看| 石原莉奈一区二区三区在线观看| 欧美日韩一级片在线观看| 日日摸夜夜添夜夜添国产精品| 国产精品一二一区| 亚洲成人一二三| 成人免费在线观看入口| 欧美一区二区在线看| 欧美午夜免费电影| 99这里只有精品| 麻豆精品久久久| 国产欧美日产一区| 日韩精品一区二| 91精品国产入口在线| 在线免费视频一区二区| 精品在线播放午夜| 美女性感视频久久| 日本vs亚洲vs韩国一区三区 | 欧美区视频在线观看| 91免费视频网址| 日本不卡免费在线视频| 日本一区二区三区电影| 精品1区2区3区| 日本道精品一区二区三区| a级精品国产片在线观看| 精品国产一区二区精华| 首页国产丝袜综合| 91精品中文字幕一区二区三区| 五月天一区二区三区| 久久久噜噜噜久久中文字幕色伊伊| www.欧美.com| 久久99精品久久久久| 精品国产乱码久久久久久免费 | 无码av中文一区二区三区桃花岛| 国产激情91久久精品导航| 精品亚洲aⅴ乱码一区二区三区| 麻豆精品在线播放| 国产一区二区三区免费观看| 在线视频你懂得一区二区三区| 国产成人av一区二区三区在线| 国产在线视频不卡二| 成人综合在线视频| 欧美乱妇23p| 日韩精品一二区| 91精品国产aⅴ一区二区| 国产成人一区在线| 亚洲综合自拍偷拍| 欧美日韩国产高清一区| 欧美日本韩国一区二区三区视频| 日本va欧美va欧美va精品| 久久蜜桃一区二区| 欧美日韩国产精品成人| eeuss鲁片一区二区三区在线观看| 亚洲人成精品久久久久| 在线看一区二区| 一区二区高清免费观看影视大全| 日韩一级大片在线观看| 日本韩国一区二区三区视频| 国产一区二区调教| 日韩国产精品大片| 一区二区三区国产豹纹内裤在线| 久久久久久影视| 日韩精品影音先锋| 欧美精选午夜久久久乱码6080| 不卡视频在线观看| 国产一区二区三区美女| 人人超碰91尤物精品国产| 一区二区成人在线| 国产精品久久精品日日| 久久久久久一级片| 久久一区二区视频| 日韩欧美在线网站| 欧美三级电影精品| 精品污污网站免费看| 色偷偷久久人人79超碰人人澡 | 亚洲一区二区高清| 99精品欧美一区二区三区综合在线| 亚洲成人资源网| 欧美日韩激情一区二区三区|