-
Notifications
You must be signed in to change notification settings - Fork 3.5k
/
filters.po
478 lines (445 loc) · 16.7 KB
/
filters.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
# translation of filters.po to
# Michael H. Smith <mhideo@redhat.com>, 2007.
# Angela Garcia <agarcia@redhat.com>, 2009.
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
# translation of Collection_Mapping.po to
msgid ""
msgstr ""
"Project-Id-Version: filters\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2010-07-20 21:02+0000\n"
"PO-Revision-Date: 2009-11-11 08:28+1000\n"
"Last-Translator: Angela Garcia <agarcia@redhat.com>\n"
"Language-Team: <en@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
#. Tag: title
#: filters.xml:31
#, no-c-format
msgid "Filtering data"
msgstr "Filtración de datos"
#. Tag: para
#: filters.xml:33
#, no-c-format
msgid ""
"Hibernate3 provides an innovative new approach to handling data with "
"\"visibility\" rules. A <emphasis>Hibernate filter</emphasis> is a global, "
"named, parameterized filter that can be enabled or disabled for a particular "
"Hibernate session."
msgstr ""
"Hibernate3 proporciona un nuevo enfoque innovador para manejar datos con "
"reglas de \"visibilidad\". Un <emphasis>filtro Hibernate</emphasis> es un "
"filtro global, con nombre y parametrizado que puede ser habilitado o "
"deshabilitado para una sesión de Hibernate especifica."
#. Tag: title
#: filters.xml:39
#, no-c-format
msgid "Hibernate filters"
msgstr "Filtros de Hibernate"
#. Tag: para
#: filters.xml:41
#, no-c-format
msgid ""
"Hibernate3 has the ability to pre-define filter criteria and attach those "
"filters at both a class level and a collection level. A filter criteria "
"allows you to define a restriction clause similar to the existing \"where\" "
"attribute available on the class and various collection elements. These "
"filter conditions, however, can be parameterized. The application can then "
"decide at runtime whether certain filters should be enabled and what their "
"parameter values should be. Filters can be used like database views, but "
"they are parameterized inside the application."
msgstr ""
"Hibernate3 tiene la habilidad de predefinir criterios de filtros y unir esos "
"filtros tanto a nivel de clase como de colección. Un criterio de filtro le "
"permite definir una cláusula de restricción muy similar al atributo "
"existente \"where\" disponible en el elemento class y en varios elementos de "
"colección. Sin embargo, las condiciones de estos filtros se pueden "
"parametrizar. La aplicación puede tomar la decisión en tiempo de ejecución "
"de si los filtros deben estar habilitados y cuáles deben ser sus parámetros. "
"Los filtros se pueden utilizar como vistas de la base de datos, pero "
"parametrizados dentro de la aplicación."
#. Tag: para
#: filters.xml:50
#, no-c-format
msgid ""
"Using annotatons filters are defined via <literal>@org.hibernate.annotations."
"FilterDef</literal> or <literal>@org.hibernate.annotations.FilterDefs</"
"literal>. A filter definition has a <methodname>name()</methodname> and an "
"array of parameters(). A parameter will allow you to adjust the behavior of "
"the filter at runtime. Each parameter is defined by a <literal>@ParamDef</"
"literal> which has a name and a type. You can also define a "
"<methodname>defaultCondition()</methodname> parameter for a given "
"<literal>@FilterDef</literal> to set the default condition to use when none "
"are defined in each individual <literal>@Filter</literal>. "
"<literal>@FilterDef</literal>(s) can be defined at the class or package "
"level."
msgstr ""
#. Tag: para
#: filters.xml:63
#, no-c-format
msgid ""
"We now need to define the SQL filter clause applied to either the entity "
"load or the collection load. <literal>@Filter</literal> is used and placed "
"either on the entity or the collection element. The connection between "
"<classname>@FilterName</classname> and <classname>@Filter</classname> is a "
"matching name."
msgstr ""
#. Tag: title
#: filters.xml:70
#, no-c-format
msgid "@FilterDef and @Filter annotations"
msgstr ""
#. Tag: programlisting
#: filters.xml:72
#, no-c-format
msgid ""
"@Entity\n"
"@FilterDef(name=\"minLength\", parameters=@ParamDef( name=\"minLength\", "
"type=\"integer\" ) )\n"
"@Filters( {\n"
" @Filter(name=\"betweenLength\", condition=\":minLength <= length and :"
"maxLength >= length\"),\n"
" @Filter(name=\"minLength\", condition=\":minLength <= length\")\n"
"} )\n"
"public class Forest { ... }"
msgstr ""
#. Tag: para
#: filters.xml:75
#, no-c-format
msgid ""
"When the collection use an association table as a relational representation, "
"you might want to apply the filter condition to the association table itself "
"or to the target entity table. To apply the constraint on the target entity, "
"use the regular <literal>@Filter</literal> annotation. However, if you want "
"to target the association table, use the <literal>@FilterJoinTable</literal> "
"annotation."
msgstr ""
#. Tag: title
#: filters.xml:84
#, no-c-format
msgid ""
"Using <classname>@FilterJoinTable</classname> for filterting on the "
"association table"
msgstr ""
#. Tag: programlisting
#: filters.xml:87
#, no-c-format
msgid ""
"@OneToMany\n"
" @JoinTable\n"
" //filter on the target entity table\n"
" @Filter(name=\"betweenLength\", condition=\":minLength <= length and :"
"maxLength >= length\")\n"
" //filter on the association table\n"
" @FilterJoinTable(name=\"security\", condition=\":userlevel >= "
"requredLevel\")\n"
" public Set<Forest> getForests() { ... }"
msgstr ""
#. Tag: para
#: filters.xml:90
#, fuzzy, no-c-format
msgid ""
"Using Hibernate mapping files for defining filters the situtation is very "
"similar. The filters 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 ""
"Para utilizar los filtros, éstos se deben definir primero y luego se unen a "
"los elementos de mapeo apropiados. Para definir un filtro, utilice el "
"elemento <literal><filter-def/></literal> dentro de un elemento "
"<literal><hibernate-mapping/></literal>:"
#. Tag: title
#: filters.xml:97
#, no-c-format
msgid "Defining a filter definition via <literal><filter-def></literal>"
msgstr ""
#. Tag: programlisting
#: filters.xml:100
#, fuzzy, no-c-format
msgid ""
"<filter-def name=\"myFilter\">\n"
" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
"</filter-def>"
msgstr ""
"<![CDATA[<filter-def name=\"myFilter\">\n"
" <filter-param name=\"myFilterParam\" type=\"string\"/>\n"
"</filter-def>]]>"
#. Tag: para
#: filters.xml:103
#, fuzzy, no-c-format
msgid ""
"This filter can then be attached to a class or collection (or, to both or "
"multiples of each at the same time):"
msgstr "O incluso a ambos o múltiples de cada uno al mismo tiempo."
#. Tag: title
#: filters.xml:107
#, no-c-format
msgid ""
"Attaching a filter to a class or collection using <literal><filter></"
"literal>"
msgstr ""
#. Tag: programlisting
#: filters.xml:110
#, no-c-format
msgid ""
"<class name=\"myClass\" ...>\n"
" ...\n"
" <filter name=\"myFilter\" condition=\":myFilterParam = "
"MY_FILTERED_COLUMN\"/>\n"
"\n"
" <set ...>\n"
" <filter name=\"myFilter\" condition=\":myFilterParam = "
"MY_FILTERED_COLUMN\"/>\n"
" </set> \n"
"</class>"
msgstr ""
#. Tag: para
#: filters.xml:113
#, no-c-format
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. "
"Filters must be enabled through use of the <literal>Session.enableFilter()</"
"literal> method, which returns an instance of the <literal>Filter</literal> "
"interface. If you used the simple filter defined above, it would look like "
"this:"
msgstr ""
"Los métodos en <literal>Session</literal> son: <literal>enableFilter(String "
"filterName)</literal>, <literal>getEnabledFilter(String filterName)</"
"literal> y <literal>disableFilter(String filterName)</literal>. Por defecto, "
"los filtros <emphasis>no</emphasis> están habilitados para una sesión dada. "
"Los filtros deben ser habilitados explícitamente por medio del uso del "
"método <literal>Session.enableFilter()</literal>, el cual retorna una "
"instancia de la interfaz <literal>Filter</literal>. Si se utiliza el filtro "
"simple definido anteriormente, esto se vería así:"
#. Tag: programlisting
#: filters.xml:123
#, fuzzy, no-c-format
msgid ""
"session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", \"some-"
"value\");"
msgstr ""
"<![CDATA[session.enableFilter(\"myFilter\").setParameter(\"myFilterParam\", "
"\"some-value\");]]>"
#. Tag: para
#: filters.xml:125
#, no-c-format
msgid ""
"Methods on the org.hibernate.Filter interface do allow the method-chaining "
"common to much of Hibernate."
msgstr ""
"Los métodos en la interfaz org.hibernate.Filter permiten el encadenamiento "
"de métodos, lo cual es bastante común en gran parte de Hibernate."
#. Tag: para
#: filters.xml:128
#, no-c-format
msgid ""
"The following is a full example, using temporal data with an effective "
"record date pattern:"
msgstr ""
"Este es un ejemplo completo, utilizando datos temporales con un patrón "
"efectivo de fechas de registro: "
#. Tag: programlisting
#: filters.xml:131
#, fuzzy, no-c-format
msgid ""
"<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 ""
"<![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>]]>"
#. Tag: para
#: filters.xml:133
#, no-c-format
msgid ""
"In order to ensure that you are provided with currently effective records, "
"enable the filter on the session prior to retrieving employee data:"
msgstr ""
"Con el fin de asegurarse de que siempre recibirá los registros efectivos "
"actualmente, habilite el filtro en la sesión antes de recuperar los datos de "
"los empleados:"
#. Tag: programlisting
#: filters.xml:137
#, fuzzy, no-c-format
msgid ""
"Session session = ...;\n"
"session.enableFilter(\"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();"
msgstr ""
"<![CDATA[Session session = ...;\n"
"session.enableFilter(\"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"
"]]>"
#. Tag: para
#: filters.xml:139
#, no-c-format
msgid ""
"Even though a salary constraint was mentioned explicitly on the results in "
"the above HQL, because of the enabled filter, the query will return only "
"currently active employees who have a salary greater than one million "
"dollars."
msgstr ""
"En el HQL anterior, aunque sólo mencionamos explícitamente una restricción "
"de salario en los resultados, debido al filtro habilitado la consulta sólo "
"retornará empleados actualmente activos que tengan un salario mayor a un "
"millón de dólares."
#. Tag: para
#: filters.xml:144
#, no-c-format
msgid ""
"If you want to use filters with outer joining, either through HQL or load "
"fetching, be careful of the direction of the condition expression. It is "
"safest to set this up for left outer joining. Place the parameter first "
"followed by the column name(s) after the operator."
msgstr ""
"Si quiere utilizar filtros con unión externa, ya sea a través de HQL, o bien "
"de recuperación de carga, tenga cuidado en la dirección de expresión de la "
"condición. Lo más seguro es configurar esto para una unión externa "
"izquierda. Coloque el parámetro primero seguido del nombre(s) de la(s) "
"columna(s) después del operador."
#. Tag: para
#: filters.xml:149
#, no-c-format
msgid ""
"After being defined, a filter might be attached to multiple entities and/or "
"collections each with its own condition. This can be problematic when the "
"conditions are the same each time. Using <literal><filter-def/></"
"literal> allows you to definine a default condition, either as an attribute "
"or CDATA:"
msgstr ""
"Después de definir un filtro, este se puede unir a múltiples entidades y/o "
"colecciones cada una con su propia condición. Esto puede llegar a ser "
"problemático cuando las condiciones son las mismas. Así que el usar "
"<literal><filter-def/></literal> le permite definir una condición por "
"defecto, ya sea como atributo o como CDATA:"
#. Tag: programlisting
#: filters.xml:155
#, fuzzy, no-c-format
msgid ""
"<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</"
"filter-def>\n"
"<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>"
msgstr ""
"<![CDATA[<filter-def name=\"myFilter\" condition=\"abc > xyz\">...</filter-"
"def>\n"
"<filter-def name=\"myOtherFilter\">abc=xyz</filter-def>]]>"
#. Tag: para
#: filters.xml:157
#, no-c-format
msgid ""
"This default condition will be used whenever the filter is attached to "
"something without specifying a condition. This means you can give a specific "
"condition as part of the attachment of the filter that overrides the default "
"condition in that particular case."
msgstr ""
"Esta condición predeterminada se utilizará cuando se una el filtro a algo "
"sin especificar una condición. Esto significa que usted le puede dar una "
"condición especifica como parte del anexo del filtro, el cual substituye la "
"condición por defecto en ese caso en particular."
#~ msgid "This filter can then be attached to a class:"
#~ msgstr "Luego este filtro se puede adjuntar a una clase:"
#~ msgid "Or, to a collection:"
#~ msgstr "O a una colección:"
#~ msgid ""
#~ "<![CDATA[<class name=\"myClass\" ...>\n"
#~ " ...\n"
#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
#~ "MY_FILTERED_COLUMN\"/>\n"
#~ "</class>]]>"
#~ msgstr ""
#~ "<![CDATA[<class name=\"myClass\" ...>\n"
#~ " ...\n"
#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
#~ "MY_FILTERED_COLUMN\"/>\n"
#~ "</class>]]>"
#~ msgid ""
#~ "<![CDATA[<set ...>\n"
#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
#~ "MY_FILTERED_COLUMN\"/>\n"
#~ "</set>]]>"
#~ msgstr ""
#~ "<![CDATA[<set ...>\n"
#~ " <filter name=\"myFilter\" condition=\":myFilterParam = "
#~ "MY_FILTERED_COLUMN\"/>\n"
#~ "</set>]]>"