/**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public void doBuild() throws TorqueException {
    dbMap = Torque.getDatabaseMap("default");

    dbMap.addTable("JETSPEED_USER_PROFILE");
    TableMap tMap = dbMap.getTable("JETSPEED_USER_PROFILE");

    tMap.setPrimaryKeyMethod(TableMap.NATIVE);

    tMap.setPrimaryKeyMethodInfo("JETSPEED_USER_PROFILE");

    tMap.addPrimaryKey("JETSPEED_USER_PROFILE.PSML_ID", new Integer(0));
    tMap.addColumn("JETSPEED_USER_PROFILE.USER_NAME", new String());
    tMap.addColumn("JETSPEED_USER_PROFILE.MEDIA_TYPE", new String());
    tMap.addColumn("JETSPEED_USER_PROFILE.LANGUAGE", new String());
    tMap.addColumn("JETSPEED_USER_PROFILE.COUNTRY", new String());
    tMap.addColumn("JETSPEED_USER_PROFILE.PAGE", new String());
    tMap.addColumn("JETSPEED_USER_PROFILE.PROFILE", new Object());
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("mydb");

    dbMap.addTable("tbl1");
    TableMap tMap = dbMap.getTable("tbl1");
    tMap.setJavaName("Tbl1");
    tMap.setOMClass(org.grajagan.Tbl1.class);
    tMap.setPeerClass(org.grajagan.Tbl1Peer.class);
    tMap.setPrimaryKeyMethod(TableMap.NATIVE);
    tMap.setPrimaryKeyMethodInfo("tbl1");

    ColumnMap cMap = null;

    // ------------- Column: tbl1_id --------------------
    cMap = new ColumnMap("tbl1_id", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("Tbl1Id");
    cMap.setAutoIncrement(true);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: name --------------------
    cMap = new ColumnMap("name", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Name");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(64);
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public void doBuild() throws TorqueException {
    dbMap = Torque.getDatabaseMap("brihaspati");

    dbMap.addTable("USER_CONFIGURATION");
    TableMap tMap = dbMap.getTable("USER_CONFIGURATION");

    tMap.setPrimaryKeyMethod("none");

    tMap.addPrimaryKey("USER_CONFIGURATION.USER_ID", new Integer(0));
    tMap.addColumn("USER_CONFIGURATION.QUESTION_ID", new Integer(0));
    tMap.addColumn("USER_CONFIGURATION.ANSWER", new String());
    tMap.addColumn("USER_CONFIGURATION.LIST_CONFIGURATION", new Integer(0));
    tMap.addColumn("USER_CONFIGURATION.PHOTO", new String());
    tMap.addColumn("USER_CONFIGURATION.TASK_CONFIGURATION", new Integer(0));
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public void doBuild() throws TorqueException {
    dbMap = Torque.getDatabaseMap("brihaspati");

    dbMap.addTable("DB_RECEIVE");
    TableMap tMap = dbMap.getTable("DB_RECEIVE");

    tMap.setPrimaryKeyMethod("none");

    tMap.addPrimaryKey("DB_RECEIVE.MSG_ID", new Integer(0));
    tMap.addPrimaryKey("DB_RECEIVE.RECEIVER_ID", new Integer(0));
    tMap.addColumn("DB_RECEIVE.GROUP_ID", new Integer(0));
    tMap.addColumn("DB_RECEIVE.READ_FLAG", new Integer(0));
  }
Example #5
0
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public void doBuild() throws TorqueException {
    dbMap = Torque.getDatabaseMap("default");

    dbMap.addTable("TURBINE_USER");
    TableMap tMap = dbMap.getTable("TURBINE_USER");

    tMap.setPrimaryKeyMethod(TableMap.NATIVE);

    tMap.setPrimaryKeyMethodInfo("TURBINE_USER");

    tMap.addPrimaryKey("TURBINE_USER.USER_ID", new Integer(0));
    tMap.addColumn("TURBINE_USER.LOGIN_NAME", new String());
    tMap.addColumn("TURBINE_USER.PASSWORD_VALUE", new String());
    tMap.addColumn("TURBINE_USER.FIRST_NAME", new String());
    tMap.addColumn("TURBINE_USER.LAST_NAME", new String());
    tMap.addColumn("TURBINE_USER.EMAIL", new String());
    tMap.addColumn("TURBINE_USER.CONFIRM_VALUE", new String());
    tMap.addColumn("TURBINE_USER.MODIFIED", new Date());
    tMap.addColumn("TURBINE_USER.CREATED", new Date());
    tMap.addColumn("TURBINE_USER.LAST_LOGIN", new Date());
    tMap.addColumn("TURBINE_USER.DISABLED", new String());
    tMap.addColumn("TURBINE_USER.OBJECTDATA", new Object());
    tMap.addColumn("TURBINE_USER.PASSWORD_CHANGED", new Date());
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public void doBuild() throws TorqueException {
    dbMap = Torque.getDatabaseMap("brihaspati");

    dbMap.addTable("TURBINE_USER");
    TableMap tMap = dbMap.getTable("TURBINE_USER");

    tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);

    tMap.setPrimaryKeyMethodInfo(tMap.getName());

    tMap.addPrimaryKey("TURBINE_USER.USER_ID", new Integer(0));
    tMap.addColumn("TURBINE_USER.LOGIN_NAME", new String());
    tMap.addColumn("TURBINE_USER.PASSWORD_VALUE", new String());
    tMap.addColumn("TURBINE_USER.FIRST_NAME", new String());
    tMap.addColumn("TURBINE_USER.LAST_NAME", new String());
    tMap.addColumn("TURBINE_USER.EMAIL", new String());
    tMap.addColumn("TURBINE_USER.CONFIRM_VALUE", new String());
    tMap.addColumn("TURBINE_USER.MODIFIED", new Date());
    tMap.addColumn("TURBINE_USER.CREATED", new Date());
    tMap.addColumn("TURBINE_USER.LAST_LOGIN", new Date());
    tMap.addColumn("TURBINE_USER.OBJECTDATA", new Object());
    tMap.addColumn("TURBINE_USER.QUOTA", new BigDecimal(0));
  }
Example #7
0
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public void doBuild() throws TorqueException {
    dbMap = Torque.getDatabaseMap("dream");

    dbMap.addTable("DISTRIBUTOR");
    TableMap tMap = dbMap.getTable("DISTRIBUTOR");

    tMap.setPrimaryKeyMethod(TableMap.NATIVE);

    tMap.setPrimaryKeyMethodInfo("DISTRIBUTOR_SEQ");

    tMap.addPrimaryKey("DISTRIBUTOR.DISTRIBUTOR_ID", new Integer(0));
    tMap.addColumn("DISTRIBUTOR.DISTRIBUTOR_CODE", new String());
    tMap.addColumn("DISTRIBUTOR.STATUS", new Integer(0));
    tMap.addColumn("DISTRIBUTOR.DISTRIBUTOR_NAME_1", new String());
    tMap.addColumn("DISTRIBUTOR.DISTRIBUTOR_NAME_2", new String());
    tMap.addColumn("DISTRIBUTOR.DISTRIBUTOR_DISPLAY", new String());
    tMap.addColumn("DISTRIBUTOR.DEAR", new String());
    tMap.addColumn("DISTRIBUTOR.DISTRIBUTOR_TYPE", new Integer(0));
    tMap.addColumn("DISTRIBUTOR.GENDER", new Integer(0));
    tMap.addForeignKey(
        "DISTRIBUTOR.DISTRIBUTOR_CAT_ID",
        new Integer(0),
        "DISTRIBUTOR_CATEGORY",
        "DISTRIBUTOR_CAT_ID");
    tMap.addForeignKey("DISTRIBUTOR.LANGUAGE_ID", new Integer(0), "LANGUAGE", "LANGUAGE_ID");
    tMap.addColumn("DISTRIBUTOR.ADDRESS_1", new String());
    tMap.addColumn("DISTRIBUTOR.ADDRESS_2", new String());
    tMap.addColumn("DISTRIBUTOR.CITY", new String());
    tMap.addColumn("DISTRIBUTOR.ZIP", new String());
    tMap.addColumn("DISTRIBUTOR.STATE", new String());
    tMap.addForeignKey("DISTRIBUTOR.COUNTRY_ID", new Integer(0), "COUNTRY", "COUNTRY_ID");
    tMap.addForeignKey("DISTRIBUTOR.REGION_ID", new Integer(0), "REGION", "REGION_ID");
    tMap.addColumn("DISTRIBUTOR.PHONE_1", new String());
    tMap.addColumn("DISTRIBUTOR.PHONE_2", new String());
    tMap.addColumn("DISTRIBUTOR.FAX", new String());
    tMap.addColumn("DISTRIBUTOR.EMAIL", new String());
    tMap.addColumn("DISTRIBUTOR.EMAIL_FORMAT", new Integer(0));
    tMap.addColumn("DISTRIBUTOR.SEND_NEWS", new Integer(0));
    tMap.addColumn("DISTRIBUTOR.WEB_URL", new String());
    tMap.addColumn("DISTRIBUTOR.CUSTOM_1", new String());
    tMap.addColumn("DISTRIBUTOR.CUSTOM_2", new String());
    tMap.addColumn("DISTRIBUTOR.CUSTOM_3", new String());
    tMap.addColumn("DISTRIBUTOR.CUSTOM_4", new String());
    tMap.addColumn("DISTRIBUTOR.CUSTOM_5", new String());
    tMap.addColumn("DISTRIBUTOR.CUSTOM_6", new String());
    tMap.addColumn("DISTRIBUTOR.NOTES", new String());
    tMap.addColumn("DISTRIBUTOR.CREATED", new Date());
    tMap.addColumn("DISTRIBUTOR.MODIFIED", new Date());
    tMap.addColumn("DISTRIBUTOR.CREATED_BY", new String());
    tMap.addColumn("DISTRIBUTOR.MODIFIED_BY", new String());
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  @Override
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("track");

    dbMap.addTable("TDEPARTMENT");
    TableMap tMap = dbMap.getTable("TDEPARTMENT");
    tMap.setJavaName("TDepartment");
    tMap.setOMClass(com.aurel.track.persist.TDepartment.class);
    tMap.setPeerClass(com.aurel.track.persist.TDepartmentPeer.class);
    tMap.setDescription("This table holds the departments. Each user belongs to one department.");
    tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
    tMap.setPrimaryKeyMethodInfo(tMap.getName());

    ColumnMap cMap = null;

    // ------------- Column: PKEY --------------------
    cMap = new ColumnMap("PKEY", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("ObjectID");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: LABEL --------------------
    cMap = new ColumnMap("LABEL", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Label");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(255);
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    // ------------- Column: COSTCENTER --------------------
    cMap = new ColumnMap("COSTCENTER", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Costcenter");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TCOSTCENTER", "OBJECTID");
    cMap.setPosition(3);
    tMap.addColumn(cMap);
    // ------------- Column: PARENT --------------------
    cMap = new ColumnMap("PARENT", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Parent");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(4);
    tMap.addColumn(cMap);
    // ------------- Column: DOMAINKEY --------------------
    cMap = new ColumnMap("DOMAINKEY", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Domain");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TDOMAIN", "OBJECTID");
    cMap.setPosition(5);
    tMap.addColumn(cMap);
    // ------------- Column: TPUUID --------------------
    cMap = new ColumnMap("TPUUID", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Uuid");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(36);
    cMap.setPosition(6);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  @Override
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("track");

    dbMap.addTable("TPSEVERITY");
    TableMap tMap = dbMap.getTable("TPSEVERITY");
    tMap.setJavaName("TPseverity");
    tMap.setOMClass(com.aurel.track.persist.TPseverity.class);
    tMap.setPeerClass(com.aurel.track.persist.TPseverityPeer.class);
    tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
    tMap.setPrimaryKeyMethodInfo(tMap.getName());

    ColumnMap cMap = null;

    // ------------- Column: OBJECTID --------------------
    cMap = new ColumnMap("OBJECTID", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("ObjectID");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: SEVERITY --------------------
    cMap = new ColumnMap("SEVERITY", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Severity");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TSEVERITY", "PKEY");
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    // ------------- Column: PROJECTTYPE --------------------
    cMap = new ColumnMap("PROJECTTYPE", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("ProjectType");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TPROJECTTYPE", "OBJECTID");
    cMap.setPosition(3);
    tMap.addColumn(cMap);
    // ------------- Column: LISTTYPE --------------------
    cMap = new ColumnMap("LISTTYPE", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("ListType");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TCATEGORY", "PKEY");
    cMap.setPosition(4);
    tMap.addColumn(cMap);
    // ------------- Column: TPUUID --------------------
    cMap = new ColumnMap("TPUUID", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Uuid");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(36);
    cMap.setPosition(5);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  @Override
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("track");

    dbMap.addTable("TPROJECTREPORTREPOSITORY");
    TableMap tMap = dbMap.getTable("TPROJECTREPORTREPOSITORY");
    tMap.setJavaName("TProjectReportRepository");
    tMap.setOMClass(com.aurel.track.persist.TProjectReportRepository.class);
    tMap.setPeerClass(com.aurel.track.persist.TProjectReportRepositoryPeer.class);
    tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
    tMap.setPrimaryKeyMethodInfo(tMap.getName());

    ColumnMap cMap = null;

    // ------------- Column: PKEY --------------------
    cMap = new ColumnMap("PKEY", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("ObjectID");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: PROJECT --------------------
    cMap = new ColumnMap("PROJECT", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("ProjectID");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TPROJECT", "PKEY");
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    // ------------- Column: NAME --------------------
    cMap = new ColumnMap("NAME", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Name");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(100);
    cMap.setPosition(3);
    tMap.addColumn(cMap);
    // ------------- Column: QUERY --------------------
    cMap = new ColumnMap("QUERY", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Query");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(8191);
    cMap.setPosition(4);
    tMap.addColumn(cMap);
    // ------------- Column: TPUUID --------------------
    cMap = new ColumnMap("TPUUID", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Uuid");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(36);
    cMap.setPosition(5);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
Example #11
0
 /**
  * Creates an IDBroker for the ID table.
  *
  * @param tMap A TableMap.
  * @deprecated Use IDBroker(DatabaseInfo) instead. Will be removed in a future version of Torque.
  */
 public IDBroker(TableMap tMap) {
   this(tMap.getDatabaseMap().getName());
 }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  @Override
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("track");

    dbMap.addTable("TEXPORTTEMPLATE");
    TableMap tMap = dbMap.getTable("TEXPORTTEMPLATE");
    tMap.setJavaName("TExportTemplate");
    tMap.setOMClass(com.aurel.track.persist.TExportTemplate.class);
    tMap.setPeerClass(com.aurel.track.persist.TExportTemplatePeer.class);
    tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
    tMap.setPrimaryKeyMethodInfo(tMap.getName());

    ColumnMap cMap = null;

    // ------------- Column: OBJECTID --------------------
    cMap = new ColumnMap("OBJECTID", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("ObjectID");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: NAME --------------------
    cMap = new ColumnMap("NAME", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Name");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(255);
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    // ------------- Column: REPORTTYPE --------------------
    cMap = new ColumnMap("REPORTTYPE", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("ReportType");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(255);
    cMap.setPosition(3);
    tMap.addColumn(cMap);
    // ------------- Column: EXPORTFORMAT --------------------
    cMap = new ColumnMap("EXPORTFORMAT", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("ExportFormat");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(255);
    cMap.setPosition(4);
    tMap.addColumn(cMap);
    // ------------- Column: REPOSITORYTYPE --------------------
    cMap = new ColumnMap("REPOSITORYTYPE", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("RepositoryType");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(5);
    tMap.addColumn(cMap);
    // ------------- Column: DESCRIPTION --------------------
    cMap = new ColumnMap("DESCRIPTION", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Description");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(8191);
    cMap.setPosition(6);
    tMap.addColumn(cMap);
    // ------------- Column: PROJECT --------------------
    cMap = new ColumnMap("PROJECT", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Project");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TPROJECT", "PKEY");
    cMap.setPosition(7);
    tMap.addColumn(cMap);
    // ------------- Column: PERSON --------------------
    cMap = new ColumnMap("PERSON", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Person");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TPERSON", "PKEY");
    cMap.setPosition(8);
    tMap.addColumn(cMap);
    // ------------- Column: CATEGORYKEY --------------------
    cMap = new ColumnMap("CATEGORYKEY", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("CategoryKey");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TREPORTCATEGORY", "OBJECTID");
    cMap.setPosition(9);
    tMap.addColumn(cMap);
    // ------------- Column: PARENT --------------------
    cMap = new ColumnMap("PARENT", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Parent");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TEXPORTTEMPLATE", "OBJECTID");
    cMap.setPosition(10);
    tMap.addColumn(cMap);
    // ------------- Column: SORTORDER --------------------
    cMap = new ColumnMap("SORTORDER", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Sortorder");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(11);
    tMap.addColumn(cMap);
    // ------------- Column: DELETED --------------------
    cMap = new ColumnMap("DELETED", tMap);
    cMap.setType("");
    cMap.setTorqueType("CHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Deleted");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDefault("N");
    cMap.setInheritance("false");
    cMap.setSize(1);
    cMap.setPosition(12);
    tMap.addColumn(cMap);
    // ------------- Column: TPUUID --------------------
    cMap = new ColumnMap("TPUUID", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Uuid");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(36);
    cMap.setPosition(13);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  @Override
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("track");

    dbMap.addTable("TUSERFEATURE");
    TableMap tMap = dbMap.getTable("TUSERFEATURE");
    tMap.setJavaName("TUserFeature");
    tMap.setOMClass(com.aurel.track.persist.TUserFeature.class);
    tMap.setPeerClass(com.aurel.track.persist.TUserFeaturePeer.class);
    tMap.setPrimaryKeyMethod(TableMap.ID_BROKER);
    tMap.setPrimaryKeyMethodInfo(tMap.getName());

    ColumnMap cMap = null;

    // ------------- Column: OBJECTID --------------------
    cMap = new ColumnMap("OBJECTID", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("ObjectID");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: FEATURENAME --------------------
    cMap = new ColumnMap("FEATURENAME", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("FeatureName");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(255);
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    // ------------- Column: PERSON --------------------
    cMap = new ColumnMap("PERSON", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Person");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setForeignKey("TPERSON", "PKEY");
    cMap.setPosition(3);
    tMap.addColumn(cMap);
    // ------------- Column: ISACTIVE --------------------
    cMap = new ColumnMap("ISACTIVE", tMap);
    cMap.setType("");
    cMap.setTorqueType("CHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("IsActive");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDefault("N");
    cMap.setInheritance("false");
    cMap.setSize(1);
    cMap.setPosition(4);
    tMap.addColumn(cMap);
    // ------------- Column: TPUUID --------------------
    cMap = new ColumnMap("TPUUID", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(false);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Uuid");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setInheritance("false");
    cMap.setSize(36);
    cMap.setPosition(5);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("searchconsole");

    dbMap.addTable("menu_resource");
    TableMap tMap = dbMap.getTable("menu_resource");
    tMap.setJavaName("MenuResource");
    tMap.setOMClass(com.youku.search.console.pojo.MenuResource.class);
    tMap.setPeerClass(com.youku.search.console.pojo.MenuResourcePeer.class);
    tMap.setDescription("????б┴???б└ик");
    tMap.setPrimaryKeyMethod(TableMap.NATIVE);
    tMap.setPrimaryKeyMethodInfo("menu_resource");

    ColumnMap cMap = null;

    // ------------- Column: id --------------------
    cMap = new ColumnMap("id", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("Id");
    cMap.setAutoIncrement(true);
    cMap.setProtected(false);
    cMap.setDescription("?б┬?и╣id??б┴???");
    cMap.setInheritance("false");
    cMap.setSize(11);
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: menu_id --------------------
    cMap = new ColumnMap("menu_id", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("MenuId");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("????id");
    cMap.setInheritance("false");
    cMap.setSize(11);
    cMap.setForeignKey("menu", "id");
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    // ------------- Column: resource_id --------------------
    cMap = new ColumnMap("resource_id", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("ResourceId");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("б┴???id");
    cMap.setInheritance("false");
    cMap.setSize(11);
    cMap.setForeignKey("resource", "id");
    cMap.setPosition(3);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("soku");

    dbMap.addTable("protocol_site");
    TableMap tMap = dbMap.getTable("protocol_site");
    tMap.setJavaName("ProtocolSite");
    tMap.setOMClass(com.youku.soku.manage.torque.ProtocolSite.class);
    tMap.setPeerClass(com.youku.soku.manage.torque.ProtocolSitePeer.class);
    tMap.setDescription("协议站点");
    tMap.setPrimaryKeyMethod("none");

    ColumnMap cMap = null;

    // ------------- Column: id --------------------
    cMap = new ColumnMap("id", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("Id");
    cMap.setAutoIncrement(true);
    cMap.setProtected(false);
    cMap.setDescription("主键id,自增");
    cMap.setInheritance("false");
    cMap.setSize(20);
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: name --------------------
    cMap = new ColumnMap("name", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Name");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("站点名称");
    cMap.setInheritance("false");
    cMap.setSize(200);
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    // ------------- Column: url --------------------
    cMap = new ColumnMap("url", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Url");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("站点url");
    cMap.setInheritance("false");
    cMap.setSize(500);
    cMap.setPosition(3);
    tMap.addColumn(cMap);
    // ------------- Column: remark --------------------
    cMap = new ColumnMap("remark", tMap);
    cMap.setType("");
    cMap.setTorqueType("LONGVARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Remark");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("备注");
    cMap.setInheritance("false");
    cMap.setPosition(4);
    tMap.addColumn(cMap);
    // ------------- Column: createtime --------------------
    cMap = new ColumnMap("createtime", tMap);
    cMap.setType(new Date());
    cMap.setTorqueType("DATE");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Createtime");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("创建时间");
    cMap.setInheritance("false");
    cMap.setPosition(5);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public synchronized void doBuild() throws TorqueException {
    if (isBuilt()) {
      return;
    }
    dbMap = Torque.getDatabaseMap("soku_library");

    dbMap.addTable("user_operation_log");
    TableMap tMap = dbMap.getTable("user_operation_log");
    tMap.setJavaName("UserOperationLog");
    tMap.setOMClass(com.youku.soku.library.load.UserOperationLog.class);
    tMap.setPeerClass(com.youku.soku.library.load.UserOperationLogPeer.class);
    tMap.setDescription("用户操作日志");
    tMap.setPrimaryKeyMethod(TableMap.NATIVE);
    DB dbAdapter = Torque.getDB("soku_library");
    if (dbAdapter.getIDMethodType().equals(DB.SEQUENCE)) {
      tMap.setPrimaryKeyMethodInfo("user_operation_log_SEQ");
    } else if (dbAdapter.getIDMethodType().equals(DB.AUTO_INCREMENT)) {
      tMap.setPrimaryKeyMethodInfo("user_operation_log");
    }

    ColumnMap cMap = null;

    // ------------- Column: id --------------------
    cMap = new ColumnMap("id", tMap);
    cMap.setType(new Integer(0));
    cMap.setTorqueType("INTEGER");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(true);
    cMap.setNotNull(true);
    cMap.setJavaName("Id");
    cMap.setAutoIncrement(true);
    cMap.setProtected(false);
    cMap.setDescription("Id,自增");
    cMap.setInheritance("false");
    cMap.setSize(11);
    cMap.setPosition(1);
    tMap.addColumn(cMap);
    // ------------- Column: type --------------------
    cMap = new ColumnMap("type", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Type");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("操作类型");
    cMap.setInheritance("false");
    cMap.setSize(255);
    cMap.setPosition(2);
    tMap.addColumn(cMap);
    // ------------- Column: tab_name --------------------
    cMap = new ColumnMap("tab_name", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("TabName");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("操作表名");
    cMap.setInheritance("false");
    cMap.setSize(30);
    cMap.setPosition(3);
    tMap.addColumn(cMap);
    // ------------- Column: brief --------------------
    cMap = new ColumnMap("brief", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(true);
    cMap.setJavaName("Brief");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("操作ID");
    cMap.setInheritance("false");
    cMap.setSize(255);
    cMap.setPosition(4);
    tMap.addColumn(cMap);
    // ------------- Column: detail --------------------
    cMap = new ColumnMap("detail", tMap);
    cMap.setType("");
    cMap.setTorqueType("LONGVARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Detail");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("操作详情");
    cMap.setInheritance("false");
    cMap.setPosition(5);
    tMap.addColumn(cMap);
    // ------------- Column: operator --------------------
    cMap = new ColumnMap("operator", tMap);
    cMap.setType("");
    cMap.setTorqueType("VARCHAR");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("Operator");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("操作人");
    cMap.setInheritance("false");
    cMap.setSize(255);
    cMap.setPosition(6);
    tMap.addColumn(cMap);
    // ------------- Column: create_time --------------------
    cMap = new ColumnMap("create_time", tMap);
    cMap.setType(new Date());
    cMap.setTorqueType("TIMESTAMP");
    cMap.setUsePrimitive(true);
    cMap.setPrimaryKey(false);
    cMap.setNotNull(false);
    cMap.setJavaName("CreateTime");
    cMap.setAutoIncrement(false);
    cMap.setProtected(false);
    cMap.setDescription("创建时间");
    cMap.setInheritance("false");
    cMap.setPosition(7);
    tMap.addColumn(cMap);
    tMap.setUseInheritance(false);
  }
  /**
   * The doBuild() method builds the DatabaseMap
   *
   * @throws TorqueException
   */
  public void doBuild() throws TorqueException {
    dbMap = Torque.getDatabaseMap("inventorysystemdb");

    dbMap.addTable("user");
    TableMap tMap = dbMap.getTable("user");

    tMap.setPrimaryKeyMethod(TableMap.NATIVE);

    tMap.addPrimaryKey("user.USER_ID", new Integer(0));
    tMap.addColumn("user.EMPLOYEENUMBER", new String());
    tMap.addColumn("user.FIRSTNAME", new String());
    tMap.addColumn("user.MIDDLENAME", new String());
    tMap.addColumn("user.LASTNAME", new String());
    tMap.addColumn("user.USERNAME", new String());
    tMap.addColumn("user.PASSWORD", new String());
    tMap.addPrimaryKey("user.CONTACTNUMBER", new String());
    tMap.addColumn("user.DIVISION", new String());
    tMap.addColumn("user.TYPE", new String());
    tMap.addColumn("user.STATUS", new Integer(0));
  }