Package com.nexirius.framework.jdbc

Examples of com.nexirius.framework.jdbc.DatabaseTableMapping


    }

    public void createChildren(DataModel parent, ArrayModel children) {
        if (children.getSize() > 0) {
            DataModel model = children.getDataModel(0);
            DatabaseTableMapping mapping = JdbcConnectionHandler.instance().getDatabaseTableMapping(model.getClass().getName());
            try {
                mapping.createChildren(children);
            } catch (Exception e) {
                e.printStackTrace()//TODO
            }
        }
    }
View Full Code Here


        DataModelEnumeration en = v.getEnumeration();

        while (en.hasMore()) {
            DataModel model = en.next();
            DatabaseTableMapping mapping = JdbcConnectionHandler.instance().getDatabaseTableMapping(model.getClass().getName());
            try {
                mapping.delete(model);
            } catch (Exception e) {
                e.printStackTrace()//TODO
            }
        }
    }
View Full Code Here

        delete(member.getPhones().getChildren());
        deleteModel(member);
    }

    private void deleteModel(DataModel model) {
        DatabaseTableMapping mapping = JdbcConnectionHandler.instance().getDatabaseTableMapping(model.getClass().getName());
        try {
            mapping.delete(model);
        } catch (Exception e) {
            e.printStackTrace()//TODO
        }
    }
View Full Code Here

TOP

Related Classes of com.nexirius.framework.jdbc.DatabaseTableMapping

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.