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

📄 architecture.po

📁 hibernate-distribution-3.3.1.GA-dist.zip源码
💻 PO
📖 第 1 页 / 共 2 页
字号:
msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: http://bugs.kde.org\n""POT-Creation-Date: 2008-08-14 15:28+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <LL@li.org>\n""MIME-Version: 1.0\n""Content-Type: text/plain; charset=UTF-8\n""Content-Transfer-Encoding: 8bit\n"#. Tag: title#: architecture.xml:30#, no-c-formatmsgid "Architecture"msgstr "体系结构(Architecture)"#. Tag: title#: architecture.xml:33#, no-c-formatmsgid "Overview"msgstr "概况(Overview)"#. Tag: para#: architecture.xml:35#, no-c-formatmsgid "A (very) high-level view of the Hibernate architecture:"msgstr "一个非常简要的Hibernate体系结构的概要图:"#. Tag: para#: architecture.xml:48#, no-c-formatmsgid """This diagram shows Hibernate using the database and configuration data to ""provide persistence services (and persistent objects) to the application."msgstr """从这个图可以看出,Hibernate使用数据库和配置信息来为应用程序提供持久化服务(以""及持久的对象)。"#. Tag: para#: architecture.xml:53#, no-c-formatmsgid """We would like to show a more detailed view of the runtime architecture. ""Unfortunately, Hibernate is flexible and supports several approaches. We ""will show the two extremes. The \"lite\" architecture has the application ""provide its own JDBC connections and manage its own transactions. This ""approach uses a minimal subset of Hibernate's APIs:"msgstr """我们来更详细地看一下Hibernate运行时体系结构。由于Hibernate非常灵活,且支持多""种应用方案, 所以我们这只描述一下两种极端的情况。“轻型”的体系结构方案,要求应""用程序提供自己的JDBC 连接并管理自己的事务。这种方案使用了Hibernate API的最小""子集:"#. Tag: para#: architecture.xml:70#, no-c-formatmsgid """The \"full cream\" architecture abstracts the application away from the ""underlying JDBC/JTA APIs and lets Hibernate take care of the details."msgstr """“全面解决”的体系结构方案,将应用层从底层的JDBC/JTA API中抽象出来,而让""Hibernate来处理这些细节。"#. Tag: para#: architecture.xml:84#, fuzzy, no-c-formatmsgid "Heres some definitions of the objects in the diagrams:"msgstr "图中各个对象的定义如下: <placeholder-1/>"#. Tag: term#: architecture.xml:89#, no-c-formatmsgid "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"msgstr "SessionFactory (<literal>org.hibernate.SessionFactory</literal>)"#. Tag: para#: architecture.xml:91#, no-c-formatmsgid """A threadsafe (immutable) cache of compiled mappings for a single database. A ""factory for <literal>Session</literal> and a client of ""<literal>ConnectionProvider</literal>. Might hold an optional (second-level) ""cache of data that is reusable between transactions, at a process- or ""cluster-level."msgstr """针对单个数据库映射关系经过编译后的内存镜像,是线程安全的(不可变)。 它是生成""<literal>Session</literal>的工厂,本身要用到<literal>ConnectionProvider</""literal>。 该对象可以在进程或集群的级别上,为那些事务之间可以重用的数据提供可""选的二级缓存。"#. Tag: term#: architecture.xml:101#, no-c-formatmsgid "Session (<literal>org.hibernate.Session</literal>)"msgstr "Session (<literal>org.hibernate.Session</literal>)"#. Tag: para#: architecture.xml:103#, no-c-formatmsgid """A single-threaded, short-lived object representing a conversation between ""the application and the persistent store. Wraps a JDBC connection. Factory ""for <literal>Transaction</literal>. Holds a mandatory (first-level) cache of ""persistent objects, used when navigating the object graph or looking up ""objects by identifier."msgstr """表示应用程序与持久储存层之间交互操作的一个单线程对象,此对象生存期很短。 其隐""藏了JDBC连接,也是<literal>Transaction</literal>的工厂。 其会持有一个针对持久""化对象的必选(第一级)缓存,在遍历对象图或者根据持久化标识查找对象时会用到。"#. Tag: term#: architecture.xml:113#, no-c-formatmsgid "Persistent objects and collections"msgstr "持久的对象及其集合"#. Tag: para#: architecture.xml:115#, no-c-formatmsgid """Short-lived, single threaded objects containing persistent state and ""business function. These might be ordinary JavaBeans/POJOs, the only special ""thing about them is that they are currently associated with (exactly one) ""<literal>Session</literal>. As soon as the <literal>Session</literal> is ""closed, they will be detached and free to use in any application layer (e.g. ""directly as data transfer objects to and from presentation)."msgstr """带有持久化状态的、具有业务功能的单线程对象,此对象生存期很短。 这些对象可能是""普通的JavaBeans/POJO,唯一特殊的是他们正与(仅仅一个)<literal>Session</""literal>相关联。 一旦这个<literal>Session</literal>被关闭,这些对象就会脱离持""久化状态,这样就可被应用程序的任何层自由使用。 (例如,用作跟表示层打交道的数""据传输对象。)"#. Tag: term#: architecture.xml:126#, no-c-formatmsgid "Transient and detached objects and collections"msgstr "瞬态(transient)和脱管(detached)的对象及其集合"#. Tag: para#: architecture.xml:128#, no-c-formatmsgid """Instances of persistent classes that are not currently associated with a ""<literal>Session</literal>. They may have been instantiated by the ""application and not (yet) persisted or they may have been instantiated by a ""closed <literal>Session</literal>."msgstr """那些目前没有与session关联的持久化类实例。 他们可能是在被应用程序实例化后,尚""未进行持久化的对象。 也可能是因为实例化他们的<literal>Session</literal>已经被""关闭而脱离持久化的对象。"#. Tag: term#: architecture.xml:137#, no-c-formatmsgid "Transaction (<literal>org.hibernate.Transaction</literal>)"msgstr "事务Transaction (<literal>org.hibernate.Transaction</literal>)"#. Tag: para#: architecture.xml:139#, no-c-formatmsgid """(Optional) A single-threaded, short-lived object used by the application to ""specify atomic units of work. Abstracts application from underlying JDBC, ""JTA or CORBA transaction. A <literal>Session</literal> might span several ""<literal>Transaction</literal>s in some cases. However, transaction ""demarcation, either using the underlying API or <literal>Transaction</""literal>, is never optional!"msgstr """(可选的)应用程序用来指定原子操作单元范围的对象,它是单线程的,生命周期很""短。 它通过抽象将应用从底层具体的JDBC、JTA以及CORBA事务隔离开。 某些情况下,""一个<literal>Session</literal>之内可能包含多个<literal>Transaction</literal>""对象。 尽管是否使用该对象是可选的,但无论是使用底层的API还是使用""<literal>Transaction</literal>对象,事务边界的开启与关闭是必不可少的。"#. Tag: term#: architecture.xml:150#, no-c-formatmsgid """ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</""literal>)"msgstr """ConnectionProvider (<literal>org.hibernate.connection.ConnectionProvider</""literal>)"#. Tag: para#: architecture.xml:152#, no-c-formatmsgid """(Optional) A factory for (and pool of) JDBC connections. Abstracts ""application from underlying <literal>Datasource</literal> or ""<literal>DriverManager</literal>. Not exposed to application, but can be ""extended/implemented by the developer."msgstr """(可选的)生成JDBC连接的工厂(同时也起到连接池的作用)。 它通过抽象将应用从底""层的<literal>Datasource</literal>或<literal>DriverManager</literal>隔离开。 ""仅供开发者扩展/实现用,并不暴露给应用程序使用。"#. Tag: term#: architecture.xml:160#, no-c-formatmsgid """TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"msgstr """TransactionFactory (<literal>org.hibernate.TransactionFactory</literal>)"#. Tag: para#: architecture.xml:162#, no-c-formatmsgid """(Optional) A factory for <literal>Transaction</literal> instances. Not ""exposed to the application, but can be extended/implemented by the developer."msgstr """(可选的)生成<literal>Transaction</literal>对象实例的工厂。 仅供开发者扩展/""实现用,并不暴露给应用程序使用。"#. Tag: emphasis#: architecture.xml:169#, no-c-formatmsgid "Extension Interfaces"msgstr "扩展接口"#. Tag: para#: architecture.xml:171#, no-c-formatmsgid """Hibernate offers many optional extension interfaces you can implement to ""customize the behavior of your persistence layer. See the API documentation ""for details."msgstr """Hibernate提供了很多可选的扩展接口,你可以通过实现它们来定制你的持久层的行""为。 具体请参考API文档。"#. Tag: para#: architecture.xml:180#, no-c-formatmsgid """Given a \"lite\" architecture, the application bypasses the ""<literal>Transaction</literal>/<literal>TransactionFactory</literal> and/or ""<literal>ConnectionProvider</literal> APIs to talk to JTA or JDBC directly."msgstr """在特定“轻型”的体系结构中,应用程序可能绕过 <literal>Transaction</literal>/""<literal>TransactionFactory</literal> 以及 <literal>ConnectionProvider</""literal> 等API直接跟JTA或JDBC打交道。"#. Tag: title#: architecture.xml:188#, no-c-formatmsgid "Instance states"msgstr "实例状态"#. Tag: para#: architecture.xml:189#, no-c-formatmsgid """An instance of a persistent classes may be in one of three different states, ""which are defined with respect to a <emphasis>persistence context</""emphasis>. The Hibernate <literal>Session</literal> object is the ""persistence context:"msgstr """一个持久化类的实例可能处于三种不同状态中的某一种。 这三种状态的定义则与所谓的""<emphasis>持久化上下文(persistence context)</emphasis>有关。 Hibernate的""<literal>Session</literal>对象就是这个所谓的持久化上下文:"#. Tag: term#: architecture.xml:197#, no-c-formatmsgid "transient"msgstr "瞬态(transient)"#. Tag: para#: architecture.xml:199#, no-c-formatmsgid """The instance is not, and has never been associated with any persistence ""context. It has no persistent identity (primary key value)."msgstr "该实例从未与任何持久化上下文关联过。它没有持久化标识(相当于主键值)。"#. Tag: term#: architecture.xml:207#, no-c-formatmsgid "persistent"msgstr "持久化(persistent)"#. Tag: para#: architecture.xml:209#, no-c-formatmsgid """The instance is currently associated with a persistence context. It has a ""persistent identity (primary key value) and, perhaps, a corresponding row in ""the database. For a particular persistence context, Hibernate ""<emphasis>guarantees</emphasis> that persistent identity is equivalent to ""Java identity (in-memory location of the object)."msgstr """实例目前与某个持久化上下文有关联。 它拥有持久化标识(相当于主键值),并且可能""在数据库中有一个对应的行。 对于某一个特定的持久化上下文,Hibernate<emphasis>"

⌨️ 快捷键说明

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