Klasse EnumValueBuilder

java.lang.Object
org.apache.torque.sql.whereclausebuilder.AbstractWhereClausePsPartBuilder
org.apache.torque.sql.whereclausebuilder.EnumValueBuilder
Alle implementierten Schnittstellen:
WhereClausePsPartBuilder

public class EnumValueBuilder extends AbstractWhereClausePsPartBuilder
Builds a PreparedStatementPart from a WhereClauseExpression containing an enum object.
Version:
$Id: InBuilder.java 1448414 2013-02-20 21:06:35Z tfischer $
  • Konstruktordetails

    • EnumValueBuilder

      public EnumValueBuilder()
  • Methodendetails

    • buildPs

      public PreparedStatementPart buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) throws TorqueException
      Takes a WhereClauseExpression containing a enum object and unwraps the enum value.
      Parameter:
      whereClausePart - the part of the where clause to build. Can be modified in this method.
      ignoreCase - If true and columns represent Strings, the appropriate function defined for the database will be used to ignore differences in case.
      query - the query which is currently built
      adapter - The adapter for the database for which the SQL should be created, not null.
      Gibt zurück:
      the PreparedStatementPart for the WhereClauseExpression.
      Löst aus:
      TorqueException - when rendering fails.
    • getWrappedValue

      protected Object getWrappedValue(Object wrapped) throws TorqueException
      Löst aus:
      TorqueException
    • isApplicable

      public boolean isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)
      Returns whether this WhereClausePsPartBuilder is applicable for a given WhereClauseExpression.
      Parameter:
      whereClauseExpression - the WhereClauseExpression in question.
      adapter - The adapter for the database for which the SQL should be created, not null.
      Gibt zurück:
      true if applicable, false otherwise.