Hai,<br><br>After changing the version of my dbflute-runtime i got ilike in SQL log.<br><br><br>Thanks for your kind replys....<br><br>Regards,<br>$B%H%^%9(B<br><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 5:47 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>
Thanks you for watching your log.<br>
The problem is that the code doesn't use 'ilike'.<br>
Now I don't know why the code doesn't...<br>
(Because the example works well)<br>
<br>
There are several things I want to confirm...<br>
<br>
<br>
1. Does this code throw the exception?<br>
<div class="im"><br>
empCB.query().setEmployeecode_LikeSearch("emp", new LikeSearchOption() {<br>
@Override<br>
public ExtensionOperand getExtensionOperand() {<br>
</div> throw new IllegalStateException();<br>
//return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
}<br>
}.likePrefix());<br>
<br>
*I want to confirm that the method is called by DBFlute Framework.<br>
<br>
<br>
2. Is dbflute-runtime-0.9.5.jar valid on your Runtime Environment<br>
(Did you remove an old jar file 'dbflute-runtime-0.9.4.1.jar' from<br>
Runtime Environment?)<br>
<br>
For example:<br>
<br>
{o}<br>
WEB-INF/lib<br>
|-dbflute-runtime-0.9.5.jar<br>
|-other...jar<br>
<br>
{x}<br>
WEB-INF/lib<br>
|-dbflute-runtime-0.9.4.1.jar<br>
|-dbflute-runtime-0.9.5.jar<br>
|-other...jar<br>
<br>
<br>
<br>
2009/6/10 thomas <<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>>:<br>
<div><div></div><div class="h5">> 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<br>
> [http-8080-1]<br>
> ======================================/<br>
> DEBUG 2009-06-10 17:03:23,437 [http-8080-1]<br>
> EmployeemasterListPage.prerender():154 --> EmployeemasterBhv.selectPage()<br>
> --> ...<br>
> DEBUG 2009-06-10 17:03:23,437 [http-8080-1]<br>
> $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>
> select dflocal.deleteflg as c1, dflocal.costrank as c2, dflocal.address1 as<br>
> c3, dflocal.address2 as c4, dflocal.postalcode as c5, dflocal.lastupdated as<br>
> c6, dflocal.employeecode as c7, dflocal.employeenamekanji as c8,<br>
> dflocal.employeenamekana as c9, dflocal.employeefirstname as c10,<br>
> dflocal.employeelastname as c11, dflocal.dob as c12, dflocal.age as c13,<br>
> dflocal.joiningdate as c14, dflocal.designation as c15, dflocal.joblevel as<br>
> c16, dflocal.yearofexperience as c17, dflocal.housephoneno as c18,<br>
> dflocal.mobilephoneno as c19, dflocal.email as c20, dflocal.terminationdate<br>
> as c21, dflocal.registerdate as c22<br>
> from employeemaster dflocal<br>
> where dflocal.employeecode like 'emp%' escape '|'<br>
> offset 0 limit 10<br>
><br>
><br>
> Regards,<br>
> $B%H%^%9(B<br>
><br>
><br>
> On Tue, Jun 9, 2009 at 8:03 PM, kubo <<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>> wrote:<br>
>><br>
>> 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>
>><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<br>
>> > WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
>> > }<br>
>> > }.likePrefix());<br>
>> ><br>
>> > if i give "emp" as search condition it retrieves only The values starts<br>
>> > 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>
>> >>> >><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<br>
>> >>> >> 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>
><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>