All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.heliorm.impl.ByteArrayFieldPart Maven / Gradle / Ivy

The newest version!
package com.heliorm.impl;

import com.heliorm.OrmException;
import com.heliorm.Table;
import com.heliorm.def.Continuation;
import com.heliorm.def.ByteArrayField;

import static com.heliorm.Field.FieldType.LOCAL_DATE_TIME;

/**
 * @author gideon
 */
public final class ByteArrayFieldPart extends FieldPart implements
        ByteArrayField {

    public ByteArrayFieldPart(Table table, String javaName) {
        super(table, LOCAL_DATE_TIME, byte[].class, javaName);
    }

    @Override
    public Continuation isNull() throws OrmException {
        return new IsExpressionPart<>(getThis(), IsExpressionPart.Operator.IS_NULL);
    }

    @Override
    public Continuation isNotNull() throws OrmException {
        return new IsExpressionPart<>(getThis(), IsExpressionPart.Operator.IS_NOT_NULL);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy