Package net.java.ao

Examples of net.java.ao.DBParam


    return versionStatistic;
  }

  private VersionStatistic create(String projectKey, String version, StatisticRef statisticRef, UserWrapper userWrapper)
  {
    VersionStatistic versionStatistic = ao.create(getClazz(), new DBParam("KEY", KeyableUtils.buildKey(projectKey, version, statisticRef, userWrapper)));
    versionStatistic.setProjectKey(projectKey);
    versionStatistic.setVersion(version);
    versionStatistic.setStatisticRef(statisticRef);
    versionStatistic.setUserWrapper(userWrapper);
    versionStatistic.save();
View Full Code Here


    return userStatistic;
  }

  private UserStatistic create(StatisticRef statisticRef, UserWrapper userWrapper)
  {
    UserStatistic userStatistic = ao.create(UserStatistic.class, new DBParam("KEY", KeyableUtils.buildKey(statisticRef, userWrapper)));
    userStatistic.setStatisticRef(statisticRef);
    userStatistic.setUserWrapper(userWrapper);
    userStatistic.save();

    return userStatistic;
View Full Code Here

    return projectStatistic;
  }

  private ProjectStatistic create(String projectKey, StatisticRef statisticRef, UserWrapper userWrapper)
  {
    ProjectStatistic projectStatistic = ao.create(getClazz(), new DBParam("KEY", KeyableUtils.buildKey(projectKey, statisticRef, userWrapper)));
    projectStatistic.setProjectKey(projectKey);
    projectStatistic.setStatisticRef(statisticRef);
    projectStatistic.setUserWrapper(userWrapper);
    projectStatistic.save();
View Full Code Here

    return componentStatistic;
  }

  private ComponentStatistic create(String projectKey, String component, StatisticRef statisticRef, UserWrapper userWrapper)
  {
    ComponentStatistic componentStatistic = ao.create(getClazz(), new DBParam("KEY", KeyableUtils.buildKey(projectKey, component, statisticRef, userWrapper)));
    componentStatistic.setProjectKey(projectKey);
    componentStatistic.setComponent(component);
    componentStatistic.setStatisticRef(statisticRef);
    componentStatistic.setUserWrapper(userWrapper);
    componentStatistic.save();
View Full Code Here

TOP

Related Classes of net.java.ao.DBParam

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.