Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2014 Philip Helger (www.helger.com) philip[at]helger[dot]com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package com.helger.appbasics.data.select;
 
 
 
 public final class SelectFilterBetween implements ISelectFilter
 {
   @Nonnull
   private final String m_sColumn;
   @Nonnull
   private final Object m_aFilterValueFrom;
   @Nonnull
   private final Object m_aFilterValueTo;
 
   public SelectFilterBetween (@Nonnull @Nonempty final String sColumn,
                               @Nonnull final Object aFilterValueFrom,
                               @Nonnull final Object aFilterValueTo)
   {
      = ValueEnforcer.notEmpty (sColumn"Column");
      = ValueEnforcer.notNull (aFilterValueFrom"FilterValueFrom");
      = ValueEnforcer.notNull (aFilterValueTo"FilterValueTo");
   }
 
   @Nonnull
   @Nonempty
   public String getColumn ()
   {
     return ;
   }
 
   @Nonnull
   {
   }
 
   @Nonnull
   public Object getFilterValueSQL ()
   {
     return ;
   }
 
   @Nonnull
   public Object getFilterValueSQL2 ()
   {
     return ;
   }
 
   @Override
   public boolean equals (final Object o)
   {
     if (o == this)
       return true;
     if (!(o instanceof SelectFilterBetween))
       return false;
     final SelectFilterBetween rhs = (SelectFilterBetweeno;
     return .equals (rhs.m_sColumn) &&
            EqualsUtils.equals (rhs.m_aFilterValueFrom) &&
            EqualsUtils.equals (rhs.m_aFilterValueTo);
   }
 
   @Override
   public int hashCode ()
   {
     return new HashCodeGenerator (this).append ()
                                        .append ()
                                        .append ()
                                        .getHashCode ();
   }
 
   @Override
   public String toString ()
   {
     return new ToStringGenerator (this).append ("column")
                                        .append ("filterValueFrom")
                                        .append ("filterValueTo")
                                       .toString ();
  }
New to GrepCode? Check out our FAQ X