alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Hibernate example source code file (architecture.po)

This example Hibernate source code file (architecture.po) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Hibernate tags/keywords

a, api, hibernate, hibernate, it, jboss, jdbc, jmx, jmx, jta, jta, tag, tag, the

The Hibernate architecture.po source code

# translation of Collection_Mapping.po to
# Xi HUANG <xhuang@redhat.com>, 2007, 2010.
msgid ""
msgstr ""
"Project-Id-Version: Collection_Mapping\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2010-07-21 05:38+0000\n"
"PO-Revision-Date: 2010-01-13 10:25+1000\n"
"Last-Translator: Xi HUANG <xhuang@redhat.com>\n"
"Language-Team:  <en@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"

#. Tag: title
#: architecture.xml:34
#, no-c-format
msgid "Architecture"
msgstr "アーキテクチャ"

#. Tag: title
#: architecture.xml:37
#, no-c-format
msgid "Overview"
msgstr "概観"

#. Tag: para
#: architecture.xml:39
#, no-c-format
msgid ""
"The diagram below provides a high-level view of the Hibernate architecture:"
msgstr "Hibernate アーキテクチャの(非常に)高いレベルからのビュー:"

#. Tag: para
#: architecture.xml:52
#, no-c-format
msgid ""
"Unfortunately we cannot provide a detailed view of all possible runtime "
"architectures. Hibernate is sufficiently flexible to be used in a number of "
"ways in many, many architectures. We will, however, illustrate 2 "
"specifically since they are extremes."
msgstr ""

#. Tag: title
#: architecture.xml:59
#, fuzzy, no-c-format
msgid "Minimal architecture"
msgstr "アーキテクチャ"

#. Tag: para
#: architecture.xml:61
#, fuzzy, no-c-format
msgid ""
"The \"minimal\" architecture has the application manage its own JDBC "
"connections and provide those connections to Hibernate; additionally the "
"application manages transactions for itself. This approach uses a minimal "
"subset of Hibernate APIs."
msgstr ""
"ここで実行時アーキテクチャのより詳細なビューをお見せしましょう。あいにく、 "
"Hibernate は柔軟であり、いろいろなアプローチをサポートしています。ここでは、2"
"つの極端な例をお見せします。「軽い」アーキテクチャでは、アプリケーションが自"
"前の JDBC コネクションを用意し、アプリケーション自身がトランザクションを管理"
"します。この方法は、 Hibernate API の最小限のサブセットを使います:"

#. Tag: title
#: architecture.xml:77
#, no-c-format
msgid "Comprehensive architecture"
msgstr ""

#. Tag: para
#: architecture.xml:79
#, fuzzy, no-c-format
msgid ""
"The \"comprehensive\" architecture abstracts the application away from the "
"underlying JDBC/JTA APIs and allows Hibernate to manage the details."
msgstr ""
"「軽い」アーキテクチャは、アプリケーションから、その下に位置する JDBC や JTA "
"の API を取り払って抽象化し、その詳細の面倒を Hibernate に見させます。"

#. Tag: title
#: architecture.xml:94
#, no-c-format
msgid "Basic APIs"
msgstr ""

#. Tag: para
#: architecture.xml:95
#, no-c-format
msgid ""
"Here are quick discussions about some of the API objects depicted in the "
"preceding diagrams (you will see them again in more detail in later "
"chapters)."
msgstr ""

#. Tag: term
#: architecture.xml:100
#, fuzzy, no-c-format
msgid ""
"SessionFactory (<interfacename>org.hibernate.SessionFactory)"
msgstr "SessionFactory (<literal>org.hibernate.SessionFactory)"

#. Tag: para
#: architecture.xml:102
#, fuzzy, no-c-format
msgid ""
"A thread-safe, immutable cache of compiled mappings for a single database. A "
"factory for <interfacename>org.hibernate.Session instances. "
"A client of <interfacename>org.hibernate.connection.ConnectionProvidersecond level cache "
"of data that is reusable between transactions at a process or cluster level."
msgstr ""
"1つのデータベースに対するコンパイルされたマッピングのスレッドセーフな(更新不"
"能の)キャッシュ。 <literal>Session のファクトリであり、 "
"<literal>ConnectionProvider のクライアント。オプションとして、プロ"
"セスまたはクラスタレベルにおいて、トランザクション間で再利用可能なデータの"
"(二次)キャッシュを持ちます。"

#. Tag: term
#: architecture.xml:112
#, fuzzy, no-c-format
msgid "Session (<interfacename>org.hibernate.Session)"
msgstr "Session (<literal>org.hibernate.Session)"

#. Tag: para
#: architecture.xml:114
#, fuzzy, no-c-format
msgid ""
"A single-threaded, short-lived object representing a conversation between "
"the application and the persistent store. Wraps a JDBC <interfacename>java."
"sql.Connection</interfacename>. Factory for org.hibernate."
"Transaction</interfacename>. Maintains a first level cache の"
"ファクトリです。永続オブジェクトの必須の(一次)キャッシュを保持します。この"
"キャッシュはオブジェクトグラフをナビゲーションする時や、識別子でオブジェクト"
"を検索する時に使われます。"

#. Tag: term
#: architecture.xml:126
#, no-c-format
msgid "Persistent objects and collections"
msgstr "Persistent objects と Collections"

#. Tag: para
#: architecture.xml:128
#, fuzzy, no-c-format
msgid ""
"Short-lived, single threaded objects containing persistent state and "
"business function. These can be ordinary JavaBeans/POJOs. They are "
"associated with exactly one <interfacename>org.hibernate.Sessionorg.hibernate.Session と関連していることです。 Session. They may have been "
"instantiated by the application and not yet persisted, or they may have been "
"instantiated by a closed <interfacename>org.hibernate.Session discusses transient, "
"persistent and detached object states."
msgstr ""
"現時点では <literal>Session と関連していない、永続クラスのインスタ"
"ンス。すでにアプリケーション側でインスタンス化されていて、まだ永続化されてい"
"ないか、クローズされた <literal>Session でインスタンス化されたかの"
"どちらかです。"

#. Tag: term
#: architecture.xml:152
#, fuzzy, no-c-format
msgid "Transaction (<interfacename>org.hibernate.Transaction)"
msgstr "Transaction (<literal>org.hibernate.Transaction)"

#. Tag: para
#: architecture.xml:154
#, fuzzy, no-c-format
msgid ""
"(Optional) A single-threaded, short-lived object used by the application to "
"specify atomic units of work. It abstracts the application from the "
"underlying JDBC, JTA or CORBA transaction. A <interfacename>org.hibernate."
"Session</interfacename> might span several org.hibernate."
"Transaction</interfacename>s in some cases. However, transaction "
"demarcation, either using the underlying API or <interfacename>org.hibernate."
"Transaction</interfacename>, is never optional."
msgstr ""
"(オプション) 原子性を持つ作業単位 (Unit of Work) を指定するために、アプリケー"
"ションが使用する、シングルスレッドで短命なオブジェクト。下に位置する JDBC 、 "
"JTA 、 CORBA トランザクションからアプリケーションを抽象化します。 "
"<literal>Session は、時にはいくつかの Transaction を使うにせよ、トランザクション境界を設定するこ"
"とは、決してオプションではありません。"

#. Tag: term
#: architecture.xml:165
#, fuzzy, no-c-format
msgid ""
"ConnectionProvider (<interfacename>org.hibernate.connection."
"ConnectionProvider</interfacename>)"
msgstr ""
"ConnectionProvider (<literal>org.hibernate.connection.ConnectionProviderjava.sql.DriverManager. It "
"is not exposed to application, but it can be extended and/or implemented by "
"the developer."
msgstr ""
"(オプション) JDBC コネクション(とそのプール)のファクトリ。下の層に位置する "
"<literal>Datasource や DriverManager からアプリ"
"ケーションを抽象化します。アプリケーションには公開されませんが、開発者が継承"
"または実装することは可能です。"

#. Tag: term
#: architecture.xml:176
#, fuzzy, no-c-format
msgid ""
"TransactionFactory (<interfacename>org.hibernate.TransactionFactory)"

#. Tag: para
#: architecture.xml:178
#, fuzzy, no-c-format
msgid ""
"(Optional) A factory for <interfacename>org.hibernate.Transaction インスタンスのファクトリ。アプリ"
"ケーションには公開されませんが、開発者が継承または実装することは可能です。"

#. Tag: emphasis
#: architecture.xml:186
#, fuzzy, no-c-format
msgid "Extension Interfaces"
msgstr "<emphasis>Extension Interfaces"

#. Tag: para
#: architecture.xml:188
#, no-c-format
msgid ""
"Hibernate offers a range of optional extension interfaces you can implement "
"to customize the behavior of your persistence layer. See the API "
"documentation for details."
msgstr ""
"Hibernate は、永続層の振る舞いをカスタマイズするために、多くのオプション拡張"
"インタフェースを用意しています。詳細は API ドキュメントを参照してください。"

#. Tag: title
#: architecture.xml:200
#, no-c-format
msgid "JMX Integration"
msgstr "JMX との統合"

#. Tag: para
#: architecture.xml:202
#, no-c-format
msgid ""
"JMX is the J2EE standard for the management of Java components. Hibernate "
"can be managed via a JMX standard service. AN MBean implementation is "
"provided in the distribution: <literal>org.hibernate.jmx.HibernateService-based contextual "
"sessions, helper classes such as <literal>HibernateUtil, 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>HibernateUtil のよ"
"うなヘルパークラスを利用するか、 proxy/interception ベースの「コンテキスト上"
"のセッション」を提供する (Spring や Pico のような)サードパーティのフレーム"
"ワークを利用するかのいずれかでした。"

#. Tag: para
#: architecture.xml:225
#, fuzzy, no-c-format
msgid ""
"Starting with version 3.0.1, Hibernate added the <literal>SessionFactory."
"getCurrentSession()</literal> method. Initially, this assumed usage of "
"<literal>JTA transactions, where the JTA "
"transaction defined both the scope and context of a current session. Given "
"the maturity of the numerous stand-alone <literal>JTA TransactionManager transaction management, whether or not they are "
"deployed into a <literal>J2EE container. Based on that, the "
"<literal>JTA-based contextual sessions are all you need to use."
msgstr ""
"バージョン 3.0.1 から、 Hibernate には <literal>SessionFactory."
"getCurrentSession()</literal> メソッドが加わりました。これは、 JTAJTA ト"
"ランザクションは、現在のセッションのスコープとコンテキストの両方を定義しま"
"す。 Hibernate チームは、次のことを主張します。巨大なスタンドアロンの "
"<literal>JTA TransactionManager 実装が成熟したら、 J2EE トランザクション管"
"理を使用すべきであると。この考えに基づくと、 <literal>JTA ベースの"
"「コンテキスト上のセッション」を使うしかないでしょう。"

#. Tag: para
#: architecture.xml:235
#, no-c-format
msgid ""
"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, "
"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()hibernate."
"current_session_context_class</literal> ) が追加されました。"

#. Tag: para
#: architecture.xml:242
#, fuzzy, no-c-format
msgid ""
"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(), "
"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 インタフェース"
"の規約についての詳細な内容は Javadoc を参照してください。それには、 "
"<literal>currentSession() という1つのメソッドが定義されており、その"
"実装は、現在の「コンテキスト上のセッション」を追跡することに責任を持ちます。"
"そのまま使えるように、 Hibernate はこのインタフェースの実装を2つ提供していま"
"す。"

#. Tag: para
#: architecture.xml:252
#, no-c-format
msgid ""
"<literal>org.hibernate.context.JTASessionContext: current sessions "
"are tracked and scoped by a <literal>JTA 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 - JTA:current "
"sessions are tracked by thread of execution. See the Javadocs for details."
msgstr ""
"<literal>org.hibernate.context.ThreadLocalSessionContext - スレッド"
"の実行によって、現在のセッションが追跡されます。詳細は Javadoc を参照してくだ"
"さい。"

#. Tag: para
#: architecture.xml:266
#, no-c-format
msgid ""
"<literal>org.hibernate.context.ManagedSessionContext: current "
"sessions are tracked by thread of execution. However, you are responsible to "
"bind and unbind a <literal>Session instance with static methods on "
"this class: it does not open, flush, or close a <literal>Session."
msgstr ""
"<literal>org.hibernate.context.ManagedSessionContext - スレッドの実"
"行によって、現在のセッションが追跡されます。しかし、このクラスの static メ"
"ソッドで <literal>Session インスタンスをバインド/アンバインドする責"
"任はあなたにあります。これは決して <literal>Session をオープン、フ"
"ラッシュ、クローズしません。"

#. Tag: para
#: architecture.xml:275
#, fuzzy, no-c-format
msgid ""
"The first two implementations provide a \"one session - one database "
"transaction\" programming model. This is also known and used as "
"<emphasis>session-per-request. The beginning and end of a "
"Hibernate session is defined by the duration of a database transaction. If "
"you use programmatic transaction demarcation in plain JSE without JTA, you "
"are advised to use the Hibernate <literal>Transaction API to hide "
"the underlying transaction system from your code. If you use JTA, you can "
"utilize the JTA interfaces to demarcate transactions. If you execute in an "
"EJB container that supports CMT, transaction boundaries are defined "
"declaratively and you do not 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 API を使うとよいでしょう。 JTA を使"
"うなら、トランザクションの境界設定には、 JTA インターフェースを使ってくださ"
"い。 CMT をサポートする EJB コンテナで実行するつもりなら、トランザクション境"
"界は宣言的に定義できるため、コード上でトランザクションやセッションの境界を設"
"定する必要はありません。さらに詳細な情報やコードの例は、 <xref linkend="
"\"transactions\"/> を参照してください。"

#. Tag: para
#: architecture.xml:287
#, no-c-format
msgid ""
"The <literal>hibernate.current_session_context_class configuration "
"parameter defines which <literal>org.hibernate.context."
"CurrentSessionContext</literal> implementation should be used. For backwards "
"compatibility, if this configuration parameter is not set but a <literal>org."
"hibernate.transaction.TransactionManagerLookup</literal> is configured, "
"Hibernate will use the <literal>org.hibernate.context.JTASessionContext 設定パラメータ"
"は、 <literal>org.hibernate.context.CurrentSessionContext のどの実"
"装を使うかを指定します。下位互換性のため、このパラメータが設定されず "
"<literal>org.hibernate.transaction.TransactionManagerLookup が設定"
"されていた場合、 Hibernate は <literal>org.hibernate.context."
"JTASessionContext</literal> を使うことに注意してください。通常このパラメータ"
"の値には、3つの実装の中から使用する実装クラスの名前を直接指定します。しかし、"
"\"jta\"、 \"thread\"、 \"managed\"というそれぞれの省略名も用意されています。"

#~ msgid "Instance states"
#~ msgstr "インスタンスの状態"

#~ msgid ""
#~ "An instance of a persistent class can be in one of three different "
#~ "states. These states are defined in relation to a <emphasis>persistence "
#~ "context</emphasis>. The Hibernate Session object is "
#~ "the persistence context. The three different states are as follows:"
#~ msgstr ""
#~ "永続クラスのインスタンスは、次の3つの異なる状態のどれかになります。それ"
#~ "は、 <emphasis>永続コンテキスト によって決まります。 Hibernate "
#~ "の <literal>Session オブジェクトが、永続コンテキストになります:"

#~ msgid "transient"
#~ msgstr "transient"

#, fuzzy
#~ msgid ""
#~ "The instance is not associated with any persistence context. It has no "
#~ "persistent identity or primary key value."
#~ msgstr ""
#~ "この状態のインスタンスは、現在もそして過去においても、永続コンテキストに関"
#~ "連づいていません。また、永続 ID (主キーの値)を 持っていません。"

#~ msgid "persistent"
#~ msgstr "persistent"

#~ msgid ""
#~ "The instance is currently associated with a persistence context. It has a "
#~ "persistent identity (primary key value) and can have a corresponding row "
#~ "in the database. For a particular persistence context, Hibernate "
#~ "<emphasis>guarantees that persistent identity is equivalent to "
#~ "Java identity in relation to the in-memory location of the object."
#~ msgstr ""
#~ "この状態のインスタンスは、その時点で永続コンテキストに関連づいています。ま"
#~ "た、永続 ID (主キーの値)を持ち、たいていはデータベースに対応する行を持っ"
#~ "ているでしょう。特定の永続コンテキストのなかでは、永続 ID が Java の ID "
#~ "(オブジェクトのメモリ上の位置)と同じであることを Hibernate が <emphasis>"
#~ "保証</emphasis> します。"

#~ msgid "detached"
#~ msgstr "detached"

#~ msgid ""
#~ "The instance was once associated with a persistence context, but that "
#~ "context was closed, or the instance was serialized to another process. It "
#~ "has a persistent identity and can have a corresponding row in the "
#~ "database. For detached instances, Hibernate does not guarantee the "
#~ "relationship between persistent identity and Java identity."
#~ msgstr ""
#~ "この状態のインスタンスは、かつて永続コンテキストに関連づけられたが、そのコ"
#~ "ンテキストがクローズされたか、あるいは、他のプロセスにそのインスタンスがシ"
#~ "リアライズされたかです。このインスタンスは、永続 ID を持ち、たいていはデー"
#~ "タベースに対応する行を持っているでしょう。分離インスタンスに対しては、永"
#~ "続 ID と Java の ID との関連は、 Hibernate が保証しません。"

#, fuzzy
#~ msgid ""
#~ "We do not have the scope in this document to provide a more detailed view "
#~ "of all the runtime architectures available; Hibernate is flexible and "
#~ "supports several different approaches. We will, however, show the two "
#~ "extremes: \"minimal\" architecture and \"comprehensive\" architecture."
#~ msgstr ""
#~ "ここで実行時アーキテクチャのより詳細なビューをお見せしましょう。あいに"
#~ "く、 Hibernate は柔軟であり、いろいろなアプローチをサポートしています。こ"
#~ "こでは、2つの極端な例をお見せします。「軽い」アーキテクチャでは、アプリ"
#~ "ケーションが自前の JDBC コネクションを用意し、アプリケーション自身がトラン"
#~ "ザクションを管理します。この方法は、 Hibernate API の最小限のサブセットを"
#~ "使います:"

#~ msgid ""
#~ "This next diagram illustrates how Hibernate utilizes database and "
#~ "configuration data to provide persistence services, and persistent "
#~ "objects, to the application."
#~ msgstr ""
#~ "この図は Hibernate が、アプリケーションに対して永続化サービス (と永続オブ"
#~ "ジェクト)を提供するために、データベースと設定データを使うことを示していま"
#~ "す。"

#~ msgid "Here are some definitions of the objects depicted in the diagrams:"
#~ msgstr "以下は、図に含まれるオブジェクトの定義です:"

#~ msgid ""
#~ "Given a \"minimal\" architecture, the application bypasses the "
#~ "<literal>Transaction/TransactionFactory and/"
#~ "or <literal>ConnectionProvider APIs to communicate with JTA or "
#~ "JDBC directly."
#~ msgstr ""
#~ "「軽い」アーキテクチャでは、アプリケーションは直接 JTA や JDBC と対話する"
#~ "ために、 <literal>Transaction や TransactionFactoryConnectionProvider の API をバイパスしま"
#~ "す。"

#~ msgid ""
#~ "For an example of how to deploy Hibernate as a JMX service on the JBoss "
#~ "Application Server, please see the JBoss User Guide. JBoss AS also "
#~ "provides these benefits if you deploy using JMX:"
#~ msgstr ""
#~ "JBoss アプリケーションサーバー上に Hibernate を JMX サービスとしてデプロイ"
#~ "する方法の例としては、 JBoss ユーザーガイドを参照してください。 JBoss アプ"
#~ "リケーションサーバーにおいて、 JMX を使ってデプロイすると、次のメリットが"
#~ "得られます:"

#~ msgid ""
#~ "<emphasis>Session Management: the Hibernate Session; this becomes the job of a JBoss EJB "
#~ "interceptor. You also do not have to worry about transaction demarcation "
#~ "in your code (if you would like to write a portable persistence layer use "
#~ "the optional Hibernate <literal>Transaction API for this). You "
#~ "call the <literal>HibernateContext to access a "
#~ "<literal>Session."
#~ msgstr ""
#~ "<emphasis>セッション管理: Hibernate の Session をオープンし"
#~ "たり、クローズしたりする必要がないことを意味します。これは、 JBoss EJB イ"
#~ "ンターセプタの仕事になります。また、コードのどこでトランザクション境界を設"
#~ "定するかについて、もはや悩む必要がありません(もちろん移植可能な永続層を書"
#~ "かかなくていいのならば、オプションの Hibernate の <literal>TransactionSession にアクセスする"
#~ "ためには、 <literal>HibernateContext をコールしてください。"

#~ msgid ""
#~ "<emphasis>HAR deployment: the Hibernate JMX service is "
#~ "deployed using a JBoss service deployment descriptor in an EAR and/or SAR "
#~ "file, as it supports all the usual configuration options of a Hibernate "
#~ "<literal>SessionFactory. However, you still need to name all "
#~ "your mapping files in the deployment descriptor. If you use the optional "
#~ "HAR deployment, JBoss will automatically detect all mapping files in your "
#~ "HAR file."
#~ msgstr ""
#~ "<emphasis>HAR デプロイ: 通常、( EAR または SAR ファイルにあ"
#~ "る) JBoss サービスデプロイメントディスクリプタを使って、 Hibernate JMX "
#~ "サービスをデプロイします。それは、 Hibernate の <literal>SessionFactory

Other Hibernate examples (source code examples)

Here is a short list of links related to this Hibernate architecture.po source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.