Hai,<br><br>it uses like in SQL not ilike.<br><br><br> EmployeemasterBhv.selectPage():paging()<br>DEBUG 2009-06-10 17:03:23,437 [http-8080-1] ======================================/<br>
DEBUG 2009-06-10 17:03:23,437 [http-8080-1] EmployeemasterListPage.prerender():154 --> EmployeemasterBhv.selectPage() --> ...<br>DEBUG 2009-06-10 17:03:23,437 [http-8080-1] $BO@M}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?!#(Btx=[FormatId=4360, GlobalId=1244620931796/5, BranchId=]<br>
DEBUG 2009-06-10 17:03:23,437 [http-8080-1] <br><span style="background-color: rgb(255, 102, 102);">select dflocal.deleteflg as c1, dflocal.costrank as c2, dflocal.address1 as c3, dflocal.address2 as c4, dflocal.postalcode as c5, dflocal.lastupdated as c6, dflocal.employeecode as c7, dflocal.employeenamekanji as c8, dflocal.employeenamekana as c9, dflocal.employeefirstname as c10, dflocal.employeelastname as c11, dflocal.dob as c12, dflocal.age as c13, dflocal.joiningdate as c14, dflocal.designation as c15, dflocal.joblevel as c16, dflocal.yearofexperience as c17, dflocal.housephoneno as c18, dflocal.mobilephoneno as c19, dflocal.email as c20, dflocal.terminationdate as c21, dflocal.registerdate as c22 </span><br style="background-color: rgb(255, 102, 102);">
<span style="background-color: rgb(255, 102, 102);"> from employeemaster dflocal </span><br style="background-color: rgb(255, 102, 102);"><span style="background-color: rgb(255, 102, 102);"> where dflocal.employeecode <span style="background-color: rgb(0, 153, 0);">like</span> 'emp%' escape '|' </span><br style="background-color: rgb(255, 102, 102);">
<span style="background-color: rgb(255, 102, 102);"> offset 0 limit 10</span><br><br><br>Regards,<br>$B%H%^%9(B<br><br><br><div class="gmail_quote">On Tue, Jun 9, 2009 at 8:03 PM, kubo <span dir="ltr"><<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>></span> wrote:<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 confirm your SQL on console log.<br>
Does the SQL use 'ilike'$B!)(B<br>
(where EMPLOYEE_CODE ilike 'emp%')<br>
<div><div></div><div class="h5"><br>
2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
> hai,<br>
><br>
> I upgraded my dbflute to 0.9.5.<br>
><br>
> EmployeemasterCB empCB = employeemasterBhv.newMyConditionBean();<br>
> empCB.query().setEmployeecode_LikeSearch("emp", new<br>
> LikeSearchOption() {<br>
> @Override<br>
> public ExtensionOperand getExtensionOperand() {<br>
> return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
> }<br>
> }.likePrefix());<br>
><br>
> if i give "emp" as search condition it retrieves only The values starts with<br>
> emp.<br>
><br>
> InMy table i have the values<br>
><br>
> emp22<br>
> EMP22<br>
> emp20<br>
> EMP20<br>
> .........<br>
> .........<br>
> ..........<br>
><br>
> The above coding retrieves only emp22 and emp20<br>
> I want to retrieve EMP22 and EMP20 also.<br>
><br>
><br>
> Thanks<br>
> $B%H%^%9(B<br>
><br>
><br>
><br>
> 2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>><br>
>><br>
>> hai,<br>
>><br>
>> Thanks for your helps!..<br>
>><br>
>><br>
>><br>
>> On Tue, Jun 9, 2009 at 6:00 PM, kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>> wrote:<br>
>>><br>
>>> Hello,<br>
>>><br>
>>> Sorry! I mistook your DBFlute version.<br>
>>> The method and class are supported since 0.9.5.<br>
>>> So please upgrade DBFlute to 0.9.5 if possible.<br>
>>><br>
>>> 2009/6/9 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
>>> > hai,<br>
>>> ><br>
>>> > cb.query().setMemberName_<br>
>>> >><br>
>>> >> LikeSearch("s", new LikeSearchOption() {<br>
>>> >> @Override<br>
>>> >> public ExtensionOperand getExtensionOperand() {<br>
>>> >> return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
>>> >> }<br>
>>> >> }.likePrefix());<br>
>>> ><br>
>>> > import org.seasar.dbflute.dbway.ExtensionOperand;//Error<br>
>>> ><br>
>>> > there is no class in org.seasar.dbflute.dbway like ExtensionOperand<br>
>>> ><br>
>>> ><br>
>>> ><br>
>>> > 2009/6/9 kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>><br>
>>> >><br>
>>> >> Hello,<br>
>>> >><br>
>>> >> Please watch this test case:<br>
>>> >> The method is 'test_likeSearch_caseInsensitive_Tx()'.<br>
>>> >><br>
>>> >><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<br>
>>> >> class.<br>
>>> >> Like this:<br>
>>> >><br>
>>> >> public class CaseInsensitiveLikeSearchOption extends LikeSearchOption<br>
>>> >> {<br>
>>> >> @Override<br>
>>> >> public ExtensionOperand getExtensionOperand() {<br>
>>> >> return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
>>> >> }<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<br>
>>> >> >> > 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>
>>> >> >> > $B%H%^%9(B<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>
>>> ><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>
> _______________________________________________<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>