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

📄 query_criteria.po

📁 hibernate 开源框架的代码 jar包希望大家能喜欢
💻 PO
📖 第 1 页 / 共 2 页
字号:
msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: http://bugs.kde.org\n""POT-Creation-Date: 2007-10-25 07:47+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#: query_criteria.xml:5#, no-c-formatmsgid "Criteria Queries"msgstr "Criteria 질의들"#. Tag: para#: query_criteria.xml:7#, no-c-formatmsgid "Hibernate features an intuitive, extensible criteria query API."msgstr "Hibernate는 직관적인, 확장 가능한 criteria query API를 특징 짓는다."#. Tag: title#: query_criteria.xml:12#, no-c-formatmsgid "Creating a <literal>Criteria</literal> instance"msgstr "<literal>Criteria</literal> 인스턴스 생성하기"#. Tag: para#: query_criteria.xml:14#, no-c-formatmsgid """The interface <literal>org.hibernate.Criteria</literal> represents a query ""against a particular persistent class. The <literal>Session</literal> is a ""factory for <literal>Criteria</literal> instances."msgstr """<literal>org.hibernate.Criteria</literal>인터페이스는 특정 영속 클래스에 대""한 질의를 표현한다. <literal>Session</literal>은 <literal>Criteria</literal> ""인스턴스들에 대한 팩토리이다."#. Tag: programlisting#: query_criteria.xml:20#, no-c-formatmsgid """<![CDATA[Criteria crit = sess.createCriteria(Cat.class);\n""crit.setMaxResults(50);\n""List cats = crit.list();]]>"msgstr ""#. Tag: title#: query_criteria.xml:25#, no-c-formatmsgid "Narrowing the result set"msgstr "결과 셋 제한하기"#. Tag: para#: query_criteria.xml:27#, no-c-formatmsgid """An individual query criterion is an instance of the interface <literal>org.""hibernate.criterion.Criterion</literal>. The class <literal>org.hibernate.""criterion.Restrictions</literal> defines factory methods for obtaining ""certain built-in <literal>Criterion</literal> types."msgstr """개별적인 질의 기준은 <literal>org.hibernate.criterion.Criterion</literal> 인""터페이스의 인스턴스이다. <literal>org.hibernate.criterion.Restrictions</""literal> 클래스는 어떤 미리 만들어진 <literal>Criterion</literal> 타입들을 얻""는 팩토리 메소드들을 정의한다."#. Tag: programlisting#: query_criteria.xml:35#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"Fritz%\") )\n""    .add( Restrictions.between(\"weight\", minWeight, maxWeight) )\n""    .list();]]>"msgstr ""#. Tag: para#: query_criteria.xml:37#, no-c-formatmsgid "Restrictions may be grouped logically."msgstr "제한들은 논리적으로 그룹지워질 수도 있다."#. Tag: programlisting#: query_criteria.xml:41#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"Fritz%\") )\n""    .add( Restrictions.or(\n""        Restrictions.eq( \"age\", new Integer(0) ),\n""        Restrictions.isNull(\"age\")\n""    ) )\n""    .list();]]>"msgstr ""#. Tag: programlisting#: query_criteria.xml:43#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.in( \"name\", new String[] { \"Fritz\", \"Izi\", \"Pk""\" } ) )\n""    .add( Restrictions.disjunction()\n""        .add( Restrictions.isNull(\"age\") )\n""        .add( Restrictions.eq(\"age\", new Integer(0) ) )\n""        .add( Restrictions.eq(\"age\", new Integer(1) ) )\n""        .add( Restrictions.eq(\"age\", new Integer(2) ) )\n""    ) )\n""    .list();]]>"msgstr ""#. Tag: para#: query_criteria.xml:45#, no-c-formatmsgid """There are quite a range of built-in criterion types (<literal>Restrictions</""literal> subclasses), but one that is especially useful lets you specify SQL ""directly."msgstr """미리 만들어진 criterion 타입들(<literal>Restrictions</literal> 서브클래스들)""의 영역이 꽤 존재하지만, 특히 유용한 것은 당신으로 하여금 SQL을 직접 지정하도""록 해준다."#. Tag: programlisting#: query_criteria.xml:50#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.sqlRestriction(\"lower({alias}.name) like lower(?)\", ""\"Fritz%\", Hibernate.STRING) )\n""    .list();]]>"msgstr ""#. Tag: para#: query_criteria.xml:52#, no-c-formatmsgid """The <literal>{alias}</literal> placeholder with be replaced by the row alias ""of the queried entity."msgstr """질의된 엔티티의 행 alias에 의해 대체된 <literal>{alias}</literal> ""placeholder."#. Tag: para#: query_criteria.xml:57#, no-c-formatmsgid """An alternative approach to obtaining a criterion is to get it from a ""<literal>Property</literal> instance. You can create a <literal>Property</""literal> by calling <literal>Property.forName()</literal>."msgstr """criterion을 얻는 대안적인 접근법은 <literal>Property</literal> 인스턴스로부""터 그것을 얻는 것이다. 당신은 <literal>Property.forName()</literal>을 호출하""여 <literal>Property</literal>를 생성시킬 수 있다."#. Tag: programlisting#: query_criteria.xml:63#, no-c-formatmsgid """<![CDATA[\n""Property age = Property.forName(\"age\");\n""List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.disjunction()\n""        .add( age.isNull() )\n""        .add( age.eq( new Integer(0) ) )\n""        .add( age.eq( new Integer(1) ) )\n""        .add( age.eq( new Integer(2) ) )\n""    ) )\n""    .add( Property.forName(\"name\").in( new String[] { \"Fritz\", \"Izi\", ""\"Pk\" } ) )\n""    .list();]]>"msgstr ""#. Tag: title#: query_criteria.xml:68#, no-c-formatmsgid "Ordering the results"msgstr "결과들을 순서지우기(ordering)"#. Tag: para#: query_criteria.xml:70#, no-c-formatmsgid """You may order the results using <literal>org.hibernate.criterion.Order</""literal>."msgstr """당신은 <literal>org.hibernate.criterion.Order</literal>를 사용하여 결과들을 ""순서(ordering)지울 수 있다."#. Tag: programlisting#: query_criteria.xml:74#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"F%\")\n""    .addOrder( Order.asc(\"name\") )\n""    .addOrder( Order.desc(\"age\") )\n""    .setMaxResults(50)\n""    .list();]]>"msgstr ""#. Tag: programlisting#: query_criteria.xml:76#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Property.forName(\"name\").like(\"F%\") )\n""    .addOrder( Property.forName(\"name\").asc() )\n""    .addOrder( Property.forName(\"age\").desc() )\n""    .setMaxResults(50)\n""    .list();]]>"msgstr ""#. Tag: title#: query_criteria.xml:81#, no-c-formatmsgid "Associations"msgstr "연관들"#. Tag: para#: query_criteria.xml:83#, no-c-formatmsgid """You may easily specify constraints upon related entities by navigating ""associations using <literal>createCriteria()</literal>."msgstr """당신은 <literal>createCriteria()</literal>를 사용하여 연관들을 네비게이트함으""로써 관계된 엔티티들에 대한 컨스트레인트들을 쉽게 지정할 수 있다."#. Tag: programlisting#: query_criteria.xml:88#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"F%\") )\n""    .createCriteria(\"kittens\")\n""        .add( Restrictions.like(\"name\", \"F%\") )\n""    .list();]]>"msgstr ""#. Tag: para#: query_criteria.xml:90#, no-c-formatmsgid """note that the second <literal>createCriteria()</literal> returns a new ""instance of <literal>Criteria</literal>, which refers to the elements of the ""<literal>kittens</literal> collection."msgstr """두 번째 <literal>createCriteria()</literal>는 <literal>Criteria</literal>의 ""새로운 인스턴스를 반환하며, 그것은 <literal>kittens</literal> 콜렉션의 요소들""을 참조한다는 점을 노트하라."#. Tag: para#: query_criteria.xml:96#, no-c-formatmsgid "The following, alternate form is useful in certain circumstances."msgstr "다음 대체 형식은 어떤 환경들에서 유용하다."#. Tag: programlisting#: query_criteria.xml:100#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .createAlias(\"kittens\", \"kt\")\n""    .createAlias(\"mate\", \"mt\")\n""    .add( Restrictions.eqProperty(\"kt.name\", \"mt.name\") )\n""    .list();]]>"msgstr ""#. Tag: para#: query_criteria.xml:102#, no-c-formatmsgid """(<literal>createAlias()</literal> does not create a new instance of ""<literal>Criteria</literal>.)"msgstr """(<literal>createAlias()</literal>는 <literal>Criteria</literal>의 새로운 인스""턴스를 생성시키지 않는다.)"#. Tag: para#: query_criteria.xml:107#, no-c-formatmsgid """Note that the kittens collections held by the <literal>Cat</literal> ""instances returned by the previous two queries are <emphasis>not</emphasis> ""pre-filtered by the criteria! If you wish to retrieve just the kittens that ""match the criteria, you must use a <literal>ResultTransformer</literal>."msgstr """앞의 두 개의 질의들에 의해 반환된 <literal>Cat</literal> 인스턴스들에 의해 보""관된 kittens 콜렉션들은 criteria에 의해 사전-필터링되지 <emphasis>않는다</""emphasis>는 점을 노트하라! 만일 당신이 criteria(기준)과 일치하는 고양이 새끼""들을 단지 검색하고자 원할 경우, 당신은 하나의 <literal>ResultTransformer</""literal>를 사용해야 한다."#. Tag: programlisting#: query_criteria.xml:114#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .createCriteria(\"kittens\", \"kt\")\n""        .add( Restrictions.eq(\"name\", \"F%\") )\n""    .setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP)\n""    .list();\n""Iterator iter = cats.iterator();\n""while ( iter.hasNext() ) {\n""    Map map = (Map) iter.next();\n""    Cat cat = (Cat) map.get(Criteria.ROOT_ALIAS);\n""    Cat kitten = (Cat) map.get(\"kt\");\n""}]]>"msgstr ""#. Tag: title#: query_criteria.xml:119#, no-c-formatmsgid "Dynamic association fetching"msgstr "동적인 연관 페칭"#. Tag: para#: query_criteria.xml:121#, no-c-formatmsgid """You may specify association fetching semantics at runtime using ""<literal>setFetchMode()</literal>."msgstr """당신은 <literal>setFetchMode()</literal>를 사용하여 실행 시에 연관 페칭 의미""를 지정할 수 있다."#. Tag: programlisting#: query_criteria.xml:126#, no-c-formatmsgid """<![CDATA[List cats = sess.createCriteria(Cat.class)\n""    .add( Restrictions.like(\"name\", \"Fritz%\") )\n""    .setFetchMode(\"mate\", FetchMode.EAGER)\n""    .setFetchMode(\"kittens\", FetchMode.EAGER)\n""    .list();]]>"msgstr ""#. Tag: para#: query_criteria.xml:128#, no-c-formatmsgid """This query will fetch both <literal>mate</literal> and <literal>kittens</""literal> by outer join. See <xref linkend=\"performance-fetching\"/> for ""more information."msgstr """이 질의는 outer 조인으로 <literal>mate</literal>와 <literal>kittens</""literal> 모두를 페치할 것이다. 추가 정보는 <xref linkend=\"performance-""fetching\"/>을 보라."#. Tag: title#: query_criteria.xml:136#, no-c-formatmsgid "Example queries"msgstr "예제 질의들"#. Tag: para#: query_criteria.xml:138#, no-c-formatmsgid """The class <literal>org.hibernate.criterion.Example</literal> allows you to ""construct a query criterion from a given instance."msgstr """<literal>org.hibernate.criterion.Example</literal> 클래스는 주어진 인스턴스로""부터 질의 기준(criterion)을 구조화 시키는 것을 당신에게 허용해준다."#. Tag: programlisting#: query_criteria.xml:143#, no-c-formatmsgid """<![CDATA[Cat cat = new Cat();\n""cat.setSex('F');\n""cat.setColor(Color.BLACK);\n""List results = session.createCriteria(Cat.class)\n""    .add( Example.create(cat) )\n""    .list();]]>"msgstr ""#. Tag: para#: query_criteria.xml:145#, no-c-formatmsgid """Version properties, identifiers and associations are ignored. By default, ""null valued properties are excluded."

⌨️ 快捷键说明

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