File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -188,10 +188,16 @@ AND title like ‘someTitle’]]></source>
188
188
añadir un driver de lenguaje y usar dicho lenguaje para escribir tus sentencias SQL.
189
189
</p >
190
190
<p >Hay dos lenguajes predefinidos:</p >
191
- <ul >
192
- <li >xml</li >
193
- <li >raw</li >
194
- </ul >
191
+ <table >
192
+ <thead >
193
+ <tr ><td >Alias</td ><td >Driver</td >
194
+ </tr >
195
+ </thead >
196
+ <tbody >
197
+ <tr ><td >xml</td ><td >XmlLanguageDriver</td ></tr >
198
+ <tr ><td >raw</td ><td >RawLanguageDriver</td ></tr >
199
+ </tbody >
200
+ </table >
195
201
<p >El lenguaje <code >xml</code > es el lenguaje por defecto. Permite ejecutar todos los tags dinámicos que hemos visto en las secciones anteriores.</p >
196
202
<p >El lenguaje <code >raw</code > es en realidad la ausencia de lenguaje. Con esta configuración MyBatis sólo realiza la sustitución de parámetros
197
203
y pasa la sentencia al driver de base de datos. Como supondrás el lenguaje <code >raw</code > es más rápido que el <code >xml</code >.
Original file line number Diff line number Diff line change @@ -187,14 +187,20 @@ AND title like ‘someTitle’]]></source>
187
187
so you can plug a language driver and use that language to write your dynamic
188
188
SQL queries.</p >
189
189
<p >There are two built-in languages:</p >
190
- <ul >
191
- <li >xml</li >
192
- <li >raw</li >
193
- </ul >
190
+ <table >
191
+ <thead >
192
+ <tr ><td >Alias</td ><td >Driver</td >
193
+ </tr >
194
+ </thead >
195
+ <tbody >
196
+ <tr ><td >xml</td ><td >XmlLanguageDriver</td ></tr >
197
+ <tr ><td >raw</td ><td >RawLanguageDriver</td ></tr >
198
+ </tbody >
199
+ </table >
194
200
<p >The <code >xml</code > language is the default one. It is able to execute all the dynamic tags we saw in the previous sections.</p >
195
201
<p >The <code >raw</code > language is in fact the absence of language. When using this setting MyBatis just performs the
196
202
parameter substitution and passes the statement to the database driver. As you may guess, the <code >raw</code > language
197
- is faster than the <code >xml</code > language.
203
+ is much faster than the <code >xml</code > language.
198
204
</p >
199
205
<p >You can change the default language for your project by configuring it in the mybatis-config.xml file:</p >
200
206
<source ><![CDATA[ <settings>
You can’t perform that action at this time.
0 commit comments