Package com.jengine.orm.model.field

Examples of com.jengine.orm.model.field.Field.eq()


    public Object getValue(Model obj) throws DBException {
        ModelClassBase middleCls = getMiddleClass();
        Field middleField = getMiddleField();
        Object keyValue = obj.getData().get(getKeyFieldName());
        return middleCls.filter(middleField.eq(keyValue)).target(middleField);
    }

    public void createMiddleClass() throws DBException {
        ModelClassBase referenceModelClass = getReferenceClass();
        ModelClassBase middleModelClass = getMiddleClass();
View Full Code Here


    }

    public void remove(Model obj) throws DBException {
        ModelClassBase middleModelClass = getMiddleClass();
        Field middleModelField = getMiddleField();
        middleModelClass.filter(middleModelField.eq(obj.getValue(getKeyFieldName()))).remove();
    }

    public ModelClassBase getMiddleClass() {
        return manager.getModelClass().getDb().getModelClass(getMiddleModelName());
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.