public class EnumValueBuilder extends AbstractWhereClausePsPartBuilder
| Constructor and Description | 
|---|
| EnumValueBuilder() | 
| Modifier and Type | Method and Description | 
|---|---|
| PreparedStatementPart | buildPs(WhereClauseExpression whereClausePart,
       boolean ignoreCase,
       Query query,
       Adapter adapter)Takes a WhereClauseExpression containing a enum object and unwraps the enum value. | 
| protected Object | getWrappedValue(Object wrapped) | 
| boolean | isApplicable(WhereClauseExpression whereClauseExpression,
            Adapter adapter)Returns whether this WhereClausePsPartBuilder is applicable for
 a given WhereClauseExpression. | 
getObjectOrColumnPsPartBuilder, setObjectOrColumnPsPartBuilderpublic PreparedStatementPart buildPs(WhereClauseExpression whereClausePart, boolean ignoreCase, Query query, Adapter adapter) throws TorqueException
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 builtadapter - The adapter for the database for which the SQL
        should be created, not null.TorqueException - when rendering fails.protected Object getWrappedValue(Object wrapped) throws TorqueException
TorqueExceptionpublic boolean isApplicable(WhereClauseExpression whereClauseExpression, Adapter adapter)
whereClauseExpression - the WhereClauseExpression in question.adapter - The adapter for the database for which the SQL
        should be created, not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.