Package com.nearinfinity.honeycomb.mysql.gen

Examples of com.nearinfinity.honeycomb.mysql.gen.ColumnType


    public static final Generator<String> MYSQL_NAME_GEN =
            CombinedGenerators.uniqueValues(PrimitiveGenerators.strings(1, MYSQL_MAX_NAME_LENGTH));

    @Override
    public ColumnSchema next() {
        ColumnType type = typeGen.next();
        ColumnSchema.Builder builder = ColumnSchema.builder(MYSQL_NAME_GEN.next(), type);
        switch (type) {
            case STRING:
            case BINARY:
                builder.setMaxLength(lengthGen.next());
View Full Code Here


     */
    public static ByteBuffer parse(String val, ColumnSchema schema) throws ParseException {
        checkNotNull(val, "Should not be parsing null. Something went terribly wrong.");
        checkNotNull(schema, "Column metadata is null.");

        ColumnType type = schema.getType();

        if (val.length() == 0 && type != ColumnType.STRING
                && type != ColumnType.BINARY) {
            if (schema.getIsNullable()) {
                return null;
View Full Code Here

TOP

Related Classes of com.nearinfinity.honeycomb.mysql.gen.ColumnType

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.