Hai<br>&nbsp;i got the following Exception.<br><br>DEBUG 2009-06-10 18:20:54,171 [http-8080-1] END projectmgnt.web.employeemaster.EmployeemasterListPage#prerender() Throwable:java.lang.IllegalStateException<br>DEBUG 2009-06-10 18:20:54,203 [http-8080-1] <br>
java.lang.IllegalStateException<br>&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$1.getExtensionOperand(EmployeemasterListPage.java:127)<br>&nbsp;&nbsp;&nbsp; at org.seasar.dbflute.cbean.ckey.ConditionKeyLikeSearch.doAddWhereClause(ConditionKeyLikeSearch.java:83)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.dbflute.cbean.ckey.ConditionKey.addWhereClause(ConditionKey.java:127)<br>&nbsp;&nbsp;&nbsp; at org.seasar.dbflute.cbean.sqlclause.AbstractSqlClause.registerWhereClause(AbstractSqlClause.java:770)<br>&nbsp;&nbsp;&nbsp; at org.seasar.dbflute.cbean.AbstractConditionQuery.setupConditionValueAndRegisterWhereClause(AbstractConditionQuery.java:1347)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.dbflute.cbean.AbstractConditionQuery.registerLikeSearchQuery(AbstractConditionQuery.java:489)<br>&nbsp;&nbsp;&nbsp; at org.seasar.dbflute.cbean.AbstractConditionQuery.regLSQ(AbstractConditionQuery.java:467)<br>&nbsp;&nbsp;&nbsp; at projectmgnt.dbflute.cbean.cq.bs.AbstractBsEmployeemasterCQ.setEmployeecode_LikeSearch(AbstractBsEmployeemasterCQ.java:126)<br>
&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage.prerender(EmployeemasterListPage.java:124)<br>&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990.$$prerender$$invokeSuperMethod$$(EmployeemasterListPage$$EnhancedByS2AOP$$d8d990.java)<br>
&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>&nbsp;&nbsp;&nbsp; at org.seasar.extension.tx.DefaultTransactionCallback.execute(DefaultTransactionCallback.java:58)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.extension.tx.adapter.JTATransactionManagerAdapter.required(JTATransactionManagerAdapter.java:65)<br>&nbsp;&nbsp;&nbsp; at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:41)<br>&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:77)<br>&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
&nbsp;&nbsp;&nbsp; at projectmgnt.interceptor.LoginUserInterceptor.invoke(LoginUserInterceptor.java:48)<br>&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
&nbsp;&nbsp;&nbsp; at projectmgnt.interceptor.LoginAuthInterceptor.invoke(LoginAuthInterceptor.java:46)<br>&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)<br>&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990$$MethodInvocation$$prerender4.proceed(MethodInvocationClassGenerator.java)<br>
&nbsp;&nbsp;&nbsp; at projectmgnt.web.employeemaster.EmployeemasterListPage$$EnhancedByS2AOP$$d8d990.prerender(EmployeemasterListPage$$EnhancedByS2AOP$$d8d990.java)<br>&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br>&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br>&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Unknown Source)<br>&nbsp;&nbsp;&nbsp; at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:93)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.framework.beans.impl.BeanDescImpl.invoke(BeanDescImpl.java:213)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invoke(HtmlComponentInvokerImpl.java:163)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invokePrerender(HtmlComponentInvokerImpl.java:138)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.render.TViewRootRenderer.invoke(TViewRootRenderer.java:101)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.render.TViewRootRenderer.invokeAll(TViewRootRenderer.java:81)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.render.TViewRootRenderer.encodeBegin(TViewRootRenderer.java:61)<br>
&nbsp;&nbsp;&nbsp; at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:330)<br>&nbsp;&nbsp;&nbsp; at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:100)<br>&nbsp;&nbsp;&nbsp; at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:247)<br>
&nbsp;&nbsp;&nbsp; at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:184)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.taglib.TViewTag.doStartTag(TViewTag.java:98)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.html.processor.ElementProcessorImpl.processTag(ElementProcessorImpl.java:145)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.html.processor.ElementProcessorImpl.process(ElementProcessorImpl.java:138)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.html.processor.ElementProcessorImpl.process(ElementProcessorImpl.java:119)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:157)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:143)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase.executePhase(RenderResponsePhase.java:39)<br>
&nbsp;&nbsp;&nbsp; at org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)<br>&nbsp;&nbsp;&nbsp; at org.seasar.teeda.core.lifecycle.LifecycleImpl.render(LifecycleImpl.java:131)<br>&nbsp;&nbsp;&nbsp; at javax.faces.webapp.FacesServlet.service(FacesServlet.java:101)<br>
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&nbsp;&nbsp;&nbsp; at projectmgnt.util.RequestDumpFilter.doFilter(RequestDumpFilter.java:74)<br>
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&nbsp;&nbsp;&nbsp; at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)<br>
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&nbsp;&nbsp;&nbsp; at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:77)<br>
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&nbsp;&nbsp;&nbsp; at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)<br>
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br>
&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>&nbsp;&nbsp;&nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)<br>&nbsp;&nbsp;&nbsp; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)<br>
&nbsp;&nbsp;&nbsp; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)<br>&nbsp;&nbsp;&nbsp; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)<br>&nbsp;&nbsp;&nbsp; at java.lang.Thread.run(Unknown Source)<br>
<br>I have the following file in my lib folder<br><br>WEB-INF/lib<br>
 &nbsp; &nbsp;|-<span style="background-color: rgb(255, 0, 0);">dbflute-runtime.jar</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
 &nbsp; &nbsp;|-other...jar<br>
<br><br><br>whether i have to replace <span style="background-color: rgb(255, 0, 0);">dbflute-runtime.jar with dbflute-runtime.jar-0.9.5</span>?<br><br>Regards,<br>$B%H%^%9(B<br><br><br><div class="gmail_quote">On Wed, Jun 10, 2009 at 5:47 PM, kubo <span dir="ltr">&lt;<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>&gt;</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&#39;t use &#39;ilike&#39;.<br>
Now I don&#39;t know why the code doesn&#39;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(&quot;emp&quot;, new LikeSearchOption() {<br>
 &nbsp; &nbsp;@Override<br>
 &nbsp; &nbsp;public ExtensionOperand getExtensionOperand() {<br>
</div> &nbsp; &nbsp; &nbsp; &nbsp;throw new IllegalStateException();<br>
 &nbsp; &nbsp; &nbsp; &nbsp;//return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
 &nbsp; &nbsp;}<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>
 &nbsp; (Did you remove an old jar file &#39;dbflute-runtime-0.9.4.1.jar&#39; from<br>
Runtime Environment?)<br>
<br>
For example:<br>
<br>
&nbsp;{o}<br>
&nbsp;WEB-INF/lib<br>
 &nbsp; &nbsp;|-dbflute-runtime-0.9.5.jar<br>
 &nbsp; &nbsp;|-other...jar<br>
<br>
&nbsp;{x}<br>
&nbsp;WEB-INF/lib<br>
 &nbsp; &nbsp;|-dbflute-runtime-0.9.4.1.jar<br>
 &nbsp; &nbsp;|-dbflute-runtime-0.9.5.jar<br>
 &nbsp; &nbsp;|-other...jar<br>
<br>
<br>
<br>
2009/6/10 thomas &lt;<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hai,<br>
&gt;<br>
&gt; it uses like in SQL not ilike.<br>
&gt;<br>
&gt;<br>
&gt; &nbsp;EmployeemasterBhv.selectPage():paging()<br>
&gt; DEBUG 2009-06-10 17:03:23,437<br>
&gt; [http-8080-1]<br>
&gt; ======================================/<br>
&gt; DEBUG 2009-06-10 17:03:23,437 [http-8080-1]<br>
&gt; EmployeemasterListPage.prerender():154 --&gt; EmployeemasterBhv.selectPage()<br>
&gt; --&gt; ...<br>
&gt; DEBUG 2009-06-10 17:03:23,437 [http-8080-1]<br>
&gt; $BO@M}E*$J%3%M%/%7%g%s$r<hF@$7$^$7$?!#(Btx=[FormatId=4360, GlobalId=1244620931796/5, BranchId=]<br>
&gt; DEBUG 2009-06-10 17:03:23,437 [http-8080-1]<br>
&gt; select dflocal.deleteflg as c1, dflocal.costrank as c2, dflocal.address1 as<br>
&gt; c3, dflocal.address2 as c4, dflocal.postalcode as c5, dflocal.lastupdated as<br>
&gt; c6, dflocal.employeecode as c7, dflocal.employeenamekanji as c8,<br>
&gt; dflocal.employeenamekana as c9, dflocal.employeefirstname as c10,<br>
&gt; dflocal.employeelastname as c11, dflocal.dob as c12, dflocal.age as c13,<br>
&gt; dflocal.joiningdate as c14, dflocal.designation as c15, dflocal.joblevel as<br>
&gt; c16, dflocal.yearofexperience as c17, dflocal.housephoneno as c18,<br>
&gt; dflocal.mobilephoneno as c19, dflocal.email as c20, dflocal.terminationdate<br>
&gt; as c21, dflocal.registerdate as c22<br>
&gt; &nbsp; from employeemaster dflocal<br>
&gt; &nbsp;where dflocal.employeecode like &#39;emp%&#39; escape &#39;|&#39;<br>
&gt; &nbsp;offset 0 limit 10<br>
&gt;<br>
&gt;<br>
&gt; Regards,<br>
&gt; $B%H%^%9(B<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jun 9, 2009 at 8:03 PM, kubo &lt;<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; Please confirm your SQL on console log.<br>
&gt;&gt; Does the SQL use &#39;ilike&#39;$B!)(B<br>
&gt;&gt; (where EMPLOYEE_CODE ilike &#39;emp%&#39;)<br>
&gt;&gt;<br>
&gt;&gt; 2009/6/9 thomas &lt;<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>&gt;:<br>
&gt;&gt; &gt; hai,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I upgraded my dbflute to 0.9.5.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; EmployeemasterCB empCB = employeemasterBhv.newMyConditionBean();<br>
&gt;&gt; &gt; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; empCB.query().setEmployeecode_LikeSearch(&quot;emp&quot;, new<br>
&gt;&gt; &gt; LikeSearchOption() {<br>
&gt;&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @Override<br>
&gt;&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public ExtensionOperand getExtensionOperand() {<br>
&gt;&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return<br>
&gt;&gt; &gt; WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
&gt;&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
&gt;&gt; &gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }.likePrefix());<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; if i give &quot;emp&quot; as search condition it retrieves only The values starts<br>
&gt;&gt; &gt; with<br>
&gt;&gt; &gt; emp.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; InMy table i have the values<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; emp22<br>
&gt;&gt; &gt; EMP22<br>
&gt;&gt; &gt; emp20<br>
&gt;&gt; &gt; EMP20<br>
&gt;&gt; &gt; .........<br>
&gt;&gt; &gt; .........<br>
&gt;&gt; &gt; ..........<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; The above coding retrieves only emp22 and emp20<br>
&gt;&gt; &gt; I want to retrieve EMP22 and EMP20 also.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thanks<br>
&gt;&gt; &gt; $B%H%^%9(B<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2009/6/9 thomas &lt;<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; hai,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks for your helps!..<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; On Tue, Jun 9, 2009 at 6:00 PM, kubo &lt;<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Hello,<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; Sorry! I mistook your DBFlute version.<br>
&gt;&gt; &gt;&gt;&gt; The method and class are supported since 0.9.5.<br>
&gt;&gt; &gt;&gt;&gt; So please upgrade DBFlute to 0.9.5 if possible.<br>
&gt;&gt; &gt;&gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; 2009/6/9 thomas &lt;<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt;&gt; &gt; hai,<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; cb.query().setMemberName_<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; LikeSearch(&quot;s&quot;, new LikeSearchOption() {<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;@Override<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;public ExtensionOperand getExtensionOperand() {<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;}<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; }.likePrefix());<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; import org.seasar.dbflute.dbway.ExtensionOperand;//Error<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; there is no class in org.seasar.dbflute.dbway like ExtensionOperand<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; 2009/6/9 kubo &lt;<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Hello,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Please watch this test case:<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; The method is &#39;test_likeSearch_caseInsensitive_Tx()&#39;.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; <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>

&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; cb.query().setMemberName_LikeSearch(&quot;s&quot;, new LikeSearchOption() {<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;@Override<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;public ExtensionOperand getExtensionOperand() {<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;}<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; }.likePrefix());<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; This code uses &#39;ilike&#39; in the SQL.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; (But this way is only available at PostgreSQL)<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; If you have many many points that must be without case sensitive,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; you should create CaseInsensitiveLikeSearchOption as your original<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; class.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Like this:<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; public class CaseInsensitiveLikeSearchOption extends<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; LikeSearchOption<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; {<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;@Override<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;public ExtensionOperand getExtensionOperand() {<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp;return WayOfPostgreSQL.OperandOfLikeSearch.CASE_INSENSITIVE;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &nbsp; &nbsp;}<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; }<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; 2009/6/9 thomas &lt;<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; Hai,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; I am using PostgresQL 8.3<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; 2009/6/9 kubo &lt;<a href="mailto:dbflute@gmail.com">dbflute@gmail.com</a>&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; Hello, this is jflute.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; For starters, there is one thing I want to confirm.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; What kind of database do you use?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; Oracle? MySQL? PostgreSQL? ...<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; 2009/6/9 thomas &lt;<a href="mailto:jp.mcy.10@gmail.com">jp.mcy.10@gmail.com</a>&gt;:<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; Hai,<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; I want to retrieve data without case sensitive using condition<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; Bean.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; dbflute version 0.9.4.1<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; empCB.query().setEmployeecode_LikeSearch(empcodes,new<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; LikeSearchOption());<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; How to change this code to get case sensitive result?<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; Please give steps to achieve this...<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; Thanks in advance.<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; $B%H%^%9(B<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; Seasar-user mailing list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; Seasar-user mailing list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; Seasar-user mailing list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; Seasar-user mailing list<br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; &gt; Seasar-user mailing list<br>
&gt;&gt; &gt;&gt;&gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt;&gt; &gt;&gt;&gt; &gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt;&gt; Seasar-user mailing list<br>
&gt;&gt; &gt;&gt;&gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt;&gt; &gt;&gt;&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Seasar-user mailing list<br>
&gt;&gt; &gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt;&gt; &gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Seasar-user mailing list<br>
&gt;&gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt;&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Seasar-user mailing list<br>
&gt; <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
&gt; <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
&gt;<br>
&gt;<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>