Package com.carmanconsulting.cassidy.pojo.assembly.step

Examples of com.carmanconsulting.cassidy.pojo.assembly.step.SetNullStep


        steps.add(new CreateStep(object.getClass()));
        for (Field field : fields) {
            final String fieldName = field.getName();
            final Object fieldValue = CassidyUtils.getFieldValue(object, fieldName);
            if (fieldValue == null) {
                steps.add(new SetNullStep(fieldName));
            } else {
                steps.addAll(disassemblerService.disassemble(fieldValue));
                steps.add(new SetValueStep(fieldName));
            }
        }
View Full Code Here


        steps.add(new CreateStep(object.getClass()));
        for (PersistableField field : fields) {
            final String fieldName = field.getFieldName();
            final Object fieldValue = field.getValue(object);
            if (fieldValue == null) {
                steps.add(new SetNullStep(fieldName));
            } else {
                steps.addAll(disassemblerService.disassemble(fieldValue));
                steps.add(new SetValueStep(fieldName));
            }
        }
View Full Code Here

        for (Field field : fields) {
            if (CassidyUtils.isPersistable(field)) {
                final String fieldName = field.getName();
                final Object fieldValue = CassidyUtils.getFieldValue(object, fieldName);
                if (fieldValue == null) {
                    steps.add(new SetNullStep(fieldName));
                } else {
                    steps.addAll(disassemblerService.disassemble(fieldValue));
                    steps.add(new SetValueStep(fieldName));
                }
            }
View Full Code Here

TOP

Related Classes of com.carmanconsulting.cassidy.pojo.assembly.step.SetNullStep

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.