Package org.apache.jetspeed.om.security.turbine.map

Source Code of org.apache.jetspeed.om.security.turbine.map.TurbineUserMapBuilder

package org.apache.jetspeed.om.security.turbine.map;

import java.util.Date;
import java.math.BigDecimal;

import org.apache.torque.Torque;
import org.apache.torque.TorqueException;
import org.apache.torque.map.MapBuilder;
import org.apache.torque.map.DatabaseMap;
import org.apache.torque.map.TableMap;

/**
  *  This class was autogenerated by Torque on:
  *
  * [Thu Apr 22 15:30:48 PDT 2004]
  *
  */
public class TurbineUserMapBuilder implements MapBuilder
{
    /**
     * The name of this class
     */
    public static final String CLASS_NAME =
        "org.apache.jetspeed.om.security.turbine.map.TurbineUserMapBuilder";


    /**
     * The database map.
     */
    private DatabaseMap dbMap = null;

    /**
     * Tells us if this DatabaseMapBuilder is built so that we
     * don't have to re-build it every time.
     *
     * @return true if this DatabaseMapBuilder is built
     */
    public boolean isBuilt()
    {
        return (dbMap != null);
    }

    /**
     * Gets the databasemap this map builder built.
     *
     * @return the databasemap
     */
    public DatabaseMap getDatabaseMap()
    {
        return this.dbMap;
    }

    /**
     * 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());
          }
}
TOP

Related Classes of org.apache.jetspeed.om.security.turbine.map.TurbineUserMapBuilder

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.