Package com.avaje.ebeaninternal.server.type

Examples of com.avaje.ebeaninternal.server.type.ScalarTypeEnum


    }

    public String getDbConstraintExpression() {
        if (scalarType instanceof ScalarTypeEnum) {
            // create a check constraint for the enum
            ScalarTypeEnum etype = (ScalarTypeEnum) scalarType;

            // check dbColName IN ('A', 'I', 'D')
            return "check (" + dbColumn + " in " + etype.getContraintInValues() + ")";
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.type.ScalarTypeEnum

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.