Package org.jayasoft.woj.server.data

Examples of org.jayasoft.woj.server.data.ModuleDescriptorDao.create()


  }

    private ModuleDescriptor newModuleDescriptor(UAK uak, String mod_org, String mod_name, String mod_rev, Long creator_id, int visibility) {
        ModuleDescriptorDao dao = WOJServer.getInstance().getDataService().getModuleDescriptorDao();
        long mrid = getNewMrid(uak);
        return (ModuleDescriptor)dao.create(mrid, creator_id, mod_org, mod_name, mod_rev, Visibility.fromInt(visibility));
    }

  private synchronized long getNewMrid(UAK uak) {
        if (_lastUsedMrid == -1 || _lastUsedMrid >= _reservedUntil) {
            WOJServer.getInstance().getDataService().getModuleDescriptorDao().getTransactionTemplate().execute(new TransactionCallbackWithoutResult() {
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.