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

📄 session_api.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 5 页
字号:
"\"objectstate-transitive\"/>."msgstr """어플리케이션은 만일 그것이 detached 인스턴스들의 상태가 또한 업데이트 되는 것""을 원할 경우에<emphasis>만</emphasis> 주어진 detached 인스턴스로부터 도달 가""능한 detached 인스턴스들을 개별적으로<literal>update()</literal> 시킬 것이""다. 이것은 물론 <emphasis>transitive persistence(전이 영속)</emphasis>을 사용""하여 자동화 될 수 있고, <xref linkend=\"objectstate-transitive\"/>를 보라."#. Tag: para#: session_api.xml:560#, no-c-formatmsgid """The <literal>lock()</literal> method also allows an application to ""reassociate an object with a new session. However, the detached instance has ""to be unmodified!"msgstr """<literal>lock()</literal> 메소드는 또한 하나의 객체를 새로운 세션에 대해 다""시 연관시키는것을 어플리케이션에게 허용해준다. 하지만 detached 인스턴스는 변""경되지 않아야 한다!"#. Tag: programlisting#: session_api.xml:565#, no-c-formatmsgid """<![CDATA[//just reassociate:\n""sess.lock(fritz, LockMode.NONE);\n""//do a version check, then reassociate:\n""sess.lock(izi, LockMode.READ);\n""//do a version check, using SELECT ... FOR UPDATE, then reassociate:\n""sess.lock(pk, LockMode.UPGRADE);]]>"msgstr ""#. Tag: para#: session_api.xml:567#, no-c-formatmsgid """Note that <literal>lock()</literal> can be used with various ""<literal>LockMode</literal>s, see the API documentation and the chapter on ""transaction handling for more information. Reattachment is not the only ""usecase for <literal>lock()</literal>."msgstr """<literal>lock()</literal>이 여러가지 <literal>LockMode</literal>들에 사용될 ""수 있음을 노트하고, 상세한 것은 API 문서와 트랜잭션 처리에 관한 장을 보라. 재""첨부는 <literal>lock()</literal>에 대한 유일한 쓰임새는 아니다."#. Tag: para#: session_api.xml:574#, no-c-formatmsgid """Other models for long units of work are discussed in <xref linkend=""\"transactions-optimistic\"/>."msgstr """긴 작업 단위에 대한 다른 모형들은 <xref linkend=\"transactions-optimistic\"/>""에서 논의된다."#. Tag: title#: session_api.xml:581#, no-c-formatmsgid "Automatic state detection"msgstr "자동적인 상태 검출"#. Tag: para#: session_api.xml:583#, no-c-formatmsgid """Hibernate users have requested a general purpose method that either saves a ""transient instance by generating a new identifier or updates/reattaches the ""detached instances associated with its current identifier. The ""<literal>saveOrUpdate()</literal> method implements this functionality."msgstr """Hibernate 사용자들은 새로운 식별자를 생성시켜서 transient 인스턴스를 저장하거""나 그것의 현재 식별자와 연관된 detached 인스턴스들을 업데이트/재첨부 시키는 ""일반적인 용도의 메소드를 요청했다. <literal>saveOrUpdate()</literal> 메소드""는 이 기능을 구현한다."#. Tag: programlisting#: session_api.xml:590#, no-c-formatmsgid """<![CDATA[// in the first session\n""Cat cat = (Cat) firstSession.load(Cat.class, catID);\n""\n""// in a higher tier of the application\n""Cat mate = new Cat();\n""cat.setMate(mate);\n""\n""// later, in a new session\n""secondSession.saveOrUpdate(cat);   // update existing state (cat has a non-""null id)\n""secondSession.saveOrUpdate(mate);  // save the new instance (mate has a null ""id)]]>"msgstr ""#. Tag: para#: session_api.xml:592#, no-c-formatmsgid """The usage and semantics of <literal>saveOrUpdate()</literal> seems to be ""confusing for new users. Firstly, so long as you are not trying to use ""instances from one session in another new session, you should not need to ""use <literal>update()</literal>, <literal>saveOrUpdate()</literal>, or ""<literal>merge()</literal>. Some whole applications will never use either of ""these methods."msgstr """<literal>saveOrUpdate()</literal>의 사용 예제와 의미는 초심자들에게는 혼동스""러워 보인다. 먼저, 하나의 세션에서 온 인스턴스를 또 다른 새로운 세션 내에서 ""사용하려고 시도하지 않는 한, 당신은 <literal>update()</literal>, ""<literal>saveOrUpdate()</literal>, 또는 <literal>merge()</literal>를 사용할 ""필요는 없을 것이다. 몇몇 전체 어플리케이션들은 이들 메소드들 중 어느 것도 결""코 사용하지 않을 것이다."#. Tag: para#: session_api.xml:600#, no-c-formatmsgid """Usually <literal>update()</literal> or <literal>saveOrUpdate()</literal> are ""used in the following scenario:"msgstr """대개 <literal>update()</literal> 또는 <literal>saveOrUpdate()</literal>는 다""음 시나리오에서 사용된다:"#. Tag: para#: session_api.xml:607#, no-c-formatmsgid "the application loads an object in the first session"msgstr "어플리케이션이 첫 번째 세션 내에 객체를 로드시킨다"#. Tag: para#: session_api.xml:612#, no-c-formatmsgid "the object is passed up to the UI tier"msgstr "객체가 UI 티어로 전달된다"#. Tag: para#: session_api.xml:617#, no-c-formatmsgid "some modifications are made to the object"msgstr "몇몇 변경들이 그 객체에 행해진다"#. Tag: para#: session_api.xml:622#, no-c-formatmsgid "the object is passed back down to the business logic tier"msgstr "객체가 비지니스 로직 티어로 전달된다"#. Tag: para#: session_api.xml:627#, no-c-formatmsgid """the application persists these modifications by calling <literal>update()</""literal> in a second session"msgstr """어플리케이션은 두 번째 세션에서 <literal>update()</literal>를 호출함으로써 이""들 변경들을 영속화 시킨다"#. Tag: para#: session_api.xml:634#, no-c-formatmsgid "<literal>saveOrUpdate()</literal> does the following:"msgstr "<literal>saveOrUpdate()</literal>는 다음을 행한다:"#. Tag: para#: session_api.xml:640#, no-c-formatmsgid "if the object is already persistent in this session, do nothing"msgstr """만일 객체가 이 세션 내에서 이미 영속화 되어 있을 경우, 아무것도 행하지 않는다"#. Tag: para#: session_api.xml:645#, no-c-formatmsgid """if another object associated with the session has the same identifier, throw ""an exception"msgstr """만일 그 세션과 연관된 또 다른 객체가 동일한 식별자를 가질 경우, 예외상황을 던""진다"#. Tag: para#: session_api.xml:651#, no-c-formatmsgid "if the object has no identifier property, <literal>save()</literal> it"msgstr """만일 그 객체가 식별자 프로퍼티를 갖지 않을 경우, 그것을 <literal>save()</""literal> 시킨다"#. Tag: para#: session_api.xml:656#, no-c-formatmsgid """if the object's identifier has the value assigned to a newly instantiated ""object, <literal>save()</literal> it"msgstr """만일 객체의 식별자가 새로이 초기화 된 객체에 할당된 값을 가질 경우, 그것을 ""<literal>save()</literal> 시킨다"#. Tag: para#: session_api.xml:662#, no-c-formatmsgid """if the object is versioned (by a <literal>&lt;version&gt;</literal> or ""<literal>&lt;timestamp&gt;</literal>), and the version property value is the ""same value assigned to a newly instantiated object, <literal>save()</""literal> it"msgstr """만일 객체가 (<literal>&lt;version&gt;</literal> 또는 <literal>&lt;""timestamp&gt;</literal>에 의해) 버전화 되고, version 프로퍼티 값이 새로이 초""기화 된 객체에 할당된 것과 동일한 값일 경우, 그것을 <literal>save()</""literal> 시킨다"#. Tag: para#: session_api.xml:670#, no-c-formatmsgid "otherwise <literal>update()</literal> the object"msgstr "그 밖의 경우 그 객체를 <literal>update()</literal> 시킨다"#. Tag: para#: session_api.xml:676#, no-c-formatmsgid "and <literal>merge()</literal> is very different:"msgstr "그리고 <literal>merge()</literal>는 매우 다르다:"#. Tag: para#: session_api.xml:682#, no-c-formatmsgid """if there is a persistent instance with the same identifier currently ""associated with the session, copy the state of the given object onto the ""persistent instance"msgstr """만일 세션과 현재 연관된 동일한 식별자를 가진 영속 인스턴스가 존재할 경우, 주""어진 객체의 상태를 영속 인스턴스 상으로 복사한다"#. Tag: para#: session_api.xml:689#, no-c-formatmsgid """if there is no persistent instance currently associated with the session, ""try to load it from the database, or create a new persistent instance"msgstr """만일 세션과 현재 연관된 영속 인스턴스가 존재하지 않을 경우, 데이터베이스로부""터 그것을 로드시키려고 시도하거나 새로운 영속 인스턴스를 생성시키려고 시도한""다"#. Tag: para#: session_api.xml:695#, no-c-formatmsgid "the persistent instance is returned"msgstr "영속 인스턴스가 반환된다"#. Tag: para#: session_api.xml:700#, no-c-formatmsgid """the given instance does not become associated with the session, it remains ""detached"msgstr """주어진 인스턴스는 세션과 연관되지 않고, 그것은 detached 상태에 머무른다"#. Tag: title#: session_api.xml:710#, no-c-formatmsgid "Deleting persistent objects"msgstr "영속 객체들을 삭제하기"#. Tag: para#: session_api.xml:712#, no-c-formatmsgid """<literal>Session.delete()</literal> will remove an object's state from the ""database. Of course, your application might still hold a reference to a ""deleted object. It's best to think of <literal>delete()</literal> as making ""a persistent instance transient."msgstr """<literal>Session.delete()</literal>는 데이터베이스로부터 객체의 상태를 제거""할 것이다. 물론 당신의 어플리케이션은 여전히 detached 객체에 대한 참조를 소유""할 것이다. 영속 인스턴스를 transient로 만들 때 <literal>delete()</literal>를 ""생각하는 것이 최상이다."#. Tag: programlisting#: session_api.xml:719#, no-c-formatmsgid "<![CDATA[sess.delete(cat);]]>"msgstr ""#. Tag: para#: session_api.xml:721#, no-c-formatmsgid """You may delete objects in any order you like, without risk of foreign key ""constraint violations. It is still possible to violate a <literal>NOT NULL</""literal> constraint on a foreign key column by deleting objects in the wrong ""order, e.g. if you delete the parent, but forget to delete the children."msgstr """당신은 foreign 키 컨스트레인트 위배들에 대한 위험성 없이 당신이 좋아하는 어""떤 순서로 객체들을 삭제할 수도 있다. 잘못된 순서로 객체들을 삭제함으로써 ""foreign 키 컬럼에 대한 <literal>NOT NULL</literal> 컨스트레인트를 위배할 가능""성이 여전히 존재한다. 예를 들어, 당신이 부모를 삭제하지만, 그 자식들을 삭제하""는 것을 잊은 경우."#. Tag: title#: session_api.xml:732#, no-c-formatmsgid "Replicating object between two different datastores"msgstr "두 개의 다른 데이터저장소들 사이에 객체들을 복제하기"#. Tag: para#: session_api.xml:734#, no-c-formatmsgid """It is occasionally useful to be able to take a graph of persistent instances ""and make them persistent in a different datastore, without regenerating ""identifier values."msgstr """영속 인스턴스들의 그래프를 취하고 식별자 값들을 다시 생성시키지 않고서 그것들""을 다른 저장소 속에 영속화 시키는 것을 가능하도록 만드는 것이 종종 유용하다."#. Tag: programlisting#: session_api.xml

⌨️ 快捷键说明

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