⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 architecture.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 3 页
字号:
"See <xref linkend=\"configuration-optional-statistics\"/>."msgstr """JMXサービスとして利用可能な他の機能に、Hibernate実行時統計情報があります。 ""<xref linkend=\"configuration-optional-statistics\"/> を見てください。"#. Tag: title#: architecture.xml:279#, no-c-formatmsgid "JCA Support"msgstr "JCA サポート"#. Tag: para#: architecture.xml:280#, no-c-formatmsgid """Hibernate may also be configured as a JCA connector. Please see the website ""for more details. Please note that Hibernate JCA support is still considered ""experimental."msgstr """Hibernate は JCA コネクタとしても設定できます。詳細については、Webサイトを見""てください。 Hibernate JCA サポートは、今のところ実験段階として考えられている""ことに注意してください。"#. Tag: title#: architecture.xml:287#, no-c-formatmsgid "Contextual Sessions"msgstr "コンテキスト上のセッション"#. Tag: para#: architecture.xml:288#, no-c-formatmsgid """Most applications using Hibernate need some form of \"contextual\" sessions, ""where a given session is in effect throughout the scope of a given context. ""However, across applications the definition of what constitutes a context is ""typically different; and different contexts define different scopes to the ""notion of current. Applications using Hibernate prior to version 3.0 tended ""to utilize either home-grown <literal>ThreadLocal</literal>-based contextual ""sessions, helper classes such as <literal>HibernateUtil</literal>, or ""utilized third-party frameworks (such as Spring or Pico) which provided ""proxy/interception-based contextual sessions."msgstr """Hibernate を使ったアプリケーションは、ほとんど、なんらかの形で\"コンテキスト""上の\"セッションが必要になります。 「コンテキスト上のセッション」は、特定のコ""ンテキストのスコープのなかで有効なセッションのことです。 しかし、通常アプリ""ケーションごとにコンテキストを構成するものの定義は異なります。 しかも、異なる""複数のコンテキストは、現時点に対して異なるスコープを定義します。 バージョン""3.0より前の Hibernate では、自作の <literal>ThreadLocal</literal> ベースの""「コンテキスト上のセッション」を 利用するか、 <literal>HibernateUtil</""literal> のようなヘルパークラスを利用するか、 proxy/interception ベースの「コ""ンテキスト上のセッション」を提供する (Spring や Pico のような)サードパー""ティのフレームワークを利用するかのいずれかでした。"#. Tag: para#: architecture.xml:297#, no-c-formatmsgid """Starting with version 3.0.1, Hibernate added the <literal>SessionFactory.""getCurrentSession()</literal> method. Initially, this assumed usage of ""<literal>JTA</literal> transactions, where the <literal>JTA</literal> ""transaction defined both the scope and context of a current session. The ""Hibernate team maintains that, given the maturity of the numerous stand-""alone <literal>JTA TransactionManager</literal> implementations out there, ""most (if not all) applications should be using <literal>JTA</literal> ""transaction management whether or not they are deployed into a ""<literal>J2EE</literal> container. Based on that, the <literal>JTA</literal>-""based contextual sessions is all you should ever need to use."msgstr """バージョン 3.0.1 から、Hibernate には <literal>SessionFactory.""getCurrentSession()</literal> が 加わりました。 これは、 <literal>JTA</""literal> トランザクションの使用を前提にしています。 <literal>JTA</literal> ト""ランザクションは、現在のセッションのスコープとコンテキストの両方を定義しま""す。 Hibernate チームは、次のことを主張します。 巨大なスタンドアロンの ""<literal>JTA TransactionManager</literal> 実装が成熟したら、 <literal>J2EE</""literal> コンテナ上にデプロイされるかどうかにかかわらず、 ほとんどの(すべて""とは言わないが)アプリケーションが、 <literal>JTA</literal> トランザクション""管理を使用すべきであると。 この考えに基づくと、 <literal>JTA</literal> ベース""の「コンテキスト上のセッション」を 使うしかないでしょう。"#. Tag: para#: architecture.xml:307#, no-c-formatmsgid """However, as of version 3.1, the processing behind <literal>SessionFactory.""getCurrentSession()</literal> is now pluggable. To that end, a new extension ""interface (<literal>org.hibernate.context.CurrentSessionContext</literal>) ""and a new configuration parameter (<literal>hibernate.""current_session_context_class</literal>) have been added to allow ""pluggability of the scope and context of defining current sessions."msgstr """しかし、バージョン 3.1 からは、 <literal>SessionFactory.getCurrentSession()</""literal> の後の処理が、 プラガブルになりました。 これを受けて、現在のセッショ""ンを定義するスコープとコンテキストのプラガビリティを可能にするために、 新しい""拡張インタフェース ( <literal>org.hibernate.context.CurrentSessionContext</""literal> ) と 新しい構成パラメータ ( <literal>hibernate.""current_session_context_class</literal> ) が追加されました。"#. Tag: para#: architecture.xml:314#, no-c-formatmsgid """See the Javadocs for the <literal>org.hibernate.context.""CurrentSessionContext</literal> interface for a detailed discussion of its ""contract. It defines a single method, <literal>currentSession()</literal>, ""by which the implementation is responsible for tracking the current ""contextual session. Out-of-the-box, Hibernate comes with three ""implementations of this interface."msgstr """<literal>org.hibernate.context.CurrentSessionContext</literal> インタフェース""の規約についての 詳細な内容は Javadoc を参照してください。 それには、 ""<literal>currentSession()</literal> という1つのメソッドが定義されており、 そ""の実装は、現在の「コンテキスト上のセッション」を追跡することに責任を持ちま""す。 そのまま使えるように、Hibernateはこのインタフェースの実装を2つ提供してい""ます。"#. Tag: para#: architecture.xml:324#, no-c-formatmsgid """<literal>org.hibernate.context.JTASessionContext</literal> - current ""sessions are tracked and scoped by a <literal>JTA</literal> transaction. The ""processing here is exactly the same as in the older JTA-only approach. See ""the Javadocs for details."msgstr """<literal>org.hibernate.context.JTASessionContext</literal> - <literal>JTA</""literal> トランザクションによって、現在のセッションが追跡され、 スコープを決""められます。この処理は、古いJTAだけのアプローチとまったく同じです。 詳細は""Javadocを参照してください。"#. Tag: para#: architecture.xml:332#, no-c-formatmsgid """<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - current ""sessions are tracked by thread of execution. Again, see the Javadocs for ""details."msgstr """<literal>org.hibernate.context.ThreadLocalSessionContext</literal> - スレッド""の実行によって、現在のセッションが追跡されます。 詳細はJavadocを参照してくだ""さい。"#. Tag: para#: architecture.xml:338#, no-c-formatmsgid """<literal>org.hibernate.context.ManagedSessionContext</literal> - current ""sessions are tracked by thread of execution. However, you are responsible to ""bind and unbind a <literal>Session</literal> instance with static methods on ""this class, it does never open, flush, or close a <literal>Session</literal>."msgstr """<literal>org.hibernate.context.ManagedSessionContext</literal> - スレッドの実""行によって、現在のセッションが追跡されます。 しかし、このクラスのstaticメソッ""ドで <literal>Session</literal> インスタンスを バインド/アンバインドする責任""はあなたにあります。 これは決して <literal>Session</literal> をオープン、フ""ラッシュ、クローズしません。"#. Tag: para#: architecture.xml:347#, no-c-formatmsgid """The first two implementations provide a \"one session - one database ""transaction\" programming model, also known and used as <emphasis>session-""per-request</emphasis>. The beginning and end of a Hibernate session is ""defined by the duration of a database transaction. If you use programatic ""transaction demarcation in plain JSE without JTA, you are adviced to use the ""Hibernate <literal>Transaction</literal> API to hide the underlying ""transaction system from your code. If you use JTA, use the JTA interfaces to ""demarcate transactions. If you execute in an EJB container that supports ""CMT, transaction boundaries are defined declaratively and you don't need any ""transaction or session demarcation operations in your code. Refer to <xref ""linkend=\"transactions\"/> for more information and code examples."msgstr """始めの2つの実装は、\"1セッション - 1データベーストランザクション\" プログラミ""ングモデルを提供します。 これは <emphasis>リクエストごとのセッション""(session-per-request)</emphasis> としても知られており、使われています。 ""Hibernate セッションの開始と終了は、データベーストランザクションの期間で決ま""ります。 JTAを使わない普通のJSEで、プログラム上のトランザクション境界設定を行""うなら、 コードから基礎のトランザクションシステムを隠蔽するために、 ""Hibernate <literal>Transaction</literal> APIを使うとよいでしょう。 JTAを使う""なら、トランザクションの境界設定には、JTAインターフェイスを使ってください。 ""CMTをサポートするEJBコンテナで実行するつもりなら、トランザクション境界は宣言""的に定義できるため、 コード上でトランザクションやセッションの境界を設定する必""要はありません。 さらに詳細な情報やコードの例は、 <xref linkend=""\"transactions\"/> を参照してください。"#. Tag: para#: architecture.xml:359#, no-c-formatmsgid """The <literal>hibernate.current_session_context_class</literal> configuration ""parameter defines which <literal>org.hibernate.context.""CurrentSessionContext</literal> implementation should be used. Note that for ""backwards compatibility, if this config param is not set but a <literal>org.""hibernate.transaction.TransactionManagerLookup</literal> is configured, ""Hibernate will use the <literal>org.hibernate.context.JTASessionContext</""literal>. Typically, the value of this parameter would just name the ""implementation class to use; for the three out-of-the-box implementations, ""however, there are three corresponding short names, \"jta\", \"thread\", and ""\"managed\"."msgstr """<literal>hibernate.current_session_context_class</literal> 設定パラメータ""は、 <literal>org.hibernate.context.CurrentSessionContext</literal> のどの実""装を使うかを指定します。 下位互換性のため、このパラメータが設定されず ""<literal>org.hibernate.transaction.TransactionManagerLookup</literal> が設定""されていた場合、 Hibernateは <literal>org.hibernate.context.""JTASessionContext</literal> を使うことに注意してください。 通常このパラメータ""の値には、3つの実装の中から使用する実装クラスの名前を直接指定します。 しか""し、\"jta\", \"thread\", \"managed\"というそれぞれの省略名も用意されていま""す。"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -