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

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


    }

    @Override
    public void disassemble(Object object, List<AssemblyStep> steps, DisassemblerService disassemblerService) {
        List<Field> fields = CassidyUtils.getPersistableFields(object.getClass());
        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));
View Full Code Here


    }

    @Override
    public void disassemble(Object object, List<AssemblyStep> steps, DisassemblerService disassemblerService) {
        List<PersistableField> fields = PersistableField.getPersistableFields(object.getClass());
        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));
View Full Code Here

    }

    @Override
    public void disassemble(Object object, List<AssemblyStep> steps, DisassemblerService disassemblerService) {
        List<Field> fields = CassidyUtils.getAllFields(object.getClass());
        steps.add(new CreateStep(object.getClass()));
        for (Field field : fields) {
            if (CassidyUtils.isPersistable(field)) {
                final String fieldName = field.getName();
                final Object fieldValue = CassidyUtils.getFieldValue(object, fieldName);
                if (fieldValue == null) {
View Full Code Here

    }

    @Override
    public void disassemble(Object object, List<AssemblyStep> steps, CassidyContext context, DisassemblerService service) {
        List<PersistableField> fields = PersistableField.getPersistableFields(object.getClass());
        steps.add(new CreateStep(object.getClass()));
        for (PersistableField field : fields) {
            final String fieldName = field.getFieldName();
            final Object fieldValue = field.getValue(object);
            if (!CassidyUtils.isDefaultValue(field.getType(), fieldValue)) {
                steps.addAll(service.disassemble(fieldValue));
View Full Code Here

TOP

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

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.