hai,<br><br>cb.query().setMemberName_<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">LikeSearch("s", new LikeSearchOption() {<br>
@Override<br>
<span style="background-color: rgb(255, 102, 102);"> public ExtensionOperand getExtensionOperand() {</span><br>
return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
}<br>
}.likePrefix());</blockquote><div><br><br><pre>import org.seasar.dbflute.dbway.ExtensionOperand;//Error<br><br>there is no class in org.seasar.dbflute.dbway like ExtensionOperand<br><br></pre> </div><br><br><div class="gmail_quote">
2009/6/9 kubo <span dir="ltr"><<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
Please watch this test case:<br>
The method is 'test_likeSearch_caseInsensitive_Tx()'.<br>
<br>
<a href="https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-postgresql-example/src/test/java/com/example/dbflute/postgresql/dbflute/various/VendorCheckTest.java" target="_blank">https://www.seasar.org/svn/sandbox/dbflute/trunk/dbflute-postgresql-example/src/test/java/com/example/dbflute/postgresql/dbflute/various/VendorCheckTest.java</a><br>
<br>
cb.query().setMemberName_LikeSearch("s", new LikeSearchOption() {<br>
@Override<br>
public ExtensionOperand getExtensionOperand() {<br>
return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
}<br>
}.likePrefix());<br>
<br>
This code uses 'ilike' in the SQL.<br>
(But this way is only available at PostgreSQL)<br>
<br>
If you have many many points that must be without case sensitive,<br>
you should create CaseInsensitiveLikeSearchOption as your original class.<br>
Like this:<br>
<br>
public class CaseInsensitiveLikeSearchOption extends LikeSearchOption {<br>
@Override<br>
public ExtensionOperand getExtensionOperand() {<br>
return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
<div><div></div><div class="h5"> }<br>
}<br>
<br>
2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
> Hai,<br>
><br>
> I am using PostgresQL 8.3<br>
><br>
><br>
><br>
><br>
> 2009/6/9 kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>><br>
>><br>
>> Hello, this is jflute.<br>
>><br>
>> For starters, there is one thing I want to confirm.<br>
>> What kind of database do you use?<br>
>> Oracle? MySQL? PostgreSQL? ...<br>
>><br>
>> 2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
>> > Hai,<br>
>> ><br>
>> > I want to retrieve data without case sensitive using condition Bean.<br>
>> ><br>
>> > dbflute version 0.9.4.1<br>
>> ><br>
>> > empCB.query().setEmployeecode_LikeSearch(empcodes,new<br>
>> > LikeSearchOption());<br>
>> ><br>
>> > How to change this code to get case sensitive result?<br>
>> ><br>
>> > Please give steps to achieve this...<br>
>> ><br>
>> > Thanks in advance.<br>
>> > トマス<br>
>> ><br>
>> ><br>
>> > _______________________________________________<br>
>> > Seasar-user mailing list<br>
>> > <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
>> ><br>
>> ><br>
>> _______________________________________________<br>
>> Seasar-user mailing list<br>
>> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
>> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
><br>
><br>
> _______________________________________________<br>
> Seasar-user mailing list<br>
> <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
> <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
><br>
><br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</div></div></blockquote></div><br>