Package com.scooterframework.orm.activerecord

Examples of com.scooterframework.orm.activerecord.ActiveRecord


        List<String> tagList = Converters.convertStringToList(tags);
        if (tagList == null) return null;

        List<ActiveRecord> tagRecords = new ArrayList<ActiveRecord>();
        for (String tagName : tagList) {
            ActiveRecord atag = ActiveRecordUtil.getGateway(Tag.class).findFirst("name='" + tagName + "'");
            if (atag == null) {
                atag = new Tag();
                atag.setData("name=" + tagName);
                atag.create();
            }
            tagRecords.add(atag);
        }
       
        return tagRecords;
View Full Code Here


       
        List<String> tagList = Converters.convertStringToList(tags);
        if (tagList == null) return;
       
        for (String tagName : tagList) {
            ActiveRecord atag = ActiveRecordUtil.getGateway(Tag.class).findFirst("name='" + tagName + "'");
            if (atag != null) {
                atag.delete();
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.scooterframework.orm.activerecord.ActiveRecord

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.