Package com.scooterframework.orm.activerecord

Examples of com.scooterframework.orm.activerecord.ActiveRecord.create()


            if (currentTags != null && currentTags.contains(tagName)) continue;
            currentTags.add(tagName);
           
            ActiveRecord atag = new Tag();
            atag.setData("name=" + tagName);
            atag.create();
        }
    }

    /**
     * Registers record types that can be treated as taggable. This methods
View Full Code Here


           
            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 record.allAssociated(Tag.class).add(tagRecords);
View Full Code Here

        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

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.