📄 filters.po
字号:
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#: filters.xml:5#, no-c-formatmsgid "Filtering data"msgstr "데이터 필터링하기"#. Tag: para#: filters.xml:7#, no-c-formatmsgid """Hibernate3 provides an innovative new approach to handling data with ""\"visibility\" rules. A <emphasis>Hibernate filter</emphasis> is a global, ""named, parameterized filter that may be enabled or disabled for a particular ""Hibernate session."msgstr """Hibernate3은 혁신적인 \"가시성(visibility)\" 규칙들로서 데이터를 처리하는 새""로운 접근법을 제공한다. <emphasis>Hibernate 필터</emphasis>는 특정 Hibernate ""세션에 대해 이용 가능하게 되거나 이용 불가능하게 될 수도 있는 전역, 명명된 파""라미터화 된 필터이다."#. Tag: title#: filters.xml:14#, no-c-formatmsgid "Hibernate filters"msgstr "Hibernate 필터들"#. Tag: para#: filters.xml:16#, no-c-formatmsgid """Hibernate3 adds the ability to pre-define filter criteria and attach those ""filters at both a class and a collection level. A filter criteria is the ""ability to define a restriction clause very similiar to the existing \"where""\" attribute available on the class and various collection elements. Except ""these filter conditions can be parameterized. The application can then make ""the decision at runtime whether given filters should be enabled and what ""their parameter values should be. Filters can be used like database views, ""but parameterized inside the application."msgstr """Hibernate3은 필터 기준(criteria)을 미리 정의하고 클래스 레벨과 콜렉션 레벨 양""자에서 그들 필터들을 첨부할 능력을 추가시킨다. 필터 기준(criteria)은 클래스 ""요소와 다양한 콜렉션 요소들에 대해 이용 가능한 기존의 \"where\" 속성과 매우 ""유사한 하나의 제한 절을 정의하는 능력이다. 이것들을 제외하면 필터 조건들은 파""라미터화 될 수 있다. 그때 어플리케이션은 주어진 필터들이 이용 가능한지 여부 ""그리고 그들 파라미터 값들이 무엇이어야 하는지를 실행 시에 결정할 수 있다. 필""터들은 데이터베이스 뷰들 처럼 사용될 수 있지만, 어플리케이션 내부에 파라미터""화 된다."#. Tag: para#: filters.xml:26#, no-c-formatmsgid """In order to use filters, they must first be defined and then attached to the ""appropriate mapping elements. To define a filter, use the <literal><""filter-def/></literal> element within a <literal><hibernate-mapping/""></literal> element:"msgstr """필터들을 사용하기 위해서, 그것들은 먼저 정의되고 나서 적절한 매핑 요소들에 첨""가되어야 한다. 필터를 정의하기 위해, <literal><hibernate-mapping/></""literal> 요소 내부에 <literal><filter-def/></literal> 요소를 사용하라:"#. Tag: programlisting#: filters.xml:32#, no-c-formatmsgid """<![CDATA[<filter-def name=\"myFilter\">\n"" <filter-param name=\"myFilterParam\" type=\"string\"/>\n""</filter-def>]]>"msgstr ""#. Tag: para#: filters.xml:34#, no-c-formatmsgid "Then, this filter can be attached to a class:"msgstr "그때 이 필터는 클래스에 첨가될 수 있다:"#. Tag: programlisting#: filters.xml:38#, no-c-formatmsgid """<![CDATA[<class name=\"myClass\" ...>\n"" ...\n"" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN""\"/>\n""</class>]]>"msgstr ""#. Tag: para#: filters.xml:40#, no-c-formatmsgid "or, to a collection:"msgstr "또는 콜렉션에 첨가될 수 있다:"#. Tag: programlisting#: filters.xml:44#, no-c-formatmsgid """<![CDATA[<set ...>\n"" <filter name=\"myFilter\" condition=\":myFilterParam = MY_FILTERED_COLUMN""\"/>\n""</set>]]>"msgstr ""#. Tag: para#: filters.xml:46#, no-c-formatmsgid "or, even to both (or multiples of each) at the same time."msgstr "또는 동시에 양자에(또는 각각의 여러번) 첨가될 수 있다."#. Tag: para#: filters.xml:50#, no-c-formatmsgid """The methods on <literal>Session</literal> are: <literal>enableFilter(String ""filterName)</literal>, <literal>getEnabledFilter(String filterName)</""literal>, and <literal>disableFilter(String filterName)</literal>. By ""default, filters are <emphasis>not</emphasis> enabled for a given session; ""they must be explcitly enabled through use of the <literal>Session.""enabledFilter()</literal> method, which returns an instance of the ""<literal>Filter</literal> interface. Using the simple filter defined above, ""this would look like:"msgstr """<literal>Session</literal> 상의 메소드들은 다음과 같다: <literal>enableFilter""(String filterName)</literal>, <literal>getEnabledFilter(String filterName)</""literal>, <literal>disableFilter(String filterName)</literal>. 디폴트로, 필터""들은 주어진 세션에 대해 이용 가능하지 <emphasis>않다</emphasis>; 그것들은 ""<literal>Session.enabledFilter()</literal> 메소드의 사용을 통해 명시적으로 이""용 가능하게 되어야 한다. <literal>Session.enabledFilter()</literal>는 ""<literal>Filter</literal> 인터페이스의 인스턴스를 반환한다. 위에 정의된 간단""한 필터를 사용하면, 이것은 다음과 같을 것이다:"#. Tag: programlisting#: filters.xml:59#, no-c-formatmsgid """<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", ""\"some-value\");]]>"msgstr ""#. Tag: para#: filters.xml:61#, no-c-formatmsgid """Note that methods on the org.hibernate.Filter interface do allow the method-""chaining common to much of Hibernate."msgstr """org.hibernate.Filter 인터페이스 상의 메소드들은 Hibernate에 매우 공통된 ""method-chaining을 허용한다는 점을 노트하라."#. Tag: para#: filters.xml:65#, no-c-formatmsgid """A full example, using temporal data with an effective record date pattern:"msgstr "유효한 기록 날짜 패턴을 가진 시간 데이터를 사용하는 전체 예제 :"#. Tag: programlisting#: filters.xml:69#, no-c-formatmsgid """<![CDATA[<filter-def name=\"effectiveDate\">\n"" <filter-param name=\"asOfDate\" type=\"date\"/>\n""</filter-def>\n""\n""<class name=\"Employee\" ...>\n""...\n"" <many-to-one name=\"department\" column=\"dept_id\" class=\"Department\"/"">\n"" <property name=\"effectiveStartDate\" type=\"date\" column=\"eff_start_dt""\"/>\n"" <property name=\"effectiveEndDate\" type=\"date\" column=\"eff_end_dt\"/"">\n""...\n"" <!--\n"" Note that this assumes non-terminal records have an eff_end_dt set ""to\n"" a max db date for simplicity-sake\n"" -->\n"" <filter name=\"effectiveDate\"\n"" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/>\n""</class>\n""\n""<class name=\"Department\" ...>\n""...\n"" <set name=\"employees\" lazy=\"true\">\n"" <key column=\"dept_id\"/>\n"" <one-to-many class=\"Employee\"/>\n"" <filter name=\"effectiveDate\"\n"" condition=\":asOfDate BETWEEN eff_start_dt and eff_end_dt\"/"">\n"" </set>\n""</class>]]>"msgstr ""#. Tag: para#: filters.xml:71#, no-c-formatmsgid """Then, in order to ensure that you always get back currently effective ""records, simply enable the filter on the session prior to retrieving ""employee data:"msgstr """그때 당신이 현재 유효한 레코드들을 항상 얻는 것을 확실히 하기 위해, employee ""데이터를 검색하기 전에 세션 상에 필터를 간단하게 이용 가능하게 하라:"#. Tag: programlisting#: filters.xml:76#, no-c-formatmsgid """<![CDATA[Session session = ...;\n""session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date""());\n""List results = session.createQuery(\"from Employee as e where e.salary > :""targetSalary\")\n"" .setLong(\"targetSalary\", new Long(1000000))\n"" .list();\n""]]>"msgstr ""#. Tag: para#: filters.xml:78#, no-c-formatmsgid """In the HQL above, even though we only explicitly mentioned a salary ""constraint on the results, because of the enabled filter the query will ""return only currently active employees who have a salary greater than a ""million dollars."msgstr """위의 HQL 에서, 심지어 비록 우리가 결과들에 대한 봉급 컨스트레인트를 명시적으""로 언급만 했을지라도, 이용 가능한 필터 때문에 그 질의는 봉급이 백만달러 이상""인 현재 채용중인 직원들만을 반환할 것이다."#. Tag: para#: filters.xml:84#, no-c-formatmsgid """Note: if you plan on using filters with outer joining (either through HQL or ""load fetching) be careful of the direction of the condition expression. Its ""safest to set this up for left outer joining; in general, place the ""parameter first followed by the column name(s) after the operator."msgstr """노트: 만일 당신이 outer 조인에 대해 필터들을 사용할 계획이라면 (HQL이든 로드 ""페칭이든) 조건 표현식의 방향을 주의하라. 이것을 left outer join으로 설정하는 ""것이 가장 안전하다; 일반적으로 오퍼레이터 뒤에 있는 컬럼 이름(들)이 뒤따르는 ""첫번째에 파라미터를 위치지워라."#. Tag: para#: filters.xml:91#, no-c-formatmsgid """After being defined a filter might be attached to multiple entities and/or ""collections each with its own condition. That can be tedious when the ""conditions are the same each time. Thus <literal><filter-def/></""literal> allows defining a default condition, either as an attribute or ""CDATA:"msgstr """필터가 정의된 후에는 그것 자신의 조건에 대해 각각 여러 개의 엔티티들 그리고/""또는 콜렉션들에 첨가될 수 있다. 조건들이 매번 동일할 때 그것은 지루할 수 있""다. 따라서 <literal><filter-def/></literal>은 attribute 든 CDATA 든 어""느것이든 디폴트 조건을 정의하는 것을 허용해준다:"#. Tag: programlisting#: filters.xml:98#, no-c-formatmsgid """<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-""def>\n""<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"msgstr ""#. Tag: para#: filters.xml:100#, no-c-formatmsgid """This default condition will then be used whenever the filter is attached to ""something without specifying a condition. Note that this means you can give ""a specific condition as part of the attachment of the filter which overrides ""the default condition in that particular case."msgstr """그때 이 디폴트 조건은 그 필터가 어떤 조건을 지정함이 없이 어떤 것에 첨가될때""마다 사용될 수 있다. 이것은 당신이 특정한 경우에 디폴트 조건을 오버라이드 시""키는 필터의 첨가 부분으로서 특정 조건을 부여할 수 있음을 의미함을 노트하라."
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -