Package org.datanucleus.store.mapped.expression

Examples of org.datanucleus.store.mapped.expression.BooleanLiteral


            DatastoreMapping data_mapping = getDataStoreMapping(0);
            if (data_mapping.isBitBased() || data_mapping.isIntegerBased())
            {
                if (dba.supportsOption(DatastoreAdapter.BIT_IS_REALLY_BOOLEAN))
                {
                    expr = new BooleanLiteral(qs, this, ((Boolean)value).booleanValue());
                }
                else
                {
                    expr = new BooleanBitColumnLiteral(qs, this, ((Boolean)value).booleanValue());
                }
            }
            else if (data_mapping.isBooleanBased())
            {
                expr = new BooleanLiteral(qs, this, ((Boolean)value).booleanValue());
            }
            else if (data_mapping.isStringBased())
            {
                expr = new BooleanCharColumnLiteral(qs, this, ((Boolean)value).booleanValue());
            }
            else
            {
                expr = new BooleanLiteral(qs, this, ((Boolean)value).booleanValue());
            }
        }
        else
        {
            expr = new BooleanLiteral(qs, this, ((Boolean)value).booleanValue());
        }
        return expr;
    }
View Full Code Here

TOP

Related Classes of org.datanucleus.store.mapped.expression.BooleanLiteral

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.