[HHH-3071] Hibernate documentation error : session.enabledFilter

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14586 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Diego Plentz 2008-04-28 06:02:18 +00:00
parent dc61408401
commit c966a688a1
14 changed files with 32 additions and 32 deletions

View File

@ -108,7 +108,7 @@
</para> </para>
<programlisting><![CDATA[Session session = ...; <programlisting><![CDATA[Session session = ...;
session.enabledFilter("effectiveDate").setParameter("asOfDate", new Date()); session.enableFilter("effectiveDate").setParameter("asOfDate", new Date());
List results = session.createQuery("from Employee as e where e.salary > :targetSalary") List results = session.createQuery("from Employee as e where e.salary > :targetSalary")
.setLong("targetSalary", new Long(1000000)) .setLong("targetSalary", new Long(1000000))
.list(); .list();

View File

@ -61,7 +61,7 @@
<literal>getEnabledFilter(String filterName)</literal>, et <literal>disableFilter(String filterName)</literal>. <literal>getEnabledFilter(String filterName)</literal>, et <literal>disableFilter(String filterName)</literal>.
Par défaut, les filtres <emphasis>ne sont pas</emphasis> activés pour une session donnée ; Par défaut, les filtres <emphasis>ne sont pas</emphasis> activés pour une session donnée ;
ils doivent être explicitement activés en appelant la méthode ils doivent être explicitement activés en appelant la méthode
<literal>Session.enabledFilter()</literal>, laquelle retourne une instance de l'interface <literal>Session.enableFilter()</literal>, laquelle retourne une instance de l'interface
<literal>Filter</literal>. Utiliser le simple filtre défini au-dessus ressemblerait à : <literal>Filter</literal>. Utiliser le simple filtre défini au-dessus ressemblerait à :
</para> </para>
@ -112,7 +112,7 @@
</para> </para>
<programlisting><![CDATA[Session session = ...; <programlisting><![CDATA[Session session = ...;
session.enabledFilter("effectiveDate").setParameter("asOfDate", new Date()); session.enableFilter("effectiveDate").setParameter("asOfDate", new Date());
List results = session.createQuery("from Employee as e where e.salary > :targetSalary") List results = session.createQuery("from Employee as e where e.salary > :targetSalary")
.setLong("targetSalary", new Long(1000000)) .setLong("targetSalary", new Long(1000000))
.list(); .list();

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<chapter id="filters"> <chapter id="filters">
<title>データのフィルタリング</title> <title>データのフィルタリング</title>
@ -60,7 +60,7 @@
<literal>Session</literal> 上のメソッドは <literal>enableFilter(String filterName)</literal>, <literal>Session</literal> 上のメソッドは <literal>enableFilter(String filterName)</literal>,
<literal>getEnabledFilter(String filterName)</literal>, <literal>disableFilter(String filterName)</literal> です。 <literal>getEnabledFilter(String filterName)</literal>, <literal>disableFilter(String filterName)</literal> です。
デフォルトでは、フィルタは与えられたセッションに対して使用 <emphasis>できません</emphasis> デフォルトでは、フィルタは与えられたセッションに対して使用 <emphasis>できません</emphasis>
<literal>Filter</literal> インスタンスを返り値とする <literal>Session.enabledFilter()</literal> メソッドを使うことで、 <literal>Filter</literal> インスタンスを返り値とする <literal>Session.enableFilter()</literal> メソッドを使うことで、
フィルタは明示的に使用可能となります。 フィルタは明示的に使用可能となります。
上で定義した単純なフィルタの使用は、このようになります。: 上で定義した単純なフィルタの使用は、このようになります。:
</para> </para>
@ -114,7 +114,7 @@
</para> </para>
<programlisting><![CDATA[Session session = ...; <programlisting><![CDATA[Session session = ...;
session.enabledFilter("effectiveDate").setParameter("asOfDate", new Date()); session.enableFilter("effectiveDate").setParameter("asOfDate", new Date());
List results = session.createQuery("from Employee as e where e.salary > :targetSalary") List results = session.createQuery("from Employee as e where e.salary > :targetSalary")
.setLong("targetSalary", new Long(1000000)) .setLong("targetSalary", new Long(1000000))
.list(); .list();

View File

@ -54,8 +54,8 @@
<para> <para>
<literal>Session</literal> 상의 메소드들은 다음과 같다: <literal>enableFilter(String filterName)</literal>, <literal>Session</literal> 상의 메소드들은 다음과 같다: <literal>enableFilter(String filterName)</literal>,
<literal>getEnabledFilter(String filterName)</literal>, <literal>disableFilter(String filterName)</literal>. <literal>getEnabledFilter(String filterName)</literal>, <literal>disableFilter(String filterName)</literal>.
디폴트로, 필터들은 주어진 세션에 대해 이용 가능하지 <emphasis>않다</emphasis>; 그것들은 <literal>Session.enabledFilter()</literal> 디폴트로, 필터들은 주어진 세션에 대해 이용 가능하지 <emphasis>않다</emphasis>; 그것들은 <literal>Session.enableFilter()</literal>
메소드의 사용을 통해 명시적으로 이용 가능하게 되어야 한다. <literal>Session.enabledFilter()</literal> 메소드의 사용을 통해 명시적으로 이용 가능하게 되어야 한다. <literal>Session.enableFilter()</literal>
<literal>Filter</literal> 인터페이스의 인스턴스를 반환한다. 위에 정의된 간단한 필터를 사용하면, 이것은 다음과 같을 것이다: <literal>Filter</literal> 인터페이스의 인스턴스를 반환한다. 위에 정의된 간단한 필터를 사용하면, 이것은 다음과 같을 것이다:
</para> </para>
@ -103,7 +103,7 @@
</para> </para>
<programlisting><![CDATA[Session session = ...; <programlisting><![CDATA[Session session = ...;
session.enabledFilter("effectiveDate").setParameter("asOfDate", new Date()); session.enableFilter("effectiveDate").setParameter("asOfDate", new Date());
List results = session.createQuery("from Employee as e where e.salary > :targetSalary") List results = session.createQuery("from Employee as e where e.salary > :targetSalary")
.setLong("targetSalary", new Long(1000000)) .setLong("targetSalary", new Long(1000000))
.list(); .list();

View File

@ -1,6 +1,6 @@
<?xml version='1.0' encoding="UTF-8"?> <?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<chapter id="filters"> <chapter id="filters">
<title>Filtrando dados</title> <title>Filtrando dados</title>
@ -58,7 +58,7 @@
Os métodos na <literal>Session</literal> são: <literal>enableFilter(String filterName)</literal>, Os métodos na <literal>Session</literal> são: <literal>enableFilter(String filterName)</literal>,
<literal>getEnabledFilter(String filterName)</literal>, e <literal>disableFilter(String filterName)</literal>. <literal>getEnabledFilter(String filterName)</literal>, e <literal>disableFilter(String filterName)</literal>.
Por padrão, os filtros não são habilitados dentro de qualquer session; Eles devem ser explicitamente Por padrão, os filtros não são habilitados dentro de qualquer session; Eles devem ser explicitamente
habilitados usando o método <literal>Session.enabledFilter()</literal>, que retorna uma instância da habilitados usando o método <literal>Session.enableFilter()</literal>, que retorna uma instância da
interface <literal>Filter</literal>. Usando o filtro simples definido acima, o código se pareceria interface <literal>Filter</literal>. Usando o filtro simples definido acima, o código se pareceria
com o seguinte: com o seguinte:
</para> </para>
@ -107,7 +107,7 @@
</para> </para>
<programlisting><![CDATA[Session session = ...; <programlisting><![CDATA[Session session = ...;
session.enabledFilter("effectiveDate").setParameter("asOfDate", new Date()); session.enableFilter("effectiveDate").setParameter("asOfDate", new Date());
List results = session.createQuery("from Employee as e where e.salary > :targetSalary") List results = session.createQuery("from Employee as e where e.salary > :targetSalary")
.setLong("targetSalary", new Long(1000000)) .setLong("targetSalary", new Long(1000000))
.list(); .list();

View File

@ -56,7 +56,7 @@
<literal>Session</literal>对象中会用到的方法有:<literal>enableFilter(String filterName)</literal>, <literal>Session</literal>对象中会用到的方法有:<literal>enableFilter(String filterName)</literal>,
<literal>getEnabledFilter(String filterName)</literal>, 和 <literal>disableFilter(String filterName)</literal>. <literal>getEnabledFilter(String filterName)</literal>, 和 <literal>disableFilter(String filterName)</literal>.
Session中默认是<emphasis></emphasis>启用过滤器的,必须通过<literal>Session.enabledFilter()</literal>方法显式的启用。 Session中默认是<emphasis></emphasis>启用过滤器的,必须通过<literal>Session.enableFilter()</literal>方法显式的启用。
该方法返回被启用的<literal>Filter</literal>的实例。以上文定义的过滤器为例: 该方法返回被启用的<literal>Filter</literal>的实例。以上文定义的过滤器为例:
</para> </para>
@ -106,7 +106,7 @@
</para> </para>
<programlisting><![CDATA[Session session = ...; <programlisting><![CDATA[Session session = ...;
session.enabledFilter("effectiveDate").setParameter("asOfDate", new Date()); session.enableFilter("effectiveDate").setParameter("asOfDate", new Date());
List results = session.createQuery("from Employee as e where e.salary > :targetSalary") List results = session.createQuery("from Employee as e where e.salary > :targetSalary")
.setLong("targetSalary", new Long(1000000)) .setLong("targetSalary", new Long(1000000))
.list(); .list();

View File

@ -58,7 +58,7 @@
The methods on <literal>Session</literal> are: <literal>enableFilter(String filterName)</literal>, The methods on <literal>Session</literal> are: <literal>enableFilter(String filterName)</literal>,
<literal>getEnabledFilter(String filterName)</literal>, and <literal>disableFilter(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 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 enabled through use of the <literal>Session.enableFilter()</literal> method, which returns an
instance of the <literal>Filter</literal> interface. Using the simple filter defined above, this instance of the <literal>Filter</literal> interface. Using the simple filter defined above, this
would look like: would look like:
</para> </para>
@ -107,7 +107,7 @@
</para> </para>
<programlisting><![CDATA[Session session = ...; <programlisting><![CDATA[Session session = ...;
session.enabledFilter("effectiveDate").setParameter("asOfDate", new Date()); session.enableFilter("effectiveDate").setParameter("asOfDate", new Date());
List results = session.createQuery("from Employee as e where e.salary > :targetSalary") List results = session.createQuery("from Employee as e where e.salary > :targetSalary")
.setLong("targetSalary", new Long(1000000)) .setLong("targetSalary", new Long(1000000))
.list(); .list();

View File

@ -230,7 +230,7 @@ msgstr ""
#: index.docbook:76 #: index.docbook:76
msgid "" msgid ""
"<![CDATA[Session session = ...;\n" "<![CDATA[Session session = ...;\n"
"session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date" "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
"());\n" "());\n"
"List results = session.createQuery(\"from Employee as e where e.salary > :" "List results = session.createQuery(\"from Employee as e where e.salary > :"
"targetSalary\")\n" "targetSalary\")\n"
@ -239,7 +239,7 @@ msgid ""
"]]>" "]]>"
msgstr "" msgstr ""
"<![CDATA[Session session = ...;\n" "<![CDATA[Session session = ...;\n"
"session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date" "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
"());\n" "());\n"
"List results = session.createQuery(\"from Employee as e where e.salary > :" "List results = session.createQuery(\"from Employee as e where e.salary > :"
"targetSalary\")\n" "targetSalary\")\n"

View File

@ -139,7 +139,7 @@ msgstr ""
"literal>, et <literal>disableFilter(String filterName)</literal>. Par " "literal>, et <literal>disableFilter(String filterName)</literal>. Par "
"défaut, les filtres <emphasis>ne sont pas</emphasis> activés pour une " "défaut, les filtres <emphasis>ne sont pas</emphasis> activés pour une "
"session donnée ; ils doivent être explicitement activés en appelant la " "session donnée ; ils doivent être explicitement activés en appelant la "
"méthode <literal>Session.enabledFilter()</literal>, laquelle retourne une " "méthode <literal>Session.enableFilter()</literal>, laquelle retourne une "
"instance de l'interface <literal>Filter</literal>. Utiliser le simple filtre " "instance de l'interface <literal>Filter</literal>. Utiliser le simple filtre "
"défini au-dessus ressemblerait à :" "défini au-dessus ressemblerait à :"
@ -225,7 +225,7 @@ msgstr ""
#, no-c-format #, no-c-format
msgid "" msgid ""
"<![CDATA[Session session = ...;\n" "<![CDATA[Session session = ...;\n"
"session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date" "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
"());\n" "());\n"
"List results = session.createQuery(\"from Employee as e where e.salary > :" "List results = session.createQuery(\"from Employee as e where e.salary > :"
"targetSalary\")\n" "targetSalary\")\n"

View File

@ -137,7 +137,7 @@ msgstr ""
"literal>, <literal>disableFilter(String filterName)</literal> です。 デフォル" "literal>, <literal>disableFilter(String filterName)</literal> です。 デフォル"
"トでは、フィルタは与えられたセッションに対して使用 <emphasis>できません</" "トでは、フィルタは与えられたセッションに対して使用 <emphasis>できません</"
"emphasis> 。 <literal>Filter</literal> インスタンスを返り値とする " "emphasis> 。 <literal>Filter</literal> インスタンスを返り値とする "
"<literal>Session.enabledFilter()</literal> メソッドを使うことで、 フィルタは" "<literal>Session.enableFilter()</literal> メソッドを使うことで、 フィルタは"
"明示的に使用可能となります。 上で定義した単純なフィルタの使用は、このようにな" "明示的に使用可能となります。 上で定義した単純なフィルタの使用は、このようにな"
"ります。:" "ります。:"
@ -220,7 +220,7 @@ msgstr ""
#, no-c-format #, no-c-format
msgid "" msgid ""
"<![CDATA[Session session = ...;\n" "<![CDATA[Session session = ...;\n"
"session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date" "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
"());\n" "());\n"
"List results = session.createQuery(\"from Employee as e where e.salary > :" "List results = session.createQuery(\"from Employee as e where e.salary > :"
"targetSalary\")\n" "targetSalary\")\n"

View File

@ -136,8 +136,8 @@ msgstr ""
"(String filterName)</literal>, <literal>getEnabledFilter(String filterName)</" "(String filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
"literal>, <literal>disableFilter(String filterName)</literal>. 디폴트로, 필터" "literal>, <literal>disableFilter(String filterName)</literal>. 디폴트로, 필터"
"들은 주어진 세션에 대해 이용 가능하지 <emphasis>않다</emphasis>; 그것들은 " "들은 주어진 세션에 대해 이용 가능하지 <emphasis>않다</emphasis>; 그것들은 "
"<literal>Session.enabledFilter()</literal> 메소드의 사용을 통해 명시적으로 이" "<literal>Session.enableFilter()</literal> 메소드의 사용을 통해 명시적으로 이"
"용 가능하게 되어야 한다. <literal>Session.enabledFilter()</literal>는 " "용 가능하게 되어야 한다. <literal>Session.enableFilter()</literal>는 "
"<literal>Filter</literal> 인터페이스의 인스턴스를 반환한다. 위에 정의된 간단" "<literal>Filter</literal> 인터페이스의 인스턴스를 반환한다. 위에 정의된 간단"
"한 필터를 사용하면, 이것은 다음과 같을 것이다:" "한 필터를 사용하면, 이것은 다음과 같을 것이다:"
@ -220,7 +220,7 @@ msgstr ""
#, no-c-format #, no-c-format
msgid "" msgid ""
"<![CDATA[Session session = ...;\n" "<![CDATA[Session session = ...;\n"
"session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date" "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
"());\n" "());\n"
"List results = session.createQuery(\"from Employee as e where e.salary > :" "List results = session.createQuery(\"from Employee as e where e.salary > :"
"targetSalary\")\n" "targetSalary\")\n"

View File

@ -42,7 +42,7 @@ msgid "or, even to both (or multiples of each) at the same time."
msgstr "" msgstr ""
#: filters.xml:57(para) #: filters.xml:57(para)
msgid "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:" msgid "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.enableFilter()</literal> method, which returns an instance of the <literal>Filter</literal> interface. Using the simple filter defined above, this would look like:"
msgstr "" msgstr ""
#: filters.xml:68(para) #: filters.xml:68(para)

View File

@ -138,7 +138,7 @@ msgstr ""
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</" "filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
"literal>, e <literal>disableFilter(String filterName)</literal>. Por padrão, " "literal>, e <literal>disableFilter(String filterName)</literal>. Por padrão, "
"os filtros não são habilitados dentro de qualquer session; Eles devem ser " "os filtros não são habilitados dentro de qualquer session; Eles devem ser "
"explicitamente habilitados usando o método <literal>Session.enabledFilter()</" "explicitamente habilitados usando o método <literal>Session.enableFilter()</"
"literal>, que retorna uma instância da interface <literal>Filter</literal>. " "literal>, que retorna uma instância da interface <literal>Filter</literal>. "
"Usando o filtro simples definido acima, o código se pareceria com o seguinte:" "Usando o filtro simples definido acima, o código se pareceria com o seguinte:"
@ -223,7 +223,7 @@ msgstr ""
#, no-c-format #, no-c-format
msgid "" msgid ""
"<![CDATA[Session session = ...;\n" "<![CDATA[Session session = ...;\n"
"session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date" "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
"());\n" "());\n"
"List results = session.createQuery(\"from Employee as e where e.salary > :" "List results = session.createQuery(\"from Employee as e where e.salary > :"
"targetSalary\")\n" "targetSalary\")\n"

View File

@ -216,7 +216,7 @@ msgstr ""
#, no-c-format #, no-c-format
msgid "" msgid ""
"<![CDATA[Session session = ...;\n" "<![CDATA[Session session = ...;\n"
"session.enabledFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date" "session.enableFilter(\"effectiveDate\").setParameter(\"asOfDate\", new Date"
"());\n" "());\n"
"List results = session.createQuery(\"from Employee as e where e.salary > :" "List results = session.createQuery(\"from Employee as e where e.salary > :"
"targetSalary\")\n" "targetSalary\")\n"