Examples of ModelManager


Examples of com.knowgate.hipergate.datamodel.ModelManager

      String sRetVal = oUsr.getString(DB.gu_user);

    // ************
    // New for v4.0

    ModelManager oModMan = new ModelManager();
    oModMan.setConnection((Connection)oConn);
    try {
      oModMan.createCategoriesForUser(sRetVal);
      if (oModMan.report().length()>0) throw new SQLException(oModMan.report(), "EVAL");
      } catch (IOException ioe) {
        throw new SQLException("IOException "+ioe.getMessage());
      } catch (SQLException sql) {
        throw new SQLException("SQLException "+sql.getMessage(), sql.getSQLState(), sql.getErrorCode());
      }
View Full Code Here

Examples of com.knowgate.hipergate.datamodel.ModelManager

     oUserInsr = oConn.prepareStatement("INSERT INTO k_users (dt_created,id_domain,tx_nickname,tx_pwd,tx_pwd_sign,bo_change_pwd,bo_searchable,bo_active,len_quota,max_quota,tp_account,id_account,dt_last_update,dt_last_visit,dt_cancel,tx_main_email,tx_alt_email,nm_user,tx_surname1,tx_surname2,tx_challenge,tx_reply,dt_pwd_expires,gu_category,gu_workarea,nm_company,de_title,id_gender,dt_birth,ny_age,marital_status,tx_education,icq_id,sn_passport,tp_passport,tx_comments,gu_user) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
     oUserUpdt = oConn.prepareStatement("UPDATE k_users SET id_domain=?,tx_nickname=?,tx_pwd=?,tx_pwd_sign=?,bo_change_pwd=?,bo_searchable=?,bo_active=?,len_quota=?,max_quota=?,tp_account=?,id_account=?,dt_last_update=?,dt_last_visit=?,dt_cancel=?,tx_main_email=?,tx_alt_email=?,nm_user=?,tx_surname1=?,tx_surname2=?,tx_challenge=?,tx_reply=?,dt_pwd_expires=?,gu_category=?,gu_workarea=?,nm_company=?,de_title=?,id_gender=?,dt_birth=?,ny_age=?,marital_status=?,tx_education=?,icq_id=?,sn_passport=?,tp_passport=?,tx_comments=? WHERE gu_user=?");
     oGroupInsr= oConn.prepareStatement("INSERT INTO k_x_group_user (gu_user,gu_acl_group) VALUES(?,?)");

     oModMan = new ModelManager();

     if (DebugFile.trace) {
       DebugFile.decIdent();
       DebugFile.writeln("End UserLoader.prepare()");
     }
View Full Code Here

Examples of com.knowgate.hipergate.datamodel.ModelManager

     oFellwLook = oConn.prepareStatement("SELECT NULL FROM k_fellows_lookup WHERE gu_owner=? AND id_section=? AND vl_lookup=?",ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_READ_ONLY);
     oFellwWook = oConn.prepareStatement("INSERT INTO k_fellows_lookup (gu_owner,id_section,pg_lookup,vl_lookup,"+ImportLoader.LOOUKP_TR_COLUMNS+") VALUES(?,?,?,?"+Gadgets.repeat(",?",ImportLoader.LOOUKP_TR_COUNT)+")");

     oGroupInsr= oConn.prepareStatement("INSERT INTO k_x_group_user (gu_user,gu_acl_group) VALUES(?,?)");

   oModMan = new ModelManager();

     if (DebugFile.trace) {
       DebugFile.decIdent();
       DebugFile.writeln("End FellowLoader.prepare()");
     }
View Full Code Here

Examples of com.mojang.minecraft.model.ModelManager

         this.fontRenderer = new FontRenderer(this.settings, "/default.png", this.textureManager);
         IntBuffer var9;
         (var9 = BufferUtils.createIntBuffer(256)).clear().limit(256);
         this.levelRenderer = new LevelRenderer(this, this.textureManager);
         Item.initModels();
         Mob.modelCache = new ModelManager();
         GL11.glViewport(0, 0, this.width, this.height);
         if(this.server != null && this.session != null) {
            Level var85;
            (var85 = new Level()).setData(8, 8, 8, new byte[512]);
            this.setLevel(var85);
View Full Code Here

Examples of com.zesped.idl.ModelManager

  public static String USRID, ACCID;

  //-----------------------------------------------------------
 
  @BeforeClass public static void init() throws Exception {
    ModelManager oMan = new ModelManager();   
    oDao = new DAO();
    oDao.init(oMan.getConnectionProperties());
    AtrilSession oSes = DAO.getAdminSession("SmokeTest");
    oSes.autoCommit(true);   
    try {
      USRID = User.forEmail(TEST_USER_EMAIL);
    } catch (ElementNotFoundException notfound) {
View Full Code Here

Examples of de.hpi.eworld.core.ModelManager

  private boolean generateCfgFile(boolean tlsFile, boolean netFile, boolean rouFile, boolean addFile) {
    if (!path_name.equals("") && !(filename.equals(""))) {
      EWorld2sumoTemplate_Config configXml = new EWorld2sumoTemplate_Config();

      List<String> arguments = new ArrayList<String>();
      ModelManager mManager = ModelManager.getInstance();

      arguments.add(filename);
      arguments.add(String.valueOf(mManager.getSimulationStartTime()));
      arguments.add(String.valueOf(mManager.getSimulationEndTime()));
      arguments.add(String.valueOf(tlsFile));
      arguments.add(String.valueOf(netFile));
      arguments.add(String.valueOf(rouFile));
      arguments.add(String.valueOf(doStatistics));
      // arguments.add(String.valueOf(statisticsIntervals));
View Full Code Here

Examples of de.hpi.eworld.core.ModelManager

    generateTripFileFromEwd();

    List<String> command = new ArrayList<String>();

    ModelManager mManager = ModelManager.getInstance();

    command.add(duarouter_dest);
    command.add("--trips");
    command.add(path_name + File.separator + filename + ".trips.xml");
    command.add("--net");
    command.add(path_name + File.separator + filename + ".net.xml");
    command.add("-o");
    command.add(path_name + File.separator + filename + ".rou.xml");
    command.add("-b");
    command.add(String.valueOf(mManager.getSimulationStartTime()));
    command.add("-e");
    command.add(String.valueOf(mManager.getSimulationEndTime()));
    command.add("--continue-on-unbuild");
    /*
     * are we using sumo 0.9.8? if yes, then append another parameter. as of version 0.9.9 this one is obsolete and we will omit it then.
     */
    int[] tmp = { 0, 9, 9 };
View Full Code Here

Examples of de.hpi.eworld.core.ModelManager

   * @return a list of commands
   */
  private List<String> createRandRouteCommand(String duarouter_dest, String arguments) {
    List<String> command = new ArrayList<String>();

    ModelManager mManager = ModelManager.getInstance();

    command.add(duarouter_dest);
    command.add("--net");
    command.add(path_name + File.separator + filename + ".net.xml");
    command.add("-o");
    command.add(path_name + File.separator + filename + ".rou.xml");
    command.add("-b");
    command.add(String.valueOf(mManager.getSimulationStartTime()));
    command.add("-e");
    command.add(String.valueOf(mManager.getSimulationEndTime()));
    command.add("--continue-on-unbuild");
    /*
     * are we using sumo 0.9.8? if yes, then append another parameter. as of version 0.9.9 this one is obsolete and we will omit it then.
     */
    int[] minVersion = { 0, 9, 9 };
View Full Code Here

Examples of de.hpi.eworld.core.ModelManager

   * @return The command in the form of a list.
   */
  private List<String> createScenariosCommand(String duarouterDestination) {
    List<String> command = new ArrayList<String>();

    ModelManager mManager = ModelManager.getInstance();

    command.add(duarouterDestination);
    command.add("--net");
    command.add(path_name + File.separator + filename + ".net.xml");
    command.add("--flows");
    command.add(path_name + File.separator + filename + ".flows.xml");
    command.add("-o");
    command.add(path_name + File.separator + filename + ".rou.xml");
    command.add("-b");
    command.add(String.valueOf(mManager.getSimulationStartTime()));
    command.add("-e");
    command.add(String.valueOf(mManager.getSimulationEndTime()));

    return command;
  }
View Full Code Here

Examples of de.hpi.eworld.core.ModelManager

   * @param inputFilename
   */
  private void testParseFileInputStream(String inputFilename) {
    Osm2Model converter = new Osm2Model();
    this.mmmu = ModelManagerMockUp.getInstance();
    ModelManager mm = ModelManager.getInstance();
    mm.clearModel();
    mm.addObserver(this.mmmu);
    try {
      converter.parseFile(new FileInputStream(inputFilename));
    }
    catch (Exception xcp) {
      xcp.printStackTrace();
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.