head	1.1;
access;
symbols
	HELM_PEER_PORT_BRANCH:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2001.01.28.01.18.22;	author dlr;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2001.01.28.01.18.22;	author dlr;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.02.01.01.37.40;	author dlr;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2001.02.01.02.56.58;	author leonardr;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2001.02.01.14.42.44;	author leonardr;	state Exp;
branches;
next	1.1.2.5;

1.1.2.5
date	2001.02.02.18.13.30;	author dlr;	state Exp;
branches;
next	1.1.2.6;

1.1.2.6
date	2001.02.07.03.46.27;	author dlr;	state Exp;
branches;
next	1.1.2.7;

1.1.2.7
date	2001.02.07.21.17.59;	author dlr;	state Exp;
branches;
next	1.1.2.8;

1.1.2.8
date	2001.02.09.02.01.49;	author dlr;	state Exp;
branches;
next	1.1.2.9;

1.1.2.9
date	2001.02.09.23.25.39;	author dlr;	state Exp;
branches;
next	1.1.2.10;

1.1.2.10
date	2001.02.13.00.55.50;	author dlr;	state Exp;
branches;
next	1.1.2.11;

1.1.2.11
date	2001.02.13.03.03.01;	author dlr;	state Exp;
branches;
next	1.1.2.12;

1.1.2.12
date	2001.02.16.03.05.24;	author dlr;	state dead;
branches;
next	;


desc
@@


1.1
log
@file BaseUser.java was initially added on branch HELM_PEER_PORT_BRANCH.
@
text
@@


1.1.2.1
log
@Classes ported to the Turbine Peer system. -dlr and leonardr
@
text
@a0 730
package org.tigris.helm.om;

// JDK classes
import java.util.*;

// Turbine classes
import org.apache.turbine.om.BaseObject;
import org.apache.turbine.om.peer.BasePeer;
import org.tigris.helm.om.peer.*;
import org.apache.turbine.util.db.Criteria;
import org.apache.turbine.util.ObjectUtils;
import org.apache.turbine.util.Log;
import org.apache.turbine.util.db.pool.DBConnection;

/** 
 * This class was autogenerated by Torque on: Fri Jan 26 19:21:34 PST 2001
 * You should not use this class directly.  It should not even be
 * extended all references should be to User 
 */
abstract class BaseUser extends BaseObject
{
    /** the value for the user_id field */
    private int user_id;
    /** the value for the domain_id field */
    private int domain_id;
    /** the value for the login_name field */
    private String login_name;
    /** the value for the password field */
    private String password;
    /** the value for the real_name field */
    private String real_name;
    /** the value for the address1 field */
    private String address1;
    /** the value for the address2 field */
    private String address2;
    /** the value for the city field */
    private String city;
    /** the value for the state field */
    private String state;
    /** the value for the postalcode field */
    private String postalcode;
    /** the value for the country field */
    private String country;
    /** the value for the citizenship field */
    private String citizenship;
    /** the value for the phone field */
    private String phone;
    /** the value for the altphone field */
    private String altphone;
    /** the value for the fax field */
    private String fax;
    /** the value for the cell field */
    private String cell;
    /** the value for the pager field */
    private String pager;
    /** the value for the email field */
    private String email;
    /** the value for the organization field */
    private String organization;
    /** the value for the modified field */
    private Date modified;
    /** the value for the created field */
    private Date created;
    /** the value for the type field */
    private String type;
    /** the value for the passwordticket field */
    private String passwordticket;


    /**
     * Get the UserId
     * @@return int
     */
     public int getUserId()
     {
          return user_id;
     }


    /**
     * Set the value of UserId
     */
     public void setUserId(int v ) 
     {


           if (this.user_id != v)
           {
              this.user_id = v;
              setModified(true);
          }
     }
    /**
     * Get the DomainId
     * @@return int
     */
     public int getDomainId()
     {
          return domain_id;
     }


    /**
     * Set the value of DomainId
     */
     public void setDomainId(int v ) 
     {


           if (this.domain_id != v)
           {
              this.domain_id = v;
              setModified(true);
          }
     }
    /**
     * Get the LoginName
     * @@return String
     */
     public String getLoginName()
     {
          return login_name;
     }


    /**
     * Set the value of LoginName
     */
     public void setLoginName(String v ) 
     {


           if ( !ObjectUtils.equals(this.login_name, v) )
           {
              this.login_name = v;
              setModified(true);
          }
     }
    /**
     * Get the Password
     * @@return String
     */
     public String getPassword()
     {
          return password;
     }


    /**
     * Set the value of Password
     */
     public void setPassword(String v ) 
     {


           if ( !ObjectUtils.equals(this.password, v) )
           {
              this.password = v;
              setModified(true);
          }
     }
    /**
     * Get the RealName
     * @@return String
     */
     public String getRealName()
     {
          return real_name;
     }


    /**
     * Set the value of RealName
     */
     public void setRealName(String v ) 
     {


           if ( !ObjectUtils.equals(this.real_name, v) )
           {
              this.real_name = v;
              setModified(true);
          }
     }
    /**
     * Get the Address1
     * @@return String
     */
     public String getAddress1()
     {
          return address1;
     }


    /**
     * Set the value of Address1
     */
     public void setAddress1(String v ) 
     {


           if ( !ObjectUtils.equals(this.address1, v) )
           {
              this.address1 = v;
              setModified(true);
          }
     }
    /**
     * Get the Address2
     * @@return String
     */
     public String getAddress2()
     {
          return address2;
     }


    /**
     * Set the value of Address2
     */
     public void setAddress2(String v ) 
     {


           if ( !ObjectUtils.equals(this.address2, v) )
           {
              this.address2 = v;
              setModified(true);
          }
     }
    /**
     * Get the City
     * @@return String
     */
     public String getCity()
     {
          return city;
     }


    /**
     * Set the value of City
     */
     public void setCity(String v ) 
     {


           if ( !ObjectUtils.equals(this.city, v) )
           {
              this.city = v;
              setModified(true);
          }
     }
    /**
     * Get the State
     * @@return String
     */
     public String getState()
     {
          return state;
     }


    /**
     * Set the value of State
     */
     public void setState(String v ) 
     {


           if ( !ObjectUtils.equals(this.state, v) )
           {
              this.state = v;
              setModified(true);
          }
     }
    /**
     * Get the Postalcode
     * @@return String
     */
     public String getPostalcode()
     {
          return postalcode;
     }


    /**
     * Set the value of Postalcode
     */
     public void setPostalcode(String v ) 
     {


           if ( !ObjectUtils.equals(this.postalcode, v) )
           {
              this.postalcode = v;
              setModified(true);
          }
     }
    /**
     * Get the Country
     * @@return String
     */
     public String getCountry()
     {
          return country;
     }


    /**
     * Set the value of Country
     */
     public void setCountry(String v ) 
     {


           if ( !ObjectUtils.equals(this.country, v) )
           {
              this.country = v;
              setModified(true);
          }
     }
    /**
     * Get the Citizenship
     * @@return String
     */
     public String getCitizenship()
     {
          return citizenship;
     }


    /**
     * Set the value of Citizenship
     */
     public void setCitizenship(String v ) 
     {


           if ( !ObjectUtils.equals(this.citizenship, v) )
           {
              this.citizenship = v;
              setModified(true);
          }
     }
    /**
     * Get the Phone
     * @@return String
     */
     public String getPhone()
     {
          return phone;
     }


    /**
     * Set the value of Phone
     */
     public void setPhone(String v ) 
     {


           if ( !ObjectUtils.equals(this.phone, v) )
           {
              this.phone = v;
              setModified(true);
          }
     }
    /**
     * Get the Altphone
     * @@return String
     */
     public String getAltphone()
     {
          return altphone;
     }


    /**
     * Set the value of Altphone
     */
     public void setAltphone(String v ) 
     {


           if ( !ObjectUtils.equals(this.altphone, v) )
           {
              this.altphone = v;
              setModified(true);
          }
     }
    /**
     * Get the Fax
     * @@return String
     */
     public String getFax()
     {
          return fax;
     }


    /**
     * Set the value of Fax
     */
     public void setFax(String v ) 
     {


           if ( !ObjectUtils.equals(this.fax, v) )
           {
              this.fax = v;
              setModified(true);
          }
     }
    /**
     * Get the Cell
     * @@return String
     */
     public String getCell()
     {
          return cell;
     }


    /**
     * Set the value of Cell
     */
     public void setCell(String v ) 
     {


           if ( !ObjectUtils.equals(this.cell, v) )
           {
              this.cell = v;
              setModified(true);
          }
     }
    /**
     * Get the Pager
     * @@return String
     */
     public String getPager()
     {
          return pager;
     }


    /**
     * Set the value of Pager
     */
     public void setPager(String v ) 
     {


           if ( !ObjectUtils.equals(this.pager, v) )
           {
              this.pager = v;
              setModified(true);
          }
     }
    /**
     * Get the Email
     * @@return String
     */
     public String getEmail()
     {
          return email;
     }


    /**
     * Set the value of Email
     */
     public void setEmail(String v ) 
     {


           if ( !ObjectUtils.equals(this.email, v) )
           {
              this.email = v;
              setModified(true);
          }
     }
    /**
     * Get the Organization
     * @@return String
     */
     public String getOrganization()
     {
          return organization;
     }


    /**
     * Set the value of Organization
     */
     public void setOrganization(String v ) 
     {


           if ( !ObjectUtils.equals(this.organization, v) )
           {
              this.organization = v;
              setModified(true);
          }
     }
    /**
     * Get the Modified
     * @@return Date
     */
     public Date getModified()
     {
          return modified;
     }


    /**
     * Set the value of Modified
     */
     public void setModified(Date v ) 
     {


           if ( !ObjectUtils.equals(this.modified, v) )
           {
              this.modified = v;
              setModified(true);
          }
     }
    /**
     * Get the Created
     * @@return Date
     */
     public Date getCreated()
     {
          return created;
     }


    /**
     * Set the value of Created
     */
     public void setCreated(Date v ) 
     {


           if ( !ObjectUtils.equals(this.created, v) )
           {
              this.created = v;
              setModified(true);
          }
     }
    /**
     * Get the Type
     * @@return String
     */
     public String getType()
     {
          return type;
     }


    /**
     * Set the value of Type
     */
     public void setType(String v ) 
     {


           if ( !ObjectUtils.equals(this.type, v) )
           {
              this.type = v;
              setModified(true);
          }
     }
    /**
     * Get the Passwordticket
     * @@return String
     */
     public String getPasswordticket()
     {
          return passwordticket;
     }


    /**
     * Set the value of Passwordticket
     */
     public void setPasswordticket(String v ) 
     {


           if ( !ObjectUtils.equals(this.passwordticket, v) )
           {
              this.passwordticket = v;
              setModified(true);
          }
     }

 
    
     	

    /**
     * Stores the object in the database.  If the object is new,
     * it inserts it; otherwise an update is performed.
     */
    public void save() throws Exception
    {
 
        if (isModified())
        {
            if (isNew())
            {
                UserPeer.doInsert((User)this);
                setNew(false);
            }
            else
            {
                UserPeer.doUpdate((User)this);
            }
        }
      
     }

      /**
     * Stores the object in the database.  If the object is new,
     * it inserts it; otherwise an update is performed.  This method
     * is meant to be used as part of a transaction, otherwise use
     * the save() method and the connection details will be handled
     * internally
     */
    public void save(DBConnection dbCon) throws Exception
    {
          if (isModified())
        {
            if (isNew())
            {
                UserPeer.doInsert((User)this, dbCon);
            }
            else
            {
                UserPeer.doUpdate((User)this, dbCon);
                setNew(false);
            }
        }

       }


    /** 
     * Set the Id using pk values.
     *
     * @@param int user_id
     */
    public void setPrimaryKey(
                      int user_id
                                                                                                                                                                                                                                                                                                     ) 
    {
                     setUserId(user_id);
                                                                                                                                                                                                                                                                                        }

    /** 
     * Set the Id using a : separated String of pk values.
     */
    public void setPrimaryKey(Object id) throws Exception
    {
        StringTokenizer st = new StringTokenizer(id.toString(), ":");
                           setUserId( Integer.parseInt(st.nextToken()) );
                                                                                                                                                                                                                                                                                                }


    /** 
     * returns an id that differentiates this object from others
     * of its class.
     */
    public Object getPrimaryKey() 
    {
        return ""
                      + getUserId()
                                                                                                                                                                                                                                                                                                     ;
    } 

    /** 
     * returns an id that can be used to specify this object in
     * a query string.
     */
    public String getQueryOID() 
    {
        return "User[" + getPrimaryKey() + "]";
    }

    /**
     * Makes a copy of this object.  
     * It creates a new object filling in the simple attributes.
      */
    public User copy() throws Exception
    {
        User copyObj = new User();
         copyObj.setUserId(user_id);
         copyObj.setDomainId(domain_id);
         copyObj.setLoginName(login_name);
         copyObj.setPassword(password);
         copyObj.setRealName(real_name);
         copyObj.setAddress1(address1);
         copyObj.setAddress2(address2);
         copyObj.setCity(city);
         copyObj.setState(state);
         copyObj.setPostalcode(postalcode);
         copyObj.setCountry(country);
         copyObj.setCitizenship(citizenship);
         copyObj.setPhone(phone);
         copyObj.setAltphone(altphone);
         copyObj.setFax(fax);
         copyObj.setCell(cell);
         copyObj.setPager(pager);
         copyObj.setEmail(email);
         copyObj.setOrganization(organization);
         copyObj.setModified(modified);
         copyObj.setCreated(created);
         copyObj.setType(type);
         copyObj.setPasswordticket(passwordticket);
 
  
                        
        copyObj.setUserId(NEW_ID);
                                                                                                                                                                     return copyObj;
    }             

}
@


1.1.2.2
log
@Name should be two parts.
@
text
@d589 1
a589 1
     public void setPasswordTicket(String v ) 
@


1.1.2.3
log
@Changes to generated classes.
@
text
@d20 1
a20 1
public abstract class BaseUser extends BaseObject
@


1.1.2.4
log
@Fixed build errors.
@
text
@d722 1
a722 1
         copyObj.setPasswordTicket(passwordticket);
@


1.1.2.5
log
@Correcting password ticket member naming.
@
text
@d67 1
a67 1
    private String password_ticket;
d580 1
a580 1
     public String getPasswordTicket()
d582 1
a582 1
          return password_ticket;
d593 1
a593 1
           if ( !ObjectUtils.equals(this.password_ticket, v) )
d595 1
a595 1
              this.password_ticket = v;
d722 1
a722 1
         copyObj.setPasswordTicket(password_ticket);
@


1.1.2.6
log
@Latest Torque generated code (simple object model).
@
text
@a4 1
import java.math.*;
d16 1
a16 1
 * This class was autogenerated by Torque on: Tue Feb 06 19:46:40 PST 2001
d66 1
a66 1
    /** the value for the password_ticket field */
d577 1
a577 1
     * Get the PasswordTicket
d587 1
a587 1
     * Set the value of PasswordTicket
a601 136
    /**
     * Generate a Vector with field names.
     */
    static private Vector fieldNames_ = null;
    static public Vector getFieldNames()
    {
      if (fieldNames_ == null)
      {
        fieldNames_ = new Vector();
            fieldNames_.add("UserId");
            fieldNames_.add("DomainId");
            fieldNames_.add("LoginName");
            fieldNames_.add("Password");
            fieldNames_.add("RealName");
            fieldNames_.add("Address1");
            fieldNames_.add("Address2");
            fieldNames_.add("City");
            fieldNames_.add("State");
            fieldNames_.add("Postalcode");
            fieldNames_.add("Country");
            fieldNames_.add("Citizenship");
            fieldNames_.add("Phone");
            fieldNames_.add("Altphone");
            fieldNames_.add("Fax");
            fieldNames_.add("Cell");
            fieldNames_.add("Pager");
            fieldNames_.add("Email");
            fieldNames_.add("Organization");
            fieldNames_.add("Modified");
            fieldNames_.add("Created");
            fieldNames_.add("Type");
            fieldNames_.add("PasswordTicket");
          }
      return fieldNames_;
    }

    /**
     * Retrieves a field from the object by name passed in
     * as a String.
     */
    public Object getByName(String name)
    {
            if (name.equals("UserId"))
	{
	  	    return new Integer(getUserId());
	  	}
            if (name.equals("DomainId"))
	{
	  	    return new Integer(getDomainId());
	  	}
            if (name.equals("LoginName"))
	{
	  	    return getLoginName();
	  	}
            if (name.equals("Password"))
	{
	  	    return getPassword();
	  	}
            if (name.equals("RealName"))
	{
	  	    return getRealName();
	  	}
            if (name.equals("Address1"))
	{
	  	    return getAddress1();
	  	}
            if (name.equals("Address2"))
	{
	  	    return getAddress2();
	  	}
            if (name.equals("City"))
	{
	  	    return getCity();
	  	}
            if (name.equals("State"))
	{
	  	    return getState();
	  	}
            if (name.equals("Postalcode"))
	{
	  	    return getPostalcode();
	  	}
            if (name.equals("Country"))
	{
	  	    return getCountry();
	  	}
            if (name.equals("Citizenship"))
	{
	  	    return getCitizenship();
	  	}
            if (name.equals("Phone"))
	{
	  	    return getPhone();
	  	}
            if (name.equals("Altphone"))
	{
	  	    return getAltphone();
	  	}
            if (name.equals("Fax"))
	{
	  	    return getFax();
	  	}
            if (name.equals("Cell"))
	{
	  	    return getCell();
	  	}
            if (name.equals("Pager"))
	{
	  	    return getPager();
	  	}
            if (name.equals("Email"))
	{
	  	    return getEmail();
	  	}
            if (name.equals("Organization"))
	{
	  	    return getOrganization();
	  	}
            if (name.equals("Modified"))
	{
	  	    return getModified();
	  	}
            if (name.equals("Created"))
	{
	  	    return getCreated();
	  	}
            if (name.equals("Type"))
	{
	  	    return getType();
	  	}
            if (name.equals("PasswordTicket"))
	{
	  	    return getPasswordTicket();
	  	}
            return null; 
    }
d725 1
a725 1
                       
d729 1
@


1.1.2.7
log
@Newest generated code (complex model this time).  Removed getUsers from Domain to side step decl conflict.
@
text
@d17 1
a17 1
 * This class was autogenerated by Torque on: Wed Feb 07 12:45:09 PST 2001
d80 1
a80 1
                            
d84 1
a84 1
     public void setUserId(int v ) throws Exception
d86 1
a86 206
  
       
        
                
          // update associated AuditLogEntry
          if (collAuditLogEntrys != null )
          {
              for (int i=0; i<collAuditLogEntrys.size(); i++)
              {
                  ((AuditLogEntry)collAuditLogEntrys.get(i))
                      .setInitiatingUser(v);
              }
          }
            
        
                
          // update associated Project
          if (collProjectsRelatedByProposedBy != null )
          {
              for (int i=0; i<collProjectsRelatedByProposedBy.size(); i++)
              {
                  ((Project)collProjectsRelatedByProposedBy.get(i))
                      .setProposedBy(v);
              }
          }
            
        
                
          // update associated Project
          if (collProjectsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectsRelatedByApprovedBy.size(); i++)
              {
                  ((Project)collProjectsRelatedByApprovedBy.get(i))
                      .setApprovedBy(v);
              }
          }
            
        
                
          // update associated ProjectDocument
          if (collProjectDocumentsRelatedBySuggestedBy != null )
          {
              for (int i=0; i<collProjectDocumentsRelatedBySuggestedBy.size(); i++)
              {
                  ((ProjectDocument)collProjectDocumentsRelatedBySuggestedBy.get(i))
                      .setSuggestedBy(v);
              }
          }
            
        
                
          // update associated ProjectDocument
          if (collProjectDocumentsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectDocumentsRelatedByApprovedBy.size(); i++)
              {
                  ((ProjectDocument)collProjectDocumentsRelatedByApprovedBy.get(i))
                      .setApprovedBy(v);
              }
          }
            
        
                
          // update associated ProjectDownload
          if (collProjectDownloadsRelatedBySuggestedBy != null )
          {
              for (int i=0; i<collProjectDownloadsRelatedBySuggestedBy.size(); i++)
              {
                  ((ProjectDownload)collProjectDownloadsRelatedBySuggestedBy.get(i))
                      .setSuggestedBy(v);
              }
          }
            
        
                
          // update associated ProjectDownload
          if (collProjectDownloadsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectDownloadsRelatedByApprovedBy.size(); i++)
              {
                  ((ProjectDownload)collProjectDownloadsRelatedByApprovedBy.get(i))
                      .setApprovedBy(v);
              }
          }
            
        
                
          // update associated ProjectNews
          if (collProjectNewssRelatedByProposedBy != null )
          {
              for (int i=0; i<collProjectNewssRelatedByProposedBy.size(); i++)
              {
                  ((ProjectNews)collProjectNewssRelatedByProposedBy.get(i))
                      .setProposedBy(v);
              }
          }
            
        
                
          // update associated ProjectNews
          if (collProjectNewssRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectNewssRelatedByApprovedBy.size(); i++)
              {
                  ((ProjectNews)collProjectNewssRelatedByApprovedBy.get(i))
                      .setApprovedBy(v);
              }
          }
            
        
                
          // update associated ProjectSection
          if (collProjectSectionsRelatedBySuggestedBy != null )
          {
              for (int i=0; i<collProjectSectionsRelatedBySuggestedBy.size(); i++)
              {
                  ((ProjectSection)collProjectSectionsRelatedBySuggestedBy.get(i))
                      .setSuggestedBy(v);
              }
          }
            
        
                
          // update associated ProjectSection
          if (collProjectSectionsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectSectionsRelatedByApprovedBy.size(); i++)
              {
                  ((ProjectSection)collProjectSectionsRelatedByApprovedBy.get(i))
                      .setApprovedBy(v);
              }
          }
            
        
                
          // update associated Task
          if (collTasks != null )
          {
              for (int i=0; i<collTasks.size(); i++)
              {
                  ((Task)collTasks.get(i))
                      .setOnBehalfOf(v);
              }
          }
            
        
                
          // update associated UserUsergroup
          if (collUserUsergroupsRelatedByUserId != null )
          {
              for (int i=0; i<collUserUsergroupsRelatedByUserId.size(); i++)
              {
                  ((UserUsergroup)collUserUsergroupsRelatedByUserId.get(i))
                      .setUserId(v);
              }
          }
            
        
                
          // update associated UserUsergroup
          if (collUserUsergroupsRelatedByUserGroupId != null )
          {
              for (int i=0; i<collUserUsergroupsRelatedByUserGroupId.size(); i++)
              {
                  ((UserUsergroup)collUserUsergroupsRelatedByUserGroupId.get(i))
                      .setUserGroupId(v);
              }
          }
            
        
                
          // update associated UserProjectInterest
          if (collUserProjectInterests != null )
          {
              for (int i=0; i<collUserProjectInterests.size(); i++)
              {
                  ((UserProjectInterest)collUserProjectInterests.get(i))
                      .setUserId(v);
              }
          }
            
        
                
          // update associated UserRoleProject
          if (collUserRoleProjectsRelatedByUserId != null )
          {
              for (int i=0; i<collUserRoleProjectsRelatedByUserId.size(); i++)
              {
                  ((UserRoleProject)collUserRoleProjectsRelatedByUserId.get(i))
                      .setUserId(v);
              }
          }
            
        
                
          // update associated UserRoleProject
          if (collUserRoleProjectsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collUserRoleProjectsRelatedByApprovedBy.size(); i++)
              {
                  ((UserRoleProject)collUserRoleProjectsRelatedByApprovedBy.get(i))
                      .setApprovedBy(v);
              }
          }
       
d103 1
a103 1
            
d107 1
a107 1
     public void setDomainId(int v ) throws Exception
d109 1
a109 7
                  if ( aDomain != null && !aDomain.isNew())
        {
            throw new Exception("Can't set a foreign key directly after an "
                + " association is already made based on saved data.");
        }
  
  
d126 1
a126 1
        
d132 1
a132 2
  
  
d149 1
a149 1
        
d155 1
a155 2
  
  
d172 1
a172 1
        
d178 1
a178 2
  
  
d195 1
a195 1
        
d201 1
a201 2
  
  
d218 1
a218 1
        
d224 1
a224 2
  
  
d241 1
a241 1
        
d247 1
a247 2
  
  
d264 1
a264 1
        
d270 1
a270 2
  
  
d287 1
a287 1
        
d293 1
a293 2
  
  
d310 1
a310 1
        
d316 1
a316 2
  
  
d333 1
a333 1
        
d339 1
a339 2
  
  
d356 1
a356 1
        
d362 1
a362 2
  
  
d379 1
a379 1
        
d385 1
a385 2
  
  
d402 1
a402 1
        
d408 1
a408 2
  
  
d425 1
a425 1
        
d431 1
a431 2
  
  
d448 1
a448 1
        
d454 1
a454 2
  
  
d471 1
a471 1
        
d477 1
a477 2
  
  
d494 1
a494 1
        
d500 1
a500 2
  
  
d517 1
a517 1
        
d523 1
a523 2
  
  
d540 1
a540 1
        
d546 1
a546 2
  
  
d563 1
a563 1
        
d569 1
a569 2
  
  
d586 1
a586 1
        
d592 1
a592 2
  
  
d602 1
a602 5
 
   
             
   
   
d604 1
a604 3
     * Declares an association between this object and a Domain object
     *
     * @@param Domain v
d606 2
a607 2
    private Domain aDomain;
    public void setDomain(Domain v) throws Exception
d609 28
a636 21
        aDomain = null;
           setDomainId(v.getDomainId());
           aDomain = v;
    }

                     
    public Domain getDomain() throws Exception
    {
        if ( aDomain==null && (this.domain_id>0) )
        {
            aDomain = DomainPeer.retrieveByPK(this.domain_id);
            // The following can be used instead of the line above to
            // guarantee the related object contains a reference
            // to this object, but this level of coupling 
            // may be undesirable in many circumstances.
            // As it can lead to a db query with many results that may
            // never be used.  
            // Domain obj = DomainPeer.retrieveByPK(this.domain_id);
            // obj.addUsers(this);
        }
        return aDomain;
a638 3
    
                
      
d640 2
a641 1
     * Collection to store aggregation of collAuditLogEntrys
d643 1
a643 9
    private Vector collAuditLogEntrys;
    /**
     * Temporary storage of collAuditLogEntrys to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollAuditLogEntrys;

    public void initAuditLogEntrys()
d645 93
a737 2
        if (collAuditLogEntrys == null)
            collAuditLogEntrys = new Vector();
d739 1
d742 2
a743 4
     * Method called to associate a AuditLogEntry object to this object
     * through the AuditLogEntry foreign key attribute
     *
     * @@param AuditLogEntry l
d745 1
a745 1
    public void addAuditLogEntrys(AuditLogEntry l) throws Exception
d747 2
a748 2
        /*
        if (collAuditLogEntrys == null)
d750 1
a750 1
            if (tempcollAuditLogEntrys == null)
d752 2
a753 1
                tempcollAuditLogEntrys = new Vector();
d755 1
a755 3557
            tempcollAuditLogEntrys.add(l);
        }
        else
        {
            collAuditLogEntrys.add(l);
        }
        */
        getAuditLogEntrys().add(l);
        l.setUser((User)this);
    }

    /**
     * The criteria used to select the current contents of collAuditLogEntrys
     */
    private Criteria lastAuditLogEntrysCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getAuditLogEntrys(new Criteria())
     */
    public Vector getAuditLogEntrys() throws Exception
    {
        if (collAuditLogEntrys == null)
        {
            collAuditLogEntrys = getAuditLogEntrys(new Criteria(10));
        }
        return collAuditLogEntrys;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related AuditLogEntrys from storage.
     */
    public Vector getAuditLogEntrys(Criteria criteria) throws Exception
    {
        if (collAuditLogEntrys == null)
        {
            if ( isNew() ) 
            {
               collAuditLogEntrys = new Vector();       
            } 
            else
            {
                   criteria.add(AuditLogEntryPeer.INITIATING_USER, getUserId() );               
                   collAuditLogEntrys = AuditLogEntryPeer.doSelect(criteria);
            }
/*
            if (tempcollAuditLogEntrys != null)
            {
                for (int i=0; i<tempcollAuditLogEntrys.size(); i++)
                {
                    collAuditLogEntrys.add(tempcollAuditLogEntrys.get(i));
                }
                tempcollAuditLogEntrys = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(AuditLogEntryPeer.INITIATING_USER, getUserId() );               
               if ( !lastAuditLogEntrysCriteria.equals(criteria)  )
            {
                collAuditLogEntrys = AuditLogEntryPeer.doSelect(criteria);  
            }
        }
        lastAuditLogEntrysCriteria = criteria; 

        return collAuditLogEntrys;
    }
   

        
      
         
          
                    
                
        
        
      



                 
      
    /**
     * Collection to store aggregation of collProjectsRelatedByProposedBy
     */
    private Vector collProjectsRelatedByProposedBy;
    /**
     * Temporary storage of collProjectsRelatedByProposedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectsRelatedByProposedBy;

    public void initProjectsRelatedByProposedBy()
    {
        if (collProjectsRelatedByProposedBy == null)
            collProjectsRelatedByProposedBy = new Vector();
    }

    /**
     * Method called to associate a Project object to this object
     * through the Project foreign key attribute
     *
     * @@param Project l
     */
    public void addProjectsRelatedByProposedBy(Project l) throws Exception
    {
        /*
        if (collProjectsRelatedByProposedBy == null)
        {
            if (tempcollProjectsRelatedByProposedBy == null)
            {
                tempcollProjectsRelatedByProposedBy = new Vector();
            }
            tempcollProjectsRelatedByProposedBy.add(l);
        }
        else
        {
            collProjectsRelatedByProposedBy.add(l);
        }
        */
        getProjectsRelatedByProposedBy().add(l);
        l.setUserRelatedByProposedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectsRelatedByProposedBy
     */
    private Criteria lastProjectsRelatedByProposedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectsRelatedByProposedBy(new Criteria())
     */
    public Vector getProjectsRelatedByProposedBy() throws Exception
    {
        if (collProjectsRelatedByProposedBy == null)
        {
            collProjectsRelatedByProposedBy = getProjectsRelatedByProposedBy(new Criteria(10));
        }
        return collProjectsRelatedByProposedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectsRelatedByProposedBy from storage.
     */
    public Vector getProjectsRelatedByProposedBy(Criteria criteria) throws Exception
    {
        if (collProjectsRelatedByProposedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectsRelatedByProposedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectPeer.PROPOSED_BY, getUserId() );               
                   collProjectsRelatedByProposedBy = ProjectPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectsRelatedByProposedBy != null)
            {
                for (int i=0; i<tempcollProjectsRelatedByProposedBy.size(); i++)
                {
                    collProjectsRelatedByProposedBy.add(tempcollProjectsRelatedByProposedBy.get(i));
                }
                tempcollProjectsRelatedByProposedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectsRelatedByProposedByCriteria.equals(criteria)  )
            {
                collProjectsRelatedByProposedBy = ProjectPeer.doSelect(criteria);  
            }
        }
        lastProjectsRelatedByProposedByCriteria = criteria; 

        return collProjectsRelatedByProposedBy;
    }
      

        
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectsRelatedByProposedBy from storage.
     */
    public Vector getProjectsRelatedByProposedByJoinDomain(Criteria criteria) 
        throws Exception
    {
        if (collProjectsRelatedByProposedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectsRelatedByProposedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectPeer.PROPOSED_BY, getUserId() );               
                   collProjectsRelatedByProposedBy = ProjectPeer.doSelectJoinDomain(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectsRelatedByProposedByCriteria.equals(criteria)  )
            {
                collProjectsRelatedByProposedBy = ProjectPeer.doSelectJoinDomain(criteria);
            }
        }
        lastProjectsRelatedByProposedByCriteria = criteria; 

        return collProjectsRelatedByProposedBy;
    }
      
      
         
              
                            
                
        
                        
       
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectsRelatedByProposedBy from storage.
     */
    public Vector getProjectsRelatedByProposedByJoinUserRelatedByApprovedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectsRelatedByProposedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectsRelatedByProposedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectPeer.PROPOSED_BY, getUserId() );               
                   collProjectsRelatedByProposedBy = ProjectPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectsRelatedByProposedByCriteria.equals(criteria)  )
            {
                collProjectsRelatedByProposedBy = ProjectPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
        }
        lastProjectsRelatedByProposedByCriteria = criteria; 

        return collProjectsRelatedByProposedBy;
    }
      
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectsRelatedByProposedBy from storage.
     */
    public Vector getProjectsRelatedByProposedByJoinSkin(Criteria criteria) 
        throws Exception
    {
        if (collProjectsRelatedByProposedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectsRelatedByProposedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectPeer.PROPOSED_BY, getUserId() );               
                   collProjectsRelatedByProposedBy = ProjectPeer.doSelectJoinSkin(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectsRelatedByProposedByCriteria.equals(criteria)  )
            {
                collProjectsRelatedByProposedBy = ProjectPeer.doSelectJoinSkin(criteria);
            }
        }
        lastProjectsRelatedByProposedByCriteria = criteria; 

        return collProjectsRelatedByProposedBy;
    }
     



                 
      
    /**
     * Collection to store aggregation of collProjectsRelatedByApprovedBy
     */
    private Vector collProjectsRelatedByApprovedBy;
    /**
     * Temporary storage of collProjectsRelatedByApprovedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectsRelatedByApprovedBy;

    public void initProjectsRelatedByApprovedBy()
    {
        if (collProjectsRelatedByApprovedBy == null)
            collProjectsRelatedByApprovedBy = new Vector();
    }

    /**
     * Method called to associate a Project object to this object
     * through the Project foreign key attribute
     *
     * @@param Project l
     */
    public void addProjectsRelatedByApprovedBy(Project l) throws Exception
    {
        /*
        if (collProjectsRelatedByApprovedBy == null)
        {
            if (tempcollProjectsRelatedByApprovedBy == null)
            {
                tempcollProjectsRelatedByApprovedBy = new Vector();
            }
            tempcollProjectsRelatedByApprovedBy.add(l);
        }
        else
        {
            collProjectsRelatedByApprovedBy.add(l);
        }
        */
        getProjectsRelatedByApprovedBy().add(l);
        l.setUserRelatedByApprovedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectsRelatedByApprovedBy
     */
    private Criteria lastProjectsRelatedByApprovedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectsRelatedByApprovedBy(new Criteria())
     */
    public Vector getProjectsRelatedByApprovedBy() throws Exception
    {
        if (collProjectsRelatedByApprovedBy == null)
        {
            collProjectsRelatedByApprovedBy = getProjectsRelatedByApprovedBy(new Criteria(10));
        }
        return collProjectsRelatedByApprovedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectsRelatedByApprovedBy from storage.
     */
    public Vector getProjectsRelatedByApprovedBy(Criteria criteria) throws Exception
    {
        if (collProjectsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectPeer.APPROVED_BY, getUserId() );               
                   collProjectsRelatedByApprovedBy = ProjectPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectsRelatedByApprovedBy != null)
            {
                for (int i=0; i<tempcollProjectsRelatedByApprovedBy.size(); i++)
                {
                    collProjectsRelatedByApprovedBy.add(tempcollProjectsRelatedByApprovedBy.get(i));
                }
                tempcollProjectsRelatedByApprovedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectsRelatedByApprovedBy = ProjectPeer.doSelect(criteria);  
            }
        }
        lastProjectsRelatedByApprovedByCriteria = criteria; 

        return collProjectsRelatedByApprovedBy;
    }
      

        
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectsRelatedByApprovedBy from storage.
     */
    public Vector getProjectsRelatedByApprovedByJoinDomain(Criteria criteria) 
        throws Exception
    {
        if (collProjectsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectPeer.APPROVED_BY, getUserId() );               
                   collProjectsRelatedByApprovedBy = ProjectPeer.doSelectJoinDomain(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectsRelatedByApprovedBy = ProjectPeer.doSelectJoinDomain(criteria);
            }
        }
        lastProjectsRelatedByApprovedByCriteria = criteria; 

        return collProjectsRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectsRelatedByApprovedBy from storage.
     */
    public Vector getProjectsRelatedByApprovedByJoinUserRelatedByProposedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectPeer.APPROVED_BY, getUserId() );               
                   collProjectsRelatedByApprovedBy = ProjectPeer.doSelectJoinUserRelatedByProposedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectsRelatedByApprovedBy = ProjectPeer.doSelectJoinUserRelatedByProposedBy(criteria);
            }
        }
        lastProjectsRelatedByApprovedByCriteria = criteria; 

        return collProjectsRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                        
       
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectsRelatedByApprovedBy from storage.
     */
    public Vector getProjectsRelatedByApprovedByJoinSkin(Criteria criteria) 
        throws Exception
    {
        if (collProjectsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectPeer.APPROVED_BY, getUserId() );               
                   collProjectsRelatedByApprovedBy = ProjectPeer.doSelectJoinSkin(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectsRelatedByApprovedBy = ProjectPeer.doSelectJoinSkin(criteria);
            }
        }
        lastProjectsRelatedByApprovedByCriteria = criteria; 

        return collProjectsRelatedByApprovedBy;
    }
     



                 
      
    /**
     * Collection to store aggregation of collProjectDocumentsRelatedBySuggestedBy
     */
    private Vector collProjectDocumentsRelatedBySuggestedBy;
    /**
     * Temporary storage of collProjectDocumentsRelatedBySuggestedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectDocumentsRelatedBySuggestedBy;

    public void initProjectDocumentsRelatedBySuggestedBy()
    {
        if (collProjectDocumentsRelatedBySuggestedBy == null)
            collProjectDocumentsRelatedBySuggestedBy = new Vector();
    }

    /**
     * Method called to associate a ProjectDocument object to this object
     * through the ProjectDocument foreign key attribute
     *
     * @@param ProjectDocument l
     */
    public void addProjectDocumentsRelatedBySuggestedBy(ProjectDocument l) throws Exception
    {
        /*
        if (collProjectDocumentsRelatedBySuggestedBy == null)
        {
            if (tempcollProjectDocumentsRelatedBySuggestedBy == null)
            {
                tempcollProjectDocumentsRelatedBySuggestedBy = new Vector();
            }
            tempcollProjectDocumentsRelatedBySuggestedBy.add(l);
        }
        else
        {
            collProjectDocumentsRelatedBySuggestedBy.add(l);
        }
        */
        getProjectDocumentsRelatedBySuggestedBy().add(l);
        l.setUserRelatedBySuggestedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectDocumentsRelatedBySuggestedBy
     */
    private Criteria lastProjectDocumentsRelatedBySuggestedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectDocumentsRelatedBySuggestedBy(new Criteria())
     */
    public Vector getProjectDocumentsRelatedBySuggestedBy() throws Exception
    {
        if (collProjectDocumentsRelatedBySuggestedBy == null)
        {
            collProjectDocumentsRelatedBySuggestedBy = getProjectDocumentsRelatedBySuggestedBy(new Criteria(10));
        }
        return collProjectDocumentsRelatedBySuggestedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDocumentsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectDocumentsRelatedBySuggestedBy(Criteria criteria) throws Exception
    {
        if (collProjectDocumentsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDocumentsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDocumentPeer.SUGGESTED_BY, getUserId() );               
                   collProjectDocumentsRelatedBySuggestedBy = ProjectDocumentPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectDocumentsRelatedBySuggestedBy != null)
            {
                for (int i=0; i<tempcollProjectDocumentsRelatedBySuggestedBy.size(); i++)
                {
                    collProjectDocumentsRelatedBySuggestedBy.add(tempcollProjectDocumentsRelatedBySuggestedBy.get(i));
                }
                tempcollProjectDocumentsRelatedBySuggestedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDocumentPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectDocumentsRelatedBySuggestedBy = ProjectDocumentPeer.doSelect(criteria);  
            }
        }
        lastProjectDocumentsRelatedBySuggestedByCriteria = criteria; 

        return collProjectDocumentsRelatedBySuggestedBy;
    }
     

        
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDocumentsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectDocumentsRelatedBySuggestedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collProjectDocumentsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDocumentsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDocumentPeer.SUGGESTED_BY, getUserId() );               
                   collProjectDocumentsRelatedBySuggestedBy = ProjectDocumentPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDocumentPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectDocumentsRelatedBySuggestedBy = ProjectDocumentPeer.doSelectJoinProject(criteria);
            }
        }
        lastProjectDocumentsRelatedBySuggestedByCriteria = criteria; 

        return collProjectDocumentsRelatedBySuggestedBy;
    }
      
      
         
              
                            
                
        
                        
       
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDocumentsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectDocumentsRelatedBySuggestedByJoinUserRelatedByApprovedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectDocumentsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDocumentsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDocumentPeer.SUGGESTED_BY, getUserId() );               
                   collProjectDocumentsRelatedBySuggestedBy = ProjectDocumentPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDocumentPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectDocumentsRelatedBySuggestedBy = ProjectDocumentPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
        }
        lastProjectDocumentsRelatedBySuggestedByCriteria = criteria; 

        return collProjectDocumentsRelatedBySuggestedBy;
    }
     



                 
      
    /**
     * Collection to store aggregation of collProjectDocumentsRelatedByApprovedBy
     */
    private Vector collProjectDocumentsRelatedByApprovedBy;
    /**
     * Temporary storage of collProjectDocumentsRelatedByApprovedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectDocumentsRelatedByApprovedBy;

    public void initProjectDocumentsRelatedByApprovedBy()
    {
        if (collProjectDocumentsRelatedByApprovedBy == null)
            collProjectDocumentsRelatedByApprovedBy = new Vector();
    }

    /**
     * Method called to associate a ProjectDocument object to this object
     * through the ProjectDocument foreign key attribute
     *
     * @@param ProjectDocument l
     */
    public void addProjectDocumentsRelatedByApprovedBy(ProjectDocument l) throws Exception
    {
        /*
        if (collProjectDocumentsRelatedByApprovedBy == null)
        {
            if (tempcollProjectDocumentsRelatedByApprovedBy == null)
            {
                tempcollProjectDocumentsRelatedByApprovedBy = new Vector();
            }
            tempcollProjectDocumentsRelatedByApprovedBy.add(l);
        }
        else
        {
            collProjectDocumentsRelatedByApprovedBy.add(l);
        }
        */
        getProjectDocumentsRelatedByApprovedBy().add(l);
        l.setUserRelatedByApprovedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectDocumentsRelatedByApprovedBy
     */
    private Criteria lastProjectDocumentsRelatedByApprovedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectDocumentsRelatedByApprovedBy(new Criteria())
     */
    public Vector getProjectDocumentsRelatedByApprovedBy() throws Exception
    {
        if (collProjectDocumentsRelatedByApprovedBy == null)
        {
            collProjectDocumentsRelatedByApprovedBy = getProjectDocumentsRelatedByApprovedBy(new Criteria(10));
        }
        return collProjectDocumentsRelatedByApprovedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDocumentsRelatedByApprovedBy from storage.
     */
    public Vector getProjectDocumentsRelatedByApprovedBy(Criteria criteria) throws Exception
    {
        if (collProjectDocumentsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDocumentsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDocumentPeer.APPROVED_BY, getUserId() );               
                   collProjectDocumentsRelatedByApprovedBy = ProjectDocumentPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectDocumentsRelatedByApprovedBy != null)
            {
                for (int i=0; i<tempcollProjectDocumentsRelatedByApprovedBy.size(); i++)
                {
                    collProjectDocumentsRelatedByApprovedBy.add(tempcollProjectDocumentsRelatedByApprovedBy.get(i));
                }
                tempcollProjectDocumentsRelatedByApprovedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDocumentPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectDocumentsRelatedByApprovedBy = ProjectDocumentPeer.doSelect(criteria);  
            }
        }
        lastProjectDocumentsRelatedByApprovedByCriteria = criteria; 

        return collProjectDocumentsRelatedByApprovedBy;
    }
     

        
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDocumentsRelatedByApprovedBy from storage.
     */
    public Vector getProjectDocumentsRelatedByApprovedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collProjectDocumentsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDocumentsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDocumentPeer.APPROVED_BY, getUserId() );               
                   collProjectDocumentsRelatedByApprovedBy = ProjectDocumentPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDocumentPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectDocumentsRelatedByApprovedBy = ProjectDocumentPeer.doSelectJoinProject(criteria);
            }
        }
        lastProjectDocumentsRelatedByApprovedByCriteria = criteria; 

        return collProjectDocumentsRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDocumentsRelatedByApprovedBy from storage.
     */
    public Vector getProjectDocumentsRelatedByApprovedByJoinUserRelatedBySuggestedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectDocumentsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDocumentsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDocumentPeer.APPROVED_BY, getUserId() );               
                   collProjectDocumentsRelatedByApprovedBy = ProjectDocumentPeer.doSelectJoinUserRelatedBySuggestedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDocumentPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectDocumentsRelatedByApprovedBy = ProjectDocumentPeer.doSelectJoinUserRelatedBySuggestedBy(criteria);
            }
        }
        lastProjectDocumentsRelatedByApprovedByCriteria = criteria; 

        return collProjectDocumentsRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                        
      



                 
      
    /**
     * Collection to store aggregation of collProjectDownloadsRelatedBySuggestedBy
     */
    private Vector collProjectDownloadsRelatedBySuggestedBy;
    /**
     * Temporary storage of collProjectDownloadsRelatedBySuggestedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectDownloadsRelatedBySuggestedBy;

    public void initProjectDownloadsRelatedBySuggestedBy()
    {
        if (collProjectDownloadsRelatedBySuggestedBy == null)
            collProjectDownloadsRelatedBySuggestedBy = new Vector();
    }

    /**
     * Method called to associate a ProjectDownload object to this object
     * through the ProjectDownload foreign key attribute
     *
     * @@param ProjectDownload l
     */
    public void addProjectDownloadsRelatedBySuggestedBy(ProjectDownload l) throws Exception
    {
        /*
        if (collProjectDownloadsRelatedBySuggestedBy == null)
        {
            if (tempcollProjectDownloadsRelatedBySuggestedBy == null)
            {
                tempcollProjectDownloadsRelatedBySuggestedBy = new Vector();
            }
            tempcollProjectDownloadsRelatedBySuggestedBy.add(l);
        }
        else
        {
            collProjectDownloadsRelatedBySuggestedBy.add(l);
        }
        */
        getProjectDownloadsRelatedBySuggestedBy().add(l);
        l.setUserRelatedBySuggestedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectDownloadsRelatedBySuggestedBy
     */
    private Criteria lastProjectDownloadsRelatedBySuggestedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectDownloadsRelatedBySuggestedBy(new Criteria())
     */
    public Vector getProjectDownloadsRelatedBySuggestedBy() throws Exception
    {
        if (collProjectDownloadsRelatedBySuggestedBy == null)
        {
            collProjectDownloadsRelatedBySuggestedBy = getProjectDownloadsRelatedBySuggestedBy(new Criteria(10));
        }
        return collProjectDownloadsRelatedBySuggestedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDownloadsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectDownloadsRelatedBySuggestedBy(Criteria criteria) throws Exception
    {
        if (collProjectDownloadsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDownloadsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDownloadPeer.SUGGESTED_BY, getUserId() );               
                   collProjectDownloadsRelatedBySuggestedBy = ProjectDownloadPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectDownloadsRelatedBySuggestedBy != null)
            {
                for (int i=0; i<tempcollProjectDownloadsRelatedBySuggestedBy.size(); i++)
                {
                    collProjectDownloadsRelatedBySuggestedBy.add(tempcollProjectDownloadsRelatedBySuggestedBy.get(i));
                }
                tempcollProjectDownloadsRelatedBySuggestedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDownloadPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectDownloadsRelatedBySuggestedBy = ProjectDownloadPeer.doSelect(criteria);  
            }
        }
        lastProjectDownloadsRelatedBySuggestedByCriteria = criteria; 

        return collProjectDownloadsRelatedBySuggestedBy;
    }
     

        
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDownloadsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectDownloadsRelatedBySuggestedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collProjectDownloadsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDownloadsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDownloadPeer.SUGGESTED_BY, getUserId() );               
                   collProjectDownloadsRelatedBySuggestedBy = ProjectDownloadPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDownloadPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectDownloadsRelatedBySuggestedBy = ProjectDownloadPeer.doSelectJoinProject(criteria);
            }
        }
        lastProjectDownloadsRelatedBySuggestedByCriteria = criteria; 

        return collProjectDownloadsRelatedBySuggestedBy;
    }
      
      
         
              
                            
                
        
                        
       
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDownloadsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectDownloadsRelatedBySuggestedByJoinUserRelatedByApprovedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectDownloadsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDownloadsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDownloadPeer.SUGGESTED_BY, getUserId() );               
                   collProjectDownloadsRelatedBySuggestedBy = ProjectDownloadPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDownloadPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectDownloadsRelatedBySuggestedBy = ProjectDownloadPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
        }
        lastProjectDownloadsRelatedBySuggestedByCriteria = criteria; 

        return collProjectDownloadsRelatedBySuggestedBy;
    }
     



                 
      
    /**
     * Collection to store aggregation of collProjectDownloadsRelatedByApprovedBy
     */
    private Vector collProjectDownloadsRelatedByApprovedBy;
    /**
     * Temporary storage of collProjectDownloadsRelatedByApprovedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectDownloadsRelatedByApprovedBy;

    public void initProjectDownloadsRelatedByApprovedBy()
    {
        if (collProjectDownloadsRelatedByApprovedBy == null)
            collProjectDownloadsRelatedByApprovedBy = new Vector();
    }

    /**
     * Method called to associate a ProjectDownload object to this object
     * through the ProjectDownload foreign key attribute
     *
     * @@param ProjectDownload l
     */
    public void addProjectDownloadsRelatedByApprovedBy(ProjectDownload l) throws Exception
    {
        /*
        if (collProjectDownloadsRelatedByApprovedBy == null)
        {
            if (tempcollProjectDownloadsRelatedByApprovedBy == null)
            {
                tempcollProjectDownloadsRelatedByApprovedBy = new Vector();
            }
            tempcollProjectDownloadsRelatedByApprovedBy.add(l);
        }
        else
        {
            collProjectDownloadsRelatedByApprovedBy.add(l);
        }
        */
        getProjectDownloadsRelatedByApprovedBy().add(l);
        l.setUserRelatedByApprovedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectDownloadsRelatedByApprovedBy
     */
    private Criteria lastProjectDownloadsRelatedByApprovedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectDownloadsRelatedByApprovedBy(new Criteria())
     */
    public Vector getProjectDownloadsRelatedByApprovedBy() throws Exception
    {
        if (collProjectDownloadsRelatedByApprovedBy == null)
        {
            collProjectDownloadsRelatedByApprovedBy = getProjectDownloadsRelatedByApprovedBy(new Criteria(10));
        }
        return collProjectDownloadsRelatedByApprovedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDownloadsRelatedByApprovedBy from storage.
     */
    public Vector getProjectDownloadsRelatedByApprovedBy(Criteria criteria) throws Exception
    {
        if (collProjectDownloadsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDownloadsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDownloadPeer.APPROVED_BY, getUserId() );               
                   collProjectDownloadsRelatedByApprovedBy = ProjectDownloadPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectDownloadsRelatedByApprovedBy != null)
            {
                for (int i=0; i<tempcollProjectDownloadsRelatedByApprovedBy.size(); i++)
                {
                    collProjectDownloadsRelatedByApprovedBy.add(tempcollProjectDownloadsRelatedByApprovedBy.get(i));
                }
                tempcollProjectDownloadsRelatedByApprovedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDownloadPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectDownloadsRelatedByApprovedBy = ProjectDownloadPeer.doSelect(criteria);  
            }
        }
        lastProjectDownloadsRelatedByApprovedByCriteria = criteria; 

        return collProjectDownloadsRelatedByApprovedBy;
    }
     

        
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDownloadsRelatedByApprovedBy from storage.
     */
    public Vector getProjectDownloadsRelatedByApprovedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collProjectDownloadsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDownloadsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDownloadPeer.APPROVED_BY, getUserId() );               
                   collProjectDownloadsRelatedByApprovedBy = ProjectDownloadPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDownloadPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectDownloadsRelatedByApprovedBy = ProjectDownloadPeer.doSelectJoinProject(criteria);
            }
        }
        lastProjectDownloadsRelatedByApprovedByCriteria = criteria; 

        return collProjectDownloadsRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectDownloadsRelatedByApprovedBy from storage.
     */
    public Vector getProjectDownloadsRelatedByApprovedByJoinUserRelatedBySuggestedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectDownloadsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectDownloadsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectDownloadPeer.APPROVED_BY, getUserId() );               
                   collProjectDownloadsRelatedByApprovedBy = ProjectDownloadPeer.doSelectJoinUserRelatedBySuggestedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectDownloadPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectDownloadsRelatedByApprovedBy = ProjectDownloadPeer.doSelectJoinUserRelatedBySuggestedBy(criteria);
            }
        }
        lastProjectDownloadsRelatedByApprovedByCriteria = criteria; 

        return collProjectDownloadsRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                        
      



                 
      
    /**
     * Collection to store aggregation of collProjectNewssRelatedByProposedBy
     */
    private Vector collProjectNewssRelatedByProposedBy;
    /**
     * Temporary storage of collProjectNewssRelatedByProposedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectNewssRelatedByProposedBy;

    public void initProjectNewssRelatedByProposedBy()
    {
        if (collProjectNewssRelatedByProposedBy == null)
            collProjectNewssRelatedByProposedBy = new Vector();
    }

    /**
     * Method called to associate a ProjectNews object to this object
     * through the ProjectNews foreign key attribute
     *
     * @@param ProjectNews l
     */
    public void addProjectNewssRelatedByProposedBy(ProjectNews l) throws Exception
    {
        /*
        if (collProjectNewssRelatedByProposedBy == null)
        {
            if (tempcollProjectNewssRelatedByProposedBy == null)
            {
                tempcollProjectNewssRelatedByProposedBy = new Vector();
            }
            tempcollProjectNewssRelatedByProposedBy.add(l);
        }
        else
        {
            collProjectNewssRelatedByProposedBy.add(l);
        }
        */
        getProjectNewssRelatedByProposedBy().add(l);
        l.setUserRelatedByProposedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectNewssRelatedByProposedBy
     */
    private Criteria lastProjectNewssRelatedByProposedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectNewssRelatedByProposedBy(new Criteria())
     */
    public Vector getProjectNewssRelatedByProposedBy() throws Exception
    {
        if (collProjectNewssRelatedByProposedBy == null)
        {
            collProjectNewssRelatedByProposedBy = getProjectNewssRelatedByProposedBy(new Criteria(10));
        }
        return collProjectNewssRelatedByProposedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectNewssRelatedByProposedBy from storage.
     */
    public Vector getProjectNewssRelatedByProposedBy(Criteria criteria) throws Exception
    {
        if (collProjectNewssRelatedByProposedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectNewssRelatedByProposedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectNewsPeer.PROPOSED_BY, getUserId() );               
                   collProjectNewssRelatedByProposedBy = ProjectNewsPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectNewssRelatedByProposedBy != null)
            {
                for (int i=0; i<tempcollProjectNewssRelatedByProposedBy.size(); i++)
                {
                    collProjectNewssRelatedByProposedBy.add(tempcollProjectNewssRelatedByProposedBy.get(i));
                }
                tempcollProjectNewssRelatedByProposedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectNewsPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectNewssRelatedByProposedByCriteria.equals(criteria)  )
            {
                collProjectNewssRelatedByProposedBy = ProjectNewsPeer.doSelect(criteria);  
            }
        }
        lastProjectNewssRelatedByProposedByCriteria = criteria; 

        return collProjectNewssRelatedByProposedBy;
    }
     

        
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectNewssRelatedByProposedBy from storage.
     */
    public Vector getProjectNewssRelatedByProposedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collProjectNewssRelatedByProposedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectNewssRelatedByProposedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectNewsPeer.PROPOSED_BY, getUserId() );               
                   collProjectNewssRelatedByProposedBy = ProjectNewsPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectNewsPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectNewssRelatedByProposedByCriteria.equals(criteria)  )
            {
                collProjectNewssRelatedByProposedBy = ProjectNewsPeer.doSelectJoinProject(criteria);
            }
        }
        lastProjectNewssRelatedByProposedByCriteria = criteria; 

        return collProjectNewssRelatedByProposedBy;
    }
      
      
         
              
                            
                
        
                        
       
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectNewssRelatedByProposedBy from storage.
     */
    public Vector getProjectNewssRelatedByProposedByJoinUserRelatedByApprovedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectNewssRelatedByProposedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectNewssRelatedByProposedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectNewsPeer.PROPOSED_BY, getUserId() );               
                   collProjectNewssRelatedByProposedBy = ProjectNewsPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectNewsPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectNewssRelatedByProposedByCriteria.equals(criteria)  )
            {
                collProjectNewssRelatedByProposedBy = ProjectNewsPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
        }
        lastProjectNewssRelatedByProposedByCriteria = criteria; 

        return collProjectNewssRelatedByProposedBy;
    }
     



                 
      
    /**
     * Collection to store aggregation of collProjectNewssRelatedByApprovedBy
     */
    private Vector collProjectNewssRelatedByApprovedBy;
    /**
     * Temporary storage of collProjectNewssRelatedByApprovedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectNewssRelatedByApprovedBy;

    public void initProjectNewssRelatedByApprovedBy()
    {
        if (collProjectNewssRelatedByApprovedBy == null)
            collProjectNewssRelatedByApprovedBy = new Vector();
    }

    /**
     * Method called to associate a ProjectNews object to this object
     * through the ProjectNews foreign key attribute
     *
     * @@param ProjectNews l
     */
    public void addProjectNewssRelatedByApprovedBy(ProjectNews l) throws Exception
    {
        /*
        if (collProjectNewssRelatedByApprovedBy == null)
        {
            if (tempcollProjectNewssRelatedByApprovedBy == null)
            {
                tempcollProjectNewssRelatedByApprovedBy = new Vector();
            }
            tempcollProjectNewssRelatedByApprovedBy.add(l);
        }
        else
        {
            collProjectNewssRelatedByApprovedBy.add(l);
        }
        */
        getProjectNewssRelatedByApprovedBy().add(l);
        l.setUserRelatedByApprovedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectNewssRelatedByApprovedBy
     */
    private Criteria lastProjectNewssRelatedByApprovedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectNewssRelatedByApprovedBy(new Criteria())
     */
    public Vector getProjectNewssRelatedByApprovedBy() throws Exception
    {
        if (collProjectNewssRelatedByApprovedBy == null)
        {
            collProjectNewssRelatedByApprovedBy = getProjectNewssRelatedByApprovedBy(new Criteria(10));
        }
        return collProjectNewssRelatedByApprovedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectNewssRelatedByApprovedBy from storage.
     */
    public Vector getProjectNewssRelatedByApprovedBy(Criteria criteria) throws Exception
    {
        if (collProjectNewssRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectNewssRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectNewsPeer.APPROVED_BY, getUserId() );               
                   collProjectNewssRelatedByApprovedBy = ProjectNewsPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectNewssRelatedByApprovedBy != null)
            {
                for (int i=0; i<tempcollProjectNewssRelatedByApprovedBy.size(); i++)
                {
                    collProjectNewssRelatedByApprovedBy.add(tempcollProjectNewssRelatedByApprovedBy.get(i));
                }
                tempcollProjectNewssRelatedByApprovedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectNewsPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectNewssRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectNewssRelatedByApprovedBy = ProjectNewsPeer.doSelect(criteria);  
            }
        }
        lastProjectNewssRelatedByApprovedByCriteria = criteria; 

        return collProjectNewssRelatedByApprovedBy;
    }
     

        
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectNewssRelatedByApprovedBy from storage.
     */
    public Vector getProjectNewssRelatedByApprovedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collProjectNewssRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectNewssRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectNewsPeer.APPROVED_BY, getUserId() );               
                   collProjectNewssRelatedByApprovedBy = ProjectNewsPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectNewsPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectNewssRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectNewssRelatedByApprovedBy = ProjectNewsPeer.doSelectJoinProject(criteria);
            }
        }
        lastProjectNewssRelatedByApprovedByCriteria = criteria; 

        return collProjectNewssRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectNewssRelatedByApprovedBy from storage.
     */
    public Vector getProjectNewssRelatedByApprovedByJoinUserRelatedByProposedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectNewssRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectNewssRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectNewsPeer.APPROVED_BY, getUserId() );               
                   collProjectNewssRelatedByApprovedBy = ProjectNewsPeer.doSelectJoinUserRelatedByProposedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectNewsPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectNewssRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectNewssRelatedByApprovedBy = ProjectNewsPeer.doSelectJoinUserRelatedByProposedBy(criteria);
            }
        }
        lastProjectNewssRelatedByApprovedByCriteria = criteria; 

        return collProjectNewssRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                        
      



                 
      
    /**
     * Collection to store aggregation of collProjectSectionsRelatedBySuggestedBy
     */
    private Vector collProjectSectionsRelatedBySuggestedBy;
    /**
     * Temporary storage of collProjectSectionsRelatedBySuggestedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectSectionsRelatedBySuggestedBy;

    public void initProjectSectionsRelatedBySuggestedBy()
    {
        if (collProjectSectionsRelatedBySuggestedBy == null)
            collProjectSectionsRelatedBySuggestedBy = new Vector();
    }

    /**
     * Method called to associate a ProjectSection object to this object
     * through the ProjectSection foreign key attribute
     *
     * @@param ProjectSection l
     */
    public void addProjectSectionsRelatedBySuggestedBy(ProjectSection l) throws Exception
    {
        /*
        if (collProjectSectionsRelatedBySuggestedBy == null)
        {
            if (tempcollProjectSectionsRelatedBySuggestedBy == null)
            {
                tempcollProjectSectionsRelatedBySuggestedBy = new Vector();
            }
            tempcollProjectSectionsRelatedBySuggestedBy.add(l);
        }
        else
        {
            collProjectSectionsRelatedBySuggestedBy.add(l);
        }
        */
        getProjectSectionsRelatedBySuggestedBy().add(l);
        l.setUserRelatedBySuggestedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectSectionsRelatedBySuggestedBy
     */
    private Criteria lastProjectSectionsRelatedBySuggestedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectSectionsRelatedBySuggestedBy(new Criteria())
     */
    public Vector getProjectSectionsRelatedBySuggestedBy() throws Exception
    {
        if (collProjectSectionsRelatedBySuggestedBy == null)
        {
            collProjectSectionsRelatedBySuggestedBy = getProjectSectionsRelatedBySuggestedBy(new Criteria(10));
        }
        return collProjectSectionsRelatedBySuggestedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectSectionsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectSectionsRelatedBySuggestedBy(Criteria criteria) throws Exception
    {
        if (collProjectSectionsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectSectionsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectSectionPeer.SUGGESTED_BY, getUserId() );               
                   collProjectSectionsRelatedBySuggestedBy = ProjectSectionPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectSectionsRelatedBySuggestedBy != null)
            {
                for (int i=0; i<tempcollProjectSectionsRelatedBySuggestedBy.size(); i++)
                {
                    collProjectSectionsRelatedBySuggestedBy.add(tempcollProjectSectionsRelatedBySuggestedBy.get(i));
                }
                tempcollProjectSectionsRelatedBySuggestedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectSectionPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectSectionsRelatedBySuggestedBy = ProjectSectionPeer.doSelect(criteria);  
            }
        }
        lastProjectSectionsRelatedBySuggestedByCriteria = criteria; 

        return collProjectSectionsRelatedBySuggestedBy;
    }
      

        
      
      
          
                    
                    
        
                
       
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectSectionsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectSectionsRelatedBySuggestedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collProjectSectionsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectSectionsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectSectionPeer.SUGGESTED_BY, getUserId() );               
                   collProjectSectionsRelatedBySuggestedBy = ProjectSectionPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectSectionPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectSectionsRelatedBySuggestedBy = ProjectSectionPeer.doSelectJoinProject(criteria);
            }
        }
        lastProjectSectionsRelatedBySuggestedByCriteria = criteria; 

        return collProjectSectionsRelatedBySuggestedBy;
    }
      
      
         
              
                            
                
        
                        
       
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectSectionsRelatedBySuggestedBy from storage.
     */
    public Vector getProjectSectionsRelatedBySuggestedByJoinUserRelatedByApprovedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectSectionsRelatedBySuggestedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectSectionsRelatedBySuggestedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectSectionPeer.SUGGESTED_BY, getUserId() );               
                   collProjectSectionsRelatedBySuggestedBy = ProjectSectionPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectSectionPeer.SUGGESTED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedBySuggestedByCriteria.equals(criteria)  )
            {
                collProjectSectionsRelatedBySuggestedBy = ProjectSectionPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
        }
        lastProjectSectionsRelatedBySuggestedByCriteria = criteria; 

        return collProjectSectionsRelatedBySuggestedBy;
    }
     



                 
      
    /**
     * Collection to store aggregation of collProjectSectionsRelatedByApprovedBy
     */
    private Vector collProjectSectionsRelatedByApprovedBy;
    /**
     * Temporary storage of collProjectSectionsRelatedByApprovedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollProjectSectionsRelatedByApprovedBy;

    public void initProjectSectionsRelatedByApprovedBy()
    {
        if (collProjectSectionsRelatedByApprovedBy == null)
            collProjectSectionsRelatedByApprovedBy = new Vector();
    }

    /**
     * Method called to associate a ProjectSection object to this object
     * through the ProjectSection foreign key attribute
     *
     * @@param ProjectSection l
     */
    public void addProjectSectionsRelatedByApprovedBy(ProjectSection l) throws Exception
    {
        /*
        if (collProjectSectionsRelatedByApprovedBy == null)
        {
            if (tempcollProjectSectionsRelatedByApprovedBy == null)
            {
                tempcollProjectSectionsRelatedByApprovedBy = new Vector();
            }
            tempcollProjectSectionsRelatedByApprovedBy.add(l);
        }
        else
        {
            collProjectSectionsRelatedByApprovedBy.add(l);
        }
        */
        getProjectSectionsRelatedByApprovedBy().add(l);
        l.setUserRelatedByApprovedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collProjectSectionsRelatedByApprovedBy
     */
    private Criteria lastProjectSectionsRelatedByApprovedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getProjectSectionsRelatedByApprovedBy(new Criteria())
     */
    public Vector getProjectSectionsRelatedByApprovedBy() throws Exception
    {
        if (collProjectSectionsRelatedByApprovedBy == null)
        {
            collProjectSectionsRelatedByApprovedBy = getProjectSectionsRelatedByApprovedBy(new Criteria(10));
        }
        return collProjectSectionsRelatedByApprovedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectSectionsRelatedByApprovedBy from storage.
     */
    public Vector getProjectSectionsRelatedByApprovedBy(Criteria criteria) throws Exception
    {
        if (collProjectSectionsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectSectionsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectSectionPeer.APPROVED_BY, getUserId() );               
                   collProjectSectionsRelatedByApprovedBy = ProjectSectionPeer.doSelect(criteria);
            }
/*
            if (tempcollProjectSectionsRelatedByApprovedBy != null)
            {
                for (int i=0; i<tempcollProjectSectionsRelatedByApprovedBy.size(); i++)
                {
                    collProjectSectionsRelatedByApprovedBy.add(tempcollProjectSectionsRelatedByApprovedBy.get(i));
                }
                tempcollProjectSectionsRelatedByApprovedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectSectionPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectSectionsRelatedByApprovedBy = ProjectSectionPeer.doSelect(criteria);  
            }
        }
        lastProjectSectionsRelatedByApprovedByCriteria = criteria; 

        return collProjectSectionsRelatedByApprovedBy;
    }
      

        
      
      
          
                    
                    
        
                
       
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectSectionsRelatedByApprovedBy from storage.
     */
    public Vector getProjectSectionsRelatedByApprovedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collProjectSectionsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectSectionsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectSectionPeer.APPROVED_BY, getUserId() );               
                   collProjectSectionsRelatedByApprovedBy = ProjectSectionPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectSectionPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectSectionsRelatedByApprovedBy = ProjectSectionPeer.doSelectJoinProject(criteria);
            }
        }
        lastProjectSectionsRelatedByApprovedByCriteria = criteria; 

        return collProjectSectionsRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related ProjectSectionsRelatedByApprovedBy from storage.
     */
    public Vector getProjectSectionsRelatedByApprovedByJoinUserRelatedBySuggestedBy(Criteria criteria) 
        throws Exception
    {
        if (collProjectSectionsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collProjectSectionsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(ProjectSectionPeer.APPROVED_BY, getUserId() );               
                   collProjectSectionsRelatedByApprovedBy = ProjectSectionPeer.doSelectJoinUserRelatedBySuggestedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(ProjectSectionPeer.APPROVED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collProjectSectionsRelatedByApprovedBy = ProjectSectionPeer.doSelectJoinUserRelatedBySuggestedBy(criteria);
            }
        }
        lastProjectSectionsRelatedByApprovedByCriteria = criteria; 

        return collProjectSectionsRelatedByApprovedBy;
    }
      
      
         
              
                            
                
        
                        
      



             
      
    /**
     * Collection to store aggregation of collTasks
     */
    private Vector collTasks;
    /**
     * Temporary storage of collTasks to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollTasks;

    public void initTasks()
    {
        if (collTasks == null)
            collTasks = new Vector();
    }

    /**
     * Method called to associate a Task object to this object
     * through the Task foreign key attribute
     *
     * @@param Task l
     */
    public void addTasks(Task l) throws Exception
    {
        /*
        if (collTasks == null)
        {
            if (tempcollTasks == null)
            {
                tempcollTasks = new Vector();
            }
            tempcollTasks.add(l);
        }
        else
        {
            collTasks.add(l);
        }
        */
        getTasks().add(l);
        l.setUser((User)this);
    }

    /**
     * The criteria used to select the current contents of collTasks
     */
    private Criteria lastTasksCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getTasks(new Criteria())
     */
    public Vector getTasks() throws Exception
    {
        if (collTasks == null)
        {
            collTasks = getTasks(new Criteria(10));
        }
        return collTasks;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related Tasks from storage.
     */
    public Vector getTasks(Criteria criteria) throws Exception
    {
        if (collTasks == null)
        {
            if ( isNew() ) 
            {
               collTasks = new Vector();       
            } 
            else
            {
                   criteria.add(TaskPeer.ON_BEHALF_OF, getUserId() );               
                   collTasks = TaskPeer.doSelect(criteria);
            }
/*
            if (tempcollTasks != null)
            {
                for (int i=0; i<tempcollTasks.size(); i++)
                {
                    collTasks.add(tempcollTasks.get(i));
                }
                tempcollTasks = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(TaskPeer.ON_BEHALF_OF, getUserId() );               
               if ( !lastTasksCriteria.equals(criteria)  )
            {
                collTasks = TaskPeer.doSelect(criteria);  
            }
        }
        lastTasksCriteria = criteria; 

        return collTasks;
    }
   

        
      
         
          
                    
                
        
        
      



                 
      
    /**
     * Collection to store aggregation of collUserUsergroupsRelatedByUserId
     */
    private Vector collUserUsergroupsRelatedByUserId;
    /**
     * Temporary storage of collUserUsergroupsRelatedByUserId to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollUserUsergroupsRelatedByUserId;

    public void initUserUsergroupsRelatedByUserId()
    {
        if (collUserUsergroupsRelatedByUserId == null)
            collUserUsergroupsRelatedByUserId = new Vector();
    }

    /**
     * Method called to associate a UserUsergroup object to this object
     * through the UserUsergroup foreign key attribute
     *
     * @@param UserUsergroup l
     */
    public void addUserUsergroupsRelatedByUserId(UserUsergroup l) throws Exception
    {
        /*
        if (collUserUsergroupsRelatedByUserId == null)
        {
            if (tempcollUserUsergroupsRelatedByUserId == null)
            {
                tempcollUserUsergroupsRelatedByUserId = new Vector();
            }
            tempcollUserUsergroupsRelatedByUserId.add(l);
        }
        else
        {
            collUserUsergroupsRelatedByUserId.add(l);
        }
        */
        getUserUsergroupsRelatedByUserId().add(l);
        l.setUserRelatedByUserId((User)this);
    }

    /**
     * The criteria used to select the current contents of collUserUsergroupsRelatedByUserId
     */
    private Criteria lastUserUsergroupsRelatedByUserIdCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getUserUsergroupsRelatedByUserId(new Criteria())
     */
    public Vector getUserUsergroupsRelatedByUserId() throws Exception
    {
        if (collUserUsergroupsRelatedByUserId == null)
        {
            collUserUsergroupsRelatedByUserId = getUserUsergroupsRelatedByUserId(new Criteria(10));
        }
        return collUserUsergroupsRelatedByUserId;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserUsergroupsRelatedByUserId from storage.
     */
    public Vector getUserUsergroupsRelatedByUserId(Criteria criteria) throws Exception
    {
        if (collUserUsergroupsRelatedByUserId == null)
        {
            if ( isNew() ) 
            {
               collUserUsergroupsRelatedByUserId = new Vector();       
            } 
            else
            {
                   criteria.add(UserUsergroupPeer.USER_ID, getUserId() );               
                   collUserUsergroupsRelatedByUserId = UserUsergroupPeer.doSelect(criteria);
            }
/*
            if (tempcollUserUsergroupsRelatedByUserId != null)
            {
                for (int i=0; i<tempcollUserUsergroupsRelatedByUserId.size(); i++)
                {
                    collUserUsergroupsRelatedByUserId.add(tempcollUserUsergroupsRelatedByUserId.get(i));
                }
                tempcollUserUsergroupsRelatedByUserId = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserUsergroupPeer.USER_ID, getUserId() );               
               if ( !lastUserUsergroupsRelatedByUserIdCriteria.equals(criteria)  )
            {
                collUserUsergroupsRelatedByUserId = UserUsergroupPeer.doSelect(criteria);  
            }
        }
        lastUserUsergroupsRelatedByUserIdCriteria = criteria; 

        return collUserUsergroupsRelatedByUserId;
    }
    

        
      
         
              
                            
                
        
                        
       
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserUsergroupsRelatedByUserId from storage.
     */
    public Vector getUserUsergroupsRelatedByUserIdJoinUserRelatedByUserGroupId(Criteria criteria) 
        throws Exception
    {
        if (collUserUsergroupsRelatedByUserId == null)
        {
            if ( isNew() ) 
            {
               collUserUsergroupsRelatedByUserId = new Vector();       
            } 
            else
            {
                   criteria.add(UserUsergroupPeer.USER_ID, getUserId() );               
                   collUserUsergroupsRelatedByUserId = UserUsergroupPeer.doSelectJoinUserRelatedByUserGroupId(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserUsergroupPeer.USER_ID, getUserId() );               
               if ( !lastUserUsergroupsRelatedByUserIdCriteria.equals(criteria)  )
            {
                collUserUsergroupsRelatedByUserId = UserUsergroupPeer.doSelectJoinUserRelatedByUserGroupId(criteria);
            }
        }
        lastUserUsergroupsRelatedByUserIdCriteria = criteria; 

        return collUserUsergroupsRelatedByUserId;
    }
     



                 
      
    /**
     * Collection to store aggregation of collUserUsergroupsRelatedByUserGroupId
     */
    private Vector collUserUsergroupsRelatedByUserGroupId;
    /**
     * Temporary storage of collUserUsergroupsRelatedByUserGroupId to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollUserUsergroupsRelatedByUserGroupId;

    public void initUserUsergroupsRelatedByUserGroupId()
    {
        if (collUserUsergroupsRelatedByUserGroupId == null)
            collUserUsergroupsRelatedByUserGroupId = new Vector();
    }

    /**
     * Method called to associate a UserUsergroup object to this object
     * through the UserUsergroup foreign key attribute
     *
     * @@param UserUsergroup l
     */
    public void addUserUsergroupsRelatedByUserGroupId(UserUsergroup l) throws Exception
    {
        /*
        if (collUserUsergroupsRelatedByUserGroupId == null)
        {
            if (tempcollUserUsergroupsRelatedByUserGroupId == null)
            {
                tempcollUserUsergroupsRelatedByUserGroupId = new Vector();
            }
            tempcollUserUsergroupsRelatedByUserGroupId.add(l);
        }
        else
        {
            collUserUsergroupsRelatedByUserGroupId.add(l);
        }
        */
        getUserUsergroupsRelatedByUserGroupId().add(l);
        l.setUserRelatedByUserGroupId((User)this);
    }

    /**
     * The criteria used to select the current contents of collUserUsergroupsRelatedByUserGroupId
     */
    private Criteria lastUserUsergroupsRelatedByUserGroupIdCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getUserUsergroupsRelatedByUserGroupId(new Criteria())
     */
    public Vector getUserUsergroupsRelatedByUserGroupId() throws Exception
    {
        if (collUserUsergroupsRelatedByUserGroupId == null)
        {
            collUserUsergroupsRelatedByUserGroupId = getUserUsergroupsRelatedByUserGroupId(new Criteria(10));
        }
        return collUserUsergroupsRelatedByUserGroupId;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserUsergroupsRelatedByUserGroupId from storage.
     */
    public Vector getUserUsergroupsRelatedByUserGroupId(Criteria criteria) throws Exception
    {
        if (collUserUsergroupsRelatedByUserGroupId == null)
        {
            if ( isNew() ) 
            {
               collUserUsergroupsRelatedByUserGroupId = new Vector();       
            } 
            else
            {
                   criteria.add(UserUsergroupPeer.USER_GROUP_ID, getUserId() );               
                   collUserUsergroupsRelatedByUserGroupId = UserUsergroupPeer.doSelect(criteria);
            }
/*
            if (tempcollUserUsergroupsRelatedByUserGroupId != null)
            {
                for (int i=0; i<tempcollUserUsergroupsRelatedByUserGroupId.size(); i++)
                {
                    collUserUsergroupsRelatedByUserGroupId.add(tempcollUserUsergroupsRelatedByUserGroupId.get(i));
                }
                tempcollUserUsergroupsRelatedByUserGroupId = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserUsergroupPeer.USER_GROUP_ID, getUserId() );               
               if ( !lastUserUsergroupsRelatedByUserGroupIdCriteria.equals(criteria)  )
            {
                collUserUsergroupsRelatedByUserGroupId = UserUsergroupPeer.doSelect(criteria);  
            }
        }
        lastUserUsergroupsRelatedByUserGroupIdCriteria = criteria; 

        return collUserUsergroupsRelatedByUserGroupId;
    }
    

        
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserUsergroupsRelatedByUserGroupId from storage.
     */
    public Vector getUserUsergroupsRelatedByUserGroupIdJoinUserRelatedByUserId(Criteria criteria) 
        throws Exception
    {
        if (collUserUsergroupsRelatedByUserGroupId == null)
        {
            if ( isNew() ) 
            {
               collUserUsergroupsRelatedByUserGroupId = new Vector();       
            } 
            else
            {
                   criteria.add(UserUsergroupPeer.USER_GROUP_ID, getUserId() );               
                   collUserUsergroupsRelatedByUserGroupId = UserUsergroupPeer.doSelectJoinUserRelatedByUserId(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserUsergroupPeer.USER_GROUP_ID, getUserId() );               
               if ( !lastUserUsergroupsRelatedByUserGroupIdCriteria.equals(criteria)  )
            {
                collUserUsergroupsRelatedByUserGroupId = UserUsergroupPeer.doSelectJoinUserRelatedByUserId(criteria);
            }
        }
        lastUserUsergroupsRelatedByUserGroupIdCriteria = criteria; 

        return collUserUsergroupsRelatedByUserGroupId;
    }
      
      
         
              
                            
                
        
                        
      



             
      
    /**
     * Collection to store aggregation of collUserProjectInterests
     */
    private Vector collUserProjectInterests;
    /**
     * Temporary storage of collUserProjectInterests to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollUserProjectInterests;

    public void initUserProjectInterests()
    {
        if (collUserProjectInterests == null)
            collUserProjectInterests = new Vector();
    }

    /**
     * Method called to associate a UserProjectInterest object to this object
     * through the UserProjectInterest foreign key attribute
     *
     * @@param UserProjectInterest l
     */
    public void addUserProjectInterests(UserProjectInterest l) throws Exception
    {
        /*
        if (collUserProjectInterests == null)
        {
            if (tempcollUserProjectInterests == null)
            {
                tempcollUserProjectInterests = new Vector();
            }
            tempcollUserProjectInterests.add(l);
        }
        else
        {
            collUserProjectInterests.add(l);
        }
        */
        getUserProjectInterests().add(l);
        l.setUser((User)this);
    }

    /**
     * The criteria used to select the current contents of collUserProjectInterests
     */
    private Criteria lastUserProjectInterestsCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getUserProjectInterests(new Criteria())
     */
    public Vector getUserProjectInterests() throws Exception
    {
        if (collUserProjectInterests == null)
        {
            collUserProjectInterests = getUserProjectInterests(new Criteria(10));
        }
        return collUserProjectInterests;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserProjectInterests from storage.
     */
    public Vector getUserProjectInterests(Criteria criteria) throws Exception
    {
        if (collUserProjectInterests == null)
        {
            if ( isNew() ) 
            {
               collUserProjectInterests = new Vector();       
            } 
            else
            {
                   criteria.add(UserProjectInterestPeer.USER_ID, getUserId() );               
                   collUserProjectInterests = UserProjectInterestPeer.doSelect(criteria);
            }
/*
            if (tempcollUserProjectInterests != null)
            {
                for (int i=0; i<tempcollUserProjectInterests.size(); i++)
                {
                    collUserProjectInterests.add(tempcollUserProjectInterests.get(i));
                }
                tempcollUserProjectInterests = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserProjectInterestPeer.USER_ID, getUserId() );               
               if ( !lastUserProjectInterestsCriteria.equals(criteria)  )
            {
                collUserProjectInterests = UserProjectInterestPeer.doSelect(criteria);  
            }
        }
        lastUserProjectInterestsCriteria = criteria; 

        return collUserProjectInterests;
    }
    

        
      
         
          
                    
                
        
        
       
      
      
          
                    
                
        
        
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserProjectInterests from storage.
     */
    public Vector getUserProjectInterestsJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collUserProjectInterests == null)
        {
            if ( isNew() ) 
            {
               collUserProjectInterests = new Vector();       
            } 
            else
            {
                   criteria.add(UserProjectInterestPeer.USER_ID, getUserId() );               
                   collUserProjectInterests = UserProjectInterestPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserProjectInterestPeer.USER_ID, getUserId() );               
               if ( !lastUserProjectInterestsCriteria.equals(criteria)  )
            {
                collUserProjectInterests = UserProjectInterestPeer.doSelectJoinProject(criteria);
            }
        }
        lastUserProjectInterestsCriteria = criteria; 

        return collUserProjectInterests;
    }
     



                 
      
    /**
     * Collection to store aggregation of collUserRoleProjectsRelatedByUserId
     */
    private Vector collUserRoleProjectsRelatedByUserId;
    /**
     * Temporary storage of collUserRoleProjectsRelatedByUserId to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollUserRoleProjectsRelatedByUserId;

    public void initUserRoleProjectsRelatedByUserId()
    {
        if (collUserRoleProjectsRelatedByUserId == null)
            collUserRoleProjectsRelatedByUserId = new Vector();
    }

    /**
     * Method called to associate a UserRoleProject object to this object
     * through the UserRoleProject foreign key attribute
     *
     * @@param UserRoleProject l
     */
    public void addUserRoleProjectsRelatedByUserId(UserRoleProject l) throws Exception
    {
        /*
        if (collUserRoleProjectsRelatedByUserId == null)
        {
            if (tempcollUserRoleProjectsRelatedByUserId == null)
            {
                tempcollUserRoleProjectsRelatedByUserId = new Vector();
            }
            tempcollUserRoleProjectsRelatedByUserId.add(l);
        }
        else
        {
            collUserRoleProjectsRelatedByUserId.add(l);
        }
        */
        getUserRoleProjectsRelatedByUserId().add(l);
        l.setUserRelatedByUserId((User)this);
    }

    /**
     * The criteria used to select the current contents of collUserRoleProjectsRelatedByUserId
     */
    private Criteria lastUserRoleProjectsRelatedByUserIdCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getUserRoleProjectsRelatedByUserId(new Criteria())
     */
    public Vector getUserRoleProjectsRelatedByUserId() throws Exception
    {
        if (collUserRoleProjectsRelatedByUserId == null)
        {
            collUserRoleProjectsRelatedByUserId = getUserRoleProjectsRelatedByUserId(new Criteria(10));
        }
        return collUserRoleProjectsRelatedByUserId;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserRoleProjectsRelatedByUserId from storage.
     */
    public Vector getUserRoleProjectsRelatedByUserId(Criteria criteria) throws Exception
    {
        if (collUserRoleProjectsRelatedByUserId == null)
        {
            if ( isNew() ) 
            {
               collUserRoleProjectsRelatedByUserId = new Vector();       
            } 
            else
            {
                   criteria.add(UserRoleProjectPeer.USER_ID, getUserId() );               
                   collUserRoleProjectsRelatedByUserId = UserRoleProjectPeer.doSelect(criteria);
            }
/*
            if (tempcollUserRoleProjectsRelatedByUserId != null)
            {
                for (int i=0; i<tempcollUserRoleProjectsRelatedByUserId.size(); i++)
                {
                    collUserRoleProjectsRelatedByUserId.add(tempcollUserRoleProjectsRelatedByUserId.get(i));
                }
                tempcollUserRoleProjectsRelatedByUserId = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserRoleProjectPeer.USER_ID, getUserId() );               
               if ( !lastUserRoleProjectsRelatedByUserIdCriteria.equals(criteria)  )
            {
                collUserRoleProjectsRelatedByUserId = UserRoleProjectPeer.doSelect(criteria);  
            }
        }
        lastUserRoleProjectsRelatedByUserIdCriteria = criteria; 

        return collUserRoleProjectsRelatedByUserId;
    }
      

        
      
         
              
                            
                
        
                        
       
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserRoleProjectsRelatedByUserId from storage.
     */
    public Vector getUserRoleProjectsRelatedByUserIdJoinRole(Criteria criteria) 
        throws Exception
    {
        if (collUserRoleProjectsRelatedByUserId == null)
        {
            if ( isNew() ) 
            {
               collUserRoleProjectsRelatedByUserId = new Vector();       
            } 
            else
            {
                   criteria.add(UserRoleProjectPeer.USER_ID, getUserId() );               
                   collUserRoleProjectsRelatedByUserId = UserRoleProjectPeer.doSelectJoinRole(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserRoleProjectPeer.USER_ID, getUserId() );               
               if ( !lastUserRoleProjectsRelatedByUserIdCriteria.equals(criteria)  )
            {
                collUserRoleProjectsRelatedByUserId = UserRoleProjectPeer.doSelectJoinRole(criteria);
            }
        }
        lastUserRoleProjectsRelatedByUserIdCriteria = criteria; 

        return collUserRoleProjectsRelatedByUserId;
    }
      
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserRoleProjectsRelatedByUserId from storage.
     */
    public Vector getUserRoleProjectsRelatedByUserIdJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collUserRoleProjectsRelatedByUserId == null)
        {
            if ( isNew() ) 
            {
               collUserRoleProjectsRelatedByUserId = new Vector();       
            } 
            else
            {
                   criteria.add(UserRoleProjectPeer.USER_ID, getUserId() );               
                   collUserRoleProjectsRelatedByUserId = UserRoleProjectPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserRoleProjectPeer.USER_ID, getUserId() );               
               if ( !lastUserRoleProjectsRelatedByUserIdCriteria.equals(criteria)  )
            {
                collUserRoleProjectsRelatedByUserId = UserRoleProjectPeer.doSelectJoinProject(criteria);
            }
        }
        lastUserRoleProjectsRelatedByUserIdCriteria = criteria; 

        return collUserRoleProjectsRelatedByUserId;
    }
      
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserRoleProjectsRelatedByUserId from storage.
     */
    public Vector getUserRoleProjectsRelatedByUserIdJoinUserRelatedByApprovedBy(Criteria criteria) 
        throws Exception
    {
        if (collUserRoleProjectsRelatedByUserId == null)
        {
            if ( isNew() ) 
            {
               collUserRoleProjectsRelatedByUserId = new Vector();       
            } 
            else
            {
                   criteria.add(UserRoleProjectPeer.USER_ID, getUserId() );               
                   collUserRoleProjectsRelatedByUserId = UserRoleProjectPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserRoleProjectPeer.USER_ID, getUserId() );               
               if ( !lastUserRoleProjectsRelatedByUserIdCriteria.equals(criteria)  )
            {
                collUserRoleProjectsRelatedByUserId = UserRoleProjectPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
            }
        }
        lastUserRoleProjectsRelatedByUserIdCriteria = criteria; 

        return collUserRoleProjectsRelatedByUserId;
    }
     



                 
      
    /**
     * Collection to store aggregation of collUserRoleProjectsRelatedByApprovedBy
     */
    private Vector collUserRoleProjectsRelatedByApprovedBy;
    /**
     * Temporary storage of collUserRoleProjectsRelatedByApprovedBy to save a possible db hit in
     * the event objects are add to the collection, but the
     * complete collection is never requested.
     */
//    private Vector tempcollUserRoleProjectsRelatedByApprovedBy;

    public void initUserRoleProjectsRelatedByApprovedBy()
    {
        if (collUserRoleProjectsRelatedByApprovedBy == null)
            collUserRoleProjectsRelatedByApprovedBy = new Vector();
    }

    /**
     * Method called to associate a UserRoleProject object to this object
     * through the UserRoleProject foreign key attribute
     *
     * @@param UserRoleProject l
     */
    public void addUserRoleProjectsRelatedByApprovedBy(UserRoleProject l) throws Exception
    {
        /*
        if (collUserRoleProjectsRelatedByApprovedBy == null)
        {
            if (tempcollUserRoleProjectsRelatedByApprovedBy == null)
            {
                tempcollUserRoleProjectsRelatedByApprovedBy = new Vector();
            }
            tempcollUserRoleProjectsRelatedByApprovedBy.add(l);
        }
        else
        {
            collUserRoleProjectsRelatedByApprovedBy.add(l);
        }
        */
        getUserRoleProjectsRelatedByApprovedBy().add(l);
        l.setUserRelatedByApprovedBy((User)this);
    }

    /**
     * The criteria used to select the current contents of collUserRoleProjectsRelatedByApprovedBy
     */
    private Criteria lastUserRoleProjectsRelatedByApprovedByCriteria = null;

    /**
     * If this collection has already been initialized, returns
     * the collection. Otherwise returns the results of 
     * getUserRoleProjectsRelatedByApprovedBy(new Criteria())
     */
    public Vector getUserRoleProjectsRelatedByApprovedBy() throws Exception
    {
        if (collUserRoleProjectsRelatedByApprovedBy == null)
        {
            collUserRoleProjectsRelatedByApprovedBy = getUserRoleProjectsRelatedByApprovedBy(new Criteria(10));
        }
        return collUserRoleProjectsRelatedByApprovedBy;
    }

    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserRoleProjectsRelatedByApprovedBy from storage.
     */
    public Vector getUserRoleProjectsRelatedByApprovedBy(Criteria criteria) throws Exception
    {
        if (collUserRoleProjectsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collUserRoleProjectsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(UserRoleProjectPeer.APPROVED_BY, getUserId() );               
                   collUserRoleProjectsRelatedByApprovedBy = UserRoleProjectPeer.doSelect(criteria);
            }
/*
            if (tempcollUserRoleProjectsRelatedByApprovedBy != null)
            {
                for (int i=0; i<tempcollUserRoleProjectsRelatedByApprovedBy.size(); i++)
                {
                    collUserRoleProjectsRelatedByApprovedBy.add(tempcollUserRoleProjectsRelatedByApprovedBy.get(i));
                }
                tempcollUserRoleProjectsRelatedByApprovedBy = null;
            }
*/
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserRoleProjectPeer.APPROVED_BY, getUserId() );               
               if ( !lastUserRoleProjectsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collUserRoleProjectsRelatedByApprovedBy = UserRoleProjectPeer.doSelect(criteria);  
            }
        }
        lastUserRoleProjectsRelatedByApprovedByCriteria = criteria; 

        return collUserRoleProjectsRelatedByApprovedBy;
    }
      

        
      
         
              
                            
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserRoleProjectsRelatedByApprovedBy from storage.
     */
    public Vector getUserRoleProjectsRelatedByApprovedByJoinUserRelatedByUserId(Criteria criteria) 
        throws Exception
    {
        if (collUserRoleProjectsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collUserRoleProjectsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(UserRoleProjectPeer.APPROVED_BY, getUserId() );               
                   collUserRoleProjectsRelatedByApprovedBy = UserRoleProjectPeer.doSelectJoinUserRelatedByUserId(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserRoleProjectPeer.APPROVED_BY, getUserId() );               
               if ( !lastUserRoleProjectsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collUserRoleProjectsRelatedByApprovedBy = UserRoleProjectPeer.doSelectJoinUserRelatedByUserId(criteria);
            }
        }
        lastUserRoleProjectsRelatedByApprovedByCriteria = criteria; 

        return collUserRoleProjectsRelatedByApprovedBy;
    }
      
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserRoleProjectsRelatedByApprovedBy from storage.
     */
    public Vector getUserRoleProjectsRelatedByApprovedByJoinRole(Criteria criteria) 
        throws Exception
    {
        if (collUserRoleProjectsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collUserRoleProjectsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(UserRoleProjectPeer.APPROVED_BY, getUserId() );               
                   collUserRoleProjectsRelatedByApprovedBy = UserRoleProjectPeer.doSelectJoinRole(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserRoleProjectPeer.APPROVED_BY, getUserId() );               
               if ( !lastUserRoleProjectsRelatedByApprovedByCriteria.equals(criteria)  )
d757 1
a757 1
                collUserRoleProjectsRelatedByApprovedBy = UserRoleProjectPeer.doSelectJoinRole(criteria);
a759 54
        lastUserRoleProjectsRelatedByApprovedByCriteria = criteria; 

        return collUserRoleProjectsRelatedByApprovedBy;
    }
      
      
      
          
                    
                
        
                
   
    /**
     * If this collection has already been initialized with
     * an identical criteria, it returns the collection. 
     * Otherwise if this User is new, it will return
     * an empty collection; or if this User has previously
     * been saved, it will retrieve related UserRoleProjectsRelatedByApprovedBy from storage.
     */
    public Vector getUserRoleProjectsRelatedByApprovedByJoinProject(Criteria criteria) 
        throws Exception
    {
        if (collUserRoleProjectsRelatedByApprovedBy == null)
        {
            if ( isNew() ) 
            {
               collUserRoleProjectsRelatedByApprovedBy = new Vector();       
            } 
            else
            {
                   criteria.add(UserRoleProjectPeer.APPROVED_BY, getUserId() );               
                   collUserRoleProjectsRelatedByApprovedBy = UserRoleProjectPeer.doSelectJoinProject(criteria);
            }
            
            
        }
        else
        {
            // the following code is to determine if a new query is
            // called for.  If the criteria is the same as the last
            // one, just return the collection.
            boolean newCriteria = true;
                   criteria.add(UserRoleProjectPeer.APPROVED_BY, getUserId() );               
               if ( !lastUserRoleProjectsRelatedByApprovedByCriteria.equals(criteria)  )
            {
                collUserRoleProjectsRelatedByApprovedBy = UserRoleProjectPeer.doSelectJoinProject(criteria);
            }
        }
        lastUserRoleProjectsRelatedByApprovedByCriteria = criteria; 

        return collUserRoleProjectsRelatedByApprovedBy;
    }
      
a760 172
         
              
                            
                
        
                        
      



     
    
    private static Vector fieldNames_ = null;

    /**
     * Generate a list of field names.
     */
    public static Vector getFieldNames()
    {
      if (fieldNames_ == null)
      {
        fieldNames_ = new Vector();
            fieldNames_.add("UserId");
            fieldNames_.add("DomainId");
            fieldNames_.add("LoginName");
            fieldNames_.add("Password");
            fieldNames_.add("RealName");
            fieldNames_.add("Address1");
            fieldNames_.add("Address2");
            fieldNames_.add("City");
            fieldNames_.add("State");
            fieldNames_.add("Postalcode");
            fieldNames_.add("Country");
            fieldNames_.add("Citizenship");
            fieldNames_.add("Phone");
            fieldNames_.add("Altphone");
            fieldNames_.add("Fax");
            fieldNames_.add("Cell");
            fieldNames_.add("Pager");
            fieldNames_.add("Email");
            fieldNames_.add("Organization");
            fieldNames_.add("Modified");
            fieldNames_.add("Created");
            fieldNames_.add("Type");
            fieldNames_.add("PasswordTicket");
          }
      return fieldNames_;
    }

    /**
     * Retrieves a field from the object by name passed in
     * as a String.
     */
    public Object getByName(String name)
    {
            if (name.equals("UserId"))
	{
	  	    return new Integer(getUserId());
	  	}
            if (name.equals("DomainId"))
	{
	  	    return new Integer(getDomainId());
	  	}
            if (name.equals("LoginName"))
	{
	  	    return getLoginName();
	  	}
            if (name.equals("Password"))
	{
	  	    return getPassword();
	  	}
            if (name.equals("RealName"))
	{
	  	    return getRealName();
	  	}
            if (name.equals("Address1"))
	{
	  	    return getAddress1();
	  	}
            if (name.equals("Address2"))
	{
	  	    return getAddress2();
	  	}
            if (name.equals("City"))
	{
	  	    return getCity();
	  	}
            if (name.equals("State"))
	{
	  	    return getState();
	  	}
            if (name.equals("Postalcode"))
	{
	  	    return getPostalcode();
	  	}
            if (name.equals("Country"))
	{
	  	    return getCountry();
	  	}
            if (name.equals("Citizenship"))
	{
	  	    return getCitizenship();
	  	}
            if (name.equals("Phone"))
	{
	  	    return getPhone();
	  	}
            if (name.equals("Altphone"))
	{
	  	    return getAltphone();
	  	}
            if (name.equals("Fax"))
	{
	  	    return getFax();
	  	}
            if (name.equals("Cell"))
	{
	  	    return getCell();
	  	}
            if (name.equals("Pager"))
	{
	  	    return getPager();
	  	}
            if (name.equals("Email"))
	{
	  	    return getEmail();
	  	}
            if (name.equals("Organization"))
	{
	  	    return getOrganization();
	  	}
            if (name.equals("Modified"))
	{
	  	    return getModified();
	  	}
            if (name.equals("Created"))
	{
	  	    return getCreated();
	  	}
            if (name.equals("Type"))
	{
	  	    return getType();
	  	}
            if (name.equals("PasswordTicket"))
	{
	  	    return getPasswordTicket();
	  	}
            return null; 
    }
     	

    /**
     * Stores the object in the database.  If the object is new,
     * it inserts it; otherwise an update is performed.
     */
    public void save() throws Exception
    {
         DBConnection dbCon = null;
        try
        {
            dbCon = BasePeer.beginTransaction(
                UserPeer.getMapBuilder()
                .getDatabaseMap().getName());
            save(dbCon);
        }
        catch(Exception e)
        {
            BasePeer.rollBackTransaction(dbCon);
            throw e;
        }
        BasePeer.commitTransaction(dbCon);

a762 3
      // flag to prevent endless save loop, if this object is referenced
    // by another object which falls in this transaction.
    private boolean alreadyInSave = false;
a771 3
        if (!alreadyInSave)
      {
        alreadyInSave = true;
d785 2
a786 156
                                    
                
          if (collAuditLogEntrys != null )
          {
              for (int i=0; i<collAuditLogEntrys.size(); i++)
              {
                  ((AuditLogEntry)collAuditLogEntrys.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectsRelatedByProposedBy != null )
          {
              for (int i=0; i<collProjectsRelatedByProposedBy.size(); i++)
              {
                  ((Project)collProjectsRelatedByProposedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectsRelatedByApprovedBy.size(); i++)
              {
                  ((Project)collProjectsRelatedByApprovedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectDocumentsRelatedBySuggestedBy != null )
          {
              for (int i=0; i<collProjectDocumentsRelatedBySuggestedBy.size(); i++)
              {
                  ((ProjectDocument)collProjectDocumentsRelatedBySuggestedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectDocumentsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectDocumentsRelatedByApprovedBy.size(); i++)
              {
                  ((ProjectDocument)collProjectDocumentsRelatedByApprovedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectDownloadsRelatedBySuggestedBy != null )
          {
              for (int i=0; i<collProjectDownloadsRelatedBySuggestedBy.size(); i++)
              {
                  ((ProjectDownload)collProjectDownloadsRelatedBySuggestedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectDownloadsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectDownloadsRelatedByApprovedBy.size(); i++)
              {
                  ((ProjectDownload)collProjectDownloadsRelatedByApprovedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectNewssRelatedByProposedBy != null )
          {
              for (int i=0; i<collProjectNewssRelatedByProposedBy.size(); i++)
              {
                  ((ProjectNews)collProjectNewssRelatedByProposedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectNewssRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectNewssRelatedByApprovedBy.size(); i++)
              {
                  ((ProjectNews)collProjectNewssRelatedByApprovedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectSectionsRelatedBySuggestedBy != null )
          {
              for (int i=0; i<collProjectSectionsRelatedBySuggestedBy.size(); i++)
              {
                  ((ProjectSection)collProjectSectionsRelatedBySuggestedBy.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collProjectSectionsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collProjectSectionsRelatedByApprovedBy.size(); i++)
              {
                  ((ProjectSection)collProjectSectionsRelatedByApprovedBy.get(i)).save(dbCon);
              }
          }
                                        
                
          if (collTasks != null )
          {
              for (int i=0; i<collTasks.size(); i++)
              {
                  ((Task)collTasks.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collUserUsergroupsRelatedByUserId != null )
          {
              for (int i=0; i<collUserUsergroupsRelatedByUserId.size(); i++)
              {
                  ((UserUsergroup)collUserUsergroupsRelatedByUserId.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collUserUsergroupsRelatedByUserGroupId != null )
          {
              for (int i=0; i<collUserUsergroupsRelatedByUserGroupId.size(); i++)
              {
                  ((UserUsergroup)collUserUsergroupsRelatedByUserGroupId.get(i)).save(dbCon);
              }
          }
                                        
                
          if (collUserProjectInterests != null )
          {
              for (int i=0; i<collUserProjectInterests.size(); i++)
              {
                  ((UserProjectInterest)collUserProjectInterests.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collUserRoleProjectsRelatedByUserId != null )
          {
              for (int i=0; i<collUserRoleProjectsRelatedByUserId.size(); i++)
              {
                  ((UserRoleProject)collUserRoleProjectsRelatedByUserId.get(i)).save(dbCon);
              }
          }
                                                    
                
          if (collUserRoleProjectsRelatedByApprovedBy != null )
          {
              for (int i=0; i<collUserRoleProjectsRelatedByApprovedBy.size(); i++)
              {
                  ((UserRoleProject)collUserRoleProjectsRelatedByApprovedBy.get(i)).save(dbCon);
              }
          }
                  alreadyInSave = false;
      }
      }
a787 1
                                                                                                                            
d795 1
a795 1
                                                                                                                                                                                                                                                                                                     ) throws Exception
a832 2
      * It then fills all the association collections and sets the
     * related objects to isNew=true.
d861 1
a861 120
                                  
                
         List v = copyObj.getAuditLogEntrys();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectsRelatedByProposedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectsRelatedByApprovedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectDocumentsRelatedBySuggestedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectDocumentsRelatedByApprovedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectDownloadsRelatedBySuggestedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectDownloadsRelatedByApprovedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectNewssRelatedByProposedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectNewssRelatedByApprovedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectSectionsRelatedBySuggestedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getProjectSectionsRelatedByApprovedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                         
                
         v = copyObj.getTasks();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getUserUsergroupsRelatedByUserId();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getUserUsergroupsRelatedByUserGroupId();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                         
                
         v = copyObj.getUserProjectInterests();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getUserRoleProjectsRelatedByUserId();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
                                                     
                
         v = copyObj.getUserRoleProjectsRelatedByApprovedBy();
         for (int i=0; i<v.size(); i++)
         {
             ((BaseObject)v.get(i)).setNew(true);
         }
         
@


1.1.2.8
log
@Torque autogen files.
@
text
@d17 1
a17 4
 * This class was autogenerated by Torque on:
 *
 * [Thu Feb 08 17:56:55 PST 2001]
 *
@


1.1.2.9
log
@New Torque-generated classes.  NewsItem replaces ProjectNews.
@
text
@d19 1
a19 1
 * [Fri Feb 09 15:29:27 PST 2001]
d177 2
a178 2
          // update associated NewsItem
          if (collNewsItemsRelatedByProposedBy != null )
d180 1
a180 1
              for (int i=0; i<collNewsItemsRelatedByProposedBy.size(); i++)
d182 1
a182 1
                  ((NewsItem)collNewsItemsRelatedByProposedBy.get(i))
d189 2
a190 2
          // update associated NewsItem
          if (collNewsItemsRelatedByApprovedBy != null )
d192 1
a192 1
              for (int i=0; i<collNewsItemsRelatedByApprovedBy.size(); i++)
d194 1
a194 1
                  ((NewsItem)collNewsItemsRelatedByApprovedBy.get(i))
d2438 1
a2438 1
     * Collection to store aggregation of collNewsItemsRelatedByProposedBy
d2440 1
a2440 1
    private Vector collNewsItemsRelatedByProposedBy;
d2442 1
a2442 1
     * Temporary storage of collNewsItemsRelatedByProposedBy to save a possible db hit in
d2446 1
a2446 1
//    private Vector tempcollNewsItemsRelatedByProposedBy;
d2448 1
a2448 1
    public void initNewsItemsRelatedByProposedBy()
d2450 2
a2451 2
        if (collNewsItemsRelatedByProposedBy == null)
            collNewsItemsRelatedByProposedBy = new Vector();
d2455 2
a2456 2
     * Method called to associate a NewsItem object to this object
     * through the NewsItem foreign key attribute
d2458 1
a2458 1
     * @@param NewsItem l
d2460 1
a2460 1
    public void addNewsItemsRelatedByProposedBy(NewsItem l) throws Exception
d2463 1
a2463 1
        if (collNewsItemsRelatedByProposedBy == null)
d2465 1
a2465 1
            if (tempcollNewsItemsRelatedByProposedBy == null)
d2467 1
a2467 1
                tempcollNewsItemsRelatedByProposedBy = new Vector();
d2469 1
a2469 1
            tempcollNewsItemsRelatedByProposedBy.add(l);
d2473 1
a2473 1
            collNewsItemsRelatedByProposedBy.add(l);
d2476 1
a2476 1
        getNewsItemsRelatedByProposedBy().add(l);
d2481 1
a2481 1
     * The criteria used to select the current contents of collNewsItemsRelatedByProposedBy
d2483 1
a2483 1
    private Criteria lastNewsItemsRelatedByProposedByCriteria = null;
d2488 1
a2488 1
     * getNewsItemsRelatedByProposedBy(new Criteria())
d2490 1
a2490 1
    public Vector getNewsItemsRelatedByProposedBy() throws Exception
d2492 1
a2492 1
        if (collNewsItemsRelatedByProposedBy == null)
d2494 1
a2494 1
            collNewsItemsRelatedByProposedBy = getNewsItemsRelatedByProposedBy(new Criteria(10));
d2496 1
a2496 1
        return collNewsItemsRelatedByProposedBy;
d2504 1
a2504 1
     * been saved, it will retrieve related NewsItemsRelatedByProposedBy from storage.
d2506 1
a2506 1
    public Vector getNewsItemsRelatedByProposedBy(Criteria criteria) throws Exception
d2508 1
a2508 1
        if (collNewsItemsRelatedByProposedBy == null)
d2512 1
a2512 1
               collNewsItemsRelatedByProposedBy = new Vector();       
d2516 2
a2517 2
                   criteria.add(NewsItemPeer.PROPOSED_BY, getUserId() );               
                   collNewsItemsRelatedByProposedBy = NewsItemPeer.doSelect(criteria);
d2520 1
a2520 1
            if (tempcollNewsItemsRelatedByProposedBy != null)
d2522 1
a2522 1
                for (int i=0; i<tempcollNewsItemsRelatedByProposedBy.size(); i++)
d2524 1
a2524 1
                    collNewsItemsRelatedByProposedBy.add(tempcollNewsItemsRelatedByProposedBy.get(i));
d2526 1
a2526 1
                tempcollNewsItemsRelatedByProposedBy = null;
d2536 2
a2537 2
                   criteria.add(NewsItemPeer.PROPOSED_BY, getUserId() );               
               if ( !lastNewsItemsRelatedByProposedByCriteria.equals(criteria)  )
d2539 1
a2539 1
                collNewsItemsRelatedByProposedBy = NewsItemPeer.doSelect(criteria);  
d2542 1
a2542 1
        lastNewsItemsRelatedByProposedByCriteria = criteria; 
d2544 1
a2544 1
        return collNewsItemsRelatedByProposedBy;
d2562 1
a2562 1
     * been saved, it will retrieve related NewsItemsRelatedByProposedBy from storage.
d2564 1
a2564 1
    public Vector getNewsItemsRelatedByProposedByJoinProject(Criteria criteria) 
d2567 1
a2567 1
        if (collNewsItemsRelatedByProposedBy == null)
d2571 1
a2571 1
               collNewsItemsRelatedByProposedBy = new Vector();       
d2575 2
a2576 2
                   criteria.add(NewsItemPeer.PROPOSED_BY, getUserId() );               
                   collNewsItemsRelatedByProposedBy = NewsItemPeer.doSelectJoinProject(criteria);
d2587 2
a2588 2
                   criteria.add(NewsItemPeer.PROPOSED_BY, getUserId() );               
               if ( !lastNewsItemsRelatedByProposedByCriteria.equals(criteria)  )
d2590 1
a2590 1
                collNewsItemsRelatedByProposedBy = NewsItemPeer.doSelectJoinProject(criteria);
d2593 1
a2593 1
        lastNewsItemsRelatedByProposedByCriteria = criteria; 
d2595 1
a2595 1
        return collNewsItemsRelatedByProposedBy;
d2619 1
a2619 1
     * been saved, it will retrieve related NewsItemsRelatedByProposedBy from storage.
d2621 1
a2621 1
    public Vector getNewsItemsRelatedByProposedByJoinUserRelatedByApprovedBy(Criteria criteria) 
d2624 1
a2624 1
        if (collNewsItemsRelatedByProposedBy == null)
d2628 1
a2628 1
               collNewsItemsRelatedByProposedBy = new Vector();       
d2632 2
a2633 2
                   criteria.add(NewsItemPeer.PROPOSED_BY, getUserId() );               
                   collNewsItemsRelatedByProposedBy = NewsItemPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
d2644 2
a2645 2
                   criteria.add(NewsItemPeer.PROPOSED_BY, getUserId() );               
               if ( !lastNewsItemsRelatedByProposedByCriteria.equals(criteria)  )
d2647 1
a2647 1
                collNewsItemsRelatedByProposedBy = NewsItemPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
d2650 1
a2650 1
        lastNewsItemsRelatedByProposedByCriteria = criteria; 
d2652 1
a2652 1
        return collNewsItemsRelatedByProposedBy;
d2661 1
a2661 1
     * Collection to store aggregation of collNewsItemsRelatedByApprovedBy
d2663 1
a2663 1
    private Vector collNewsItemsRelatedByApprovedBy;
d2665 1
a2665 1
     * Temporary storage of collNewsItemsRelatedByApprovedBy to save a possible db hit in
d2669 1
a2669 1
//    private Vector tempcollNewsItemsRelatedByApprovedBy;
d2671 1
a2671 1
    public void initNewsItemsRelatedByApprovedBy()
d2673 2
a2674 2
        if (collNewsItemsRelatedByApprovedBy == null)
            collNewsItemsRelatedByApprovedBy = new Vector();
d2678 2
a2679 2
     * Method called to associate a NewsItem object to this object
     * through the NewsItem foreign key attribute
d2681 1
a2681 1
     * @@param NewsItem l
d2683 1
a2683 1
    public void addNewsItemsRelatedByApprovedBy(NewsItem l) throws Exception
d2686 1
a2686 1
        if (collNewsItemsRelatedByApprovedBy == null)
d2688 1
a2688 1
            if (tempcollNewsItemsRelatedByApprovedBy == null)
d2690 1
a2690 1
                tempcollNewsItemsRelatedByApprovedBy = new Vector();
d2692 1
a2692 1
            tempcollNewsItemsRelatedByApprovedBy.add(l);
d2696 1
a2696 1
            collNewsItemsRelatedByApprovedBy.add(l);
d2699 1
a2699 1
        getNewsItemsRelatedByApprovedBy().add(l);
d2704 1
a2704 1
     * The criteria used to select the current contents of collNewsItemsRelatedByApprovedBy
d2706 1
a2706 1
    private Criteria lastNewsItemsRelatedByApprovedByCriteria = null;
d2711 1
a2711 1
     * getNewsItemsRelatedByApprovedBy(new Criteria())
d2713 1
a2713 1
    public Vector getNewsItemsRelatedByApprovedBy() throws Exception
d2715 1
a2715 1
        if (collNewsItemsRelatedByApprovedBy == null)
d2717 1
a2717 1
            collNewsItemsRelatedByApprovedBy = getNewsItemsRelatedByApprovedBy(new Criteria(10));
d2719 1
a2719 1
        return collNewsItemsRelatedByApprovedBy;
d2727 1
a2727 1
     * been saved, it will retrieve related NewsItemsRelatedByApprovedBy from storage.
d2729 1
a2729 1
    public Vector getNewsItemsRelatedByApprovedBy(Criteria criteria) throws Exception
d2731 1
a2731 1
        if (collNewsItemsRelatedByApprovedBy == null)
d2735 1
a2735 1
               collNewsItemsRelatedByApprovedBy = new Vector();       
d2739 2
a2740 2
                   criteria.add(NewsItemPeer.APPROVED_BY, getUserId() );               
                   collNewsItemsRelatedByApprovedBy = NewsItemPeer.doSelect(criteria);
d2743 1
a2743 1
            if (tempcollNewsItemsRelatedByApprovedBy != null)
d2745 1
a2745 1
                for (int i=0; i<tempcollNewsItemsRelatedByApprovedBy.size(); i++)
d2747 1
a2747 1
                    collNewsItemsRelatedByApprovedBy.add(tempcollNewsItemsRelatedByApprovedBy.get(i));
d2749 1
a2749 1
                tempcollNewsItemsRelatedByApprovedBy = null;
d2759 2
a2760 2
                   criteria.add(NewsItemPeer.APPROVED_BY, getUserId() );               
               if ( !lastNewsItemsRelatedByApprovedByCriteria.equals(criteria)  )
d2762 1
a2762 1
                collNewsItemsRelatedByApprovedBy = NewsItemPeer.doSelect(criteria);  
d2765 1
a2765 1
        lastNewsItemsRelatedByApprovedByCriteria = criteria; 
d2767 1
a2767 1
        return collNewsItemsRelatedByApprovedBy;
d2785 1
a2785 1
     * been saved, it will retrieve related NewsItemsRelatedByApprovedBy from storage.
d2787 1
a2787 1
    public Vector getNewsItemsRelatedByApprovedByJoinProject(Criteria criteria) 
d2790 1
a2790 1
        if (collNewsItemsRelatedByApprovedBy == null)
d2794 1
a2794 1
               collNewsItemsRelatedByApprovedBy = new Vector();       
d2798 2
a2799 2
                   criteria.add(NewsItemPeer.APPROVED_BY, getUserId() );               
                   collNewsItemsRelatedByApprovedBy = NewsItemPeer.doSelectJoinProject(criteria);
d2810 2
a2811 2
                   criteria.add(NewsItemPeer.APPROVED_BY, getUserId() );               
               if ( !lastNewsItemsRelatedByApprovedByCriteria.equals(criteria)  )
d2813 1
a2813 1
                collNewsItemsRelatedByApprovedBy = NewsItemPeer.doSelectJoinProject(criteria);
d2816 1
a2816 1
        lastNewsItemsRelatedByApprovedByCriteria = criteria; 
d2818 1
a2818 1
        return collNewsItemsRelatedByApprovedBy;
d2834 1
a2834 1
     * been saved, it will retrieve related NewsItemsRelatedByApprovedBy from storage.
d2836 1
a2836 1
    public Vector getNewsItemsRelatedByApprovedByJoinUserRelatedByProposedBy(Criteria criteria) 
d2839 1
a2839 1
        if (collNewsItemsRelatedByApprovedBy == null)
d2843 1
a2843 1
               collNewsItemsRelatedByApprovedBy = new Vector();       
d2847 2
a2848 2
                   criteria.add(NewsItemPeer.APPROVED_BY, getUserId() );               
                   collNewsItemsRelatedByApprovedBy = NewsItemPeer.doSelectJoinUserRelatedByProposedBy(criteria);
d2859 2
a2860 2
                   criteria.add(NewsItemPeer.APPROVED_BY, getUserId() );               
               if ( !lastNewsItemsRelatedByApprovedByCriteria.equals(criteria)  )
d2862 1
a2862 1
                collNewsItemsRelatedByApprovedBy = NewsItemPeer.doSelectJoinUserRelatedByProposedBy(criteria);
d2865 1
a2865 1
        lastNewsItemsRelatedByApprovedByCriteria = criteria; 
d2867 1
a2867 1
        return collNewsItemsRelatedByApprovedBy;
d4791 1
a4791 1
          if (collNewsItemsRelatedByProposedBy != null )
d4793 1
a4793 1
              for (int i=0; i<collNewsItemsRelatedByProposedBy.size(); i++)
d4795 1
a4795 1
                  ((NewsItem)collNewsItemsRelatedByProposedBy.get(i)).save(dbCon);
d4800 1
a4800 1
          if (collNewsItemsRelatedByApprovedBy != null )
d4802 1
a4802 1
              for (int i=0; i<collNewsItemsRelatedByApprovedBy.size(); i++)
d4804 1
a4804 1
                  ((NewsItem)collNewsItemsRelatedByApprovedBy.get(i)).save(dbCon);
d5010 1
a5010 1
         v = copyObj.getNewsItemsRelatedByProposedBy();
d5017 1
a5017 1
         v = copyObj.getNewsItemsRelatedByApprovedBy();
@


1.1.2.10
log
@New Torque-generated classes.
@
text
@d19 1
a19 1
 * [Mon Feb 12 16:46:43 PST 2001]
d68 2
d130 1
a130 1
          if (collProjectDocumentsRelatedByProposedBy != null )
d132 1
a132 1
              for (int i=0; i<collProjectDocumentsRelatedByProposedBy.size(); i++)
d134 2
a135 2
                  ((ProjectDocument)collProjectDocumentsRelatedByProposedBy.get(i))
                      .setProposedBy(v);
d154 1
a154 1
          if (collProjectDownloadsRelatedByProposedBy != null )
d156 1
a156 1
              for (int i=0; i<collProjectDownloadsRelatedByProposedBy.size(); i++)
d158 2
a159 2
                  ((ProjectDownload)collProjectDownloadsRelatedByProposedBy.get(i))
                      .setProposedBy(v);
d202 1
a202 1
          if (collProjectSectionsRelatedByProposedBy != null )
d204 1
a204 1
              for (int i=0; i<collProjectSectionsRelatedByProposedBy.size(); i++)
d206 2
a207 2
                  ((ProjectSection)collProjectSectionsRelatedByProposedBy.get(i))
                      .setProposedBy(v);
d788 24
d1546 1
a1546 1
     * Collection to store aggregation of collProjectDocumentsRelatedByProposedBy
d1548 1
a1548 1
    private Vector collProjectDocumentsRelatedByProposedBy;
d1550 1
a1550 1
     * Temporary storage of collProjectDocumentsRelatedByProposedBy to save a possible db hit in
d1554 1
a1554 1
//    private Vector tempcollProjectDocumentsRelatedByProposedBy;
d1556 1
a1556 1
    public void initProjectDocumentsRelatedByProposedBy()
d1558 2
a1559 2
        if (collProjectDocumentsRelatedByProposedBy == null)
            collProjectDocumentsRelatedByProposedBy = new Vector();
d1568 1
a1568 1
    public void addProjectDocumentsRelatedByProposedBy(ProjectDocument l) throws Exception
d1571 1
a1571 1
        if (collProjectDocumentsRelatedByProposedBy == null)
d1573 1
a1573 1
            if (tempcollProjectDocumentsRelatedByProposedBy == null)
d1575 1
a1575 1
                tempcollProjectDocumentsRelatedByProposedBy = new Vector();
d1577 1
a1577 1
            tempcollProjectDocumentsRelatedByProposedBy.add(l);
d1581 1
a1581 1
            collProjectDocumentsRelatedByProposedBy.add(l);
d1584 2
a1585 2
        getProjectDocumentsRelatedByProposedBy().add(l);
        l.setUserRelatedByProposedBy((User)this);
d1589 1
a1589 1
     * The criteria used to select the current contents of collProjectDocumentsRelatedByProposedBy
d1591 1
a1591 1
    private Criteria lastProjectDocumentsRelatedByProposedByCriteria = null;
d1596 1
a1596 1
     * getProjectDocumentsRelatedByProposedBy(new Criteria())
d1598 1
a1598 1
    public Vector getProjectDocumentsRelatedByProposedBy() throws Exception
d1600 1
a1600 1
        if (collProjectDocumentsRelatedByProposedBy == null)
d1602 1
a1602 1
            collProjectDocumentsRelatedByProposedBy = getProjectDocumentsRelatedByProposedBy(new Criteria(10));
d1604 1
a1604 1
        return collProjectDocumentsRelatedByProposedBy;
d1612 1
a1612 1
     * been saved, it will retrieve related ProjectDocumentsRelatedByProposedBy from storage.
d1614 1
a1614 1
    public Vector getProjectDocumentsRelatedByProposedBy(Criteria criteria) throws Exception
d1616 1
a1616 1
        if (collProjectDocumentsRelatedByProposedBy == null)
d1620 1
a1620 1
               collProjectDocumentsRelatedByProposedBy = new Vector();       
d1624 2
a1625 2
                   criteria.add(ProjectDocumentPeer.PROPOSED_BY, getUserId() );               
                   collProjectDocumentsRelatedByProposedBy = ProjectDocumentPeer.doSelect(criteria);
d1628 1
a1628 1
            if (tempcollProjectDocumentsRelatedByProposedBy != null)
d1630 1
a1630 1
                for (int i=0; i<tempcollProjectDocumentsRelatedByProposedBy.size(); i++)
d1632 1
a1632 1
                    collProjectDocumentsRelatedByProposedBy.add(tempcollProjectDocumentsRelatedByProposedBy.get(i));
d1634 1
a1634 1
                tempcollProjectDocumentsRelatedByProposedBy = null;
d1644 2
a1645 2
                   criteria.add(ProjectDocumentPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedByProposedByCriteria.equals(criteria)  )
d1647 1
a1647 1
                collProjectDocumentsRelatedByProposedBy = ProjectDocumentPeer.doSelect(criteria);  
d1650 1
a1650 1
        lastProjectDocumentsRelatedByProposedByCriteria = criteria; 
d1652 1
a1652 1
        return collProjectDocumentsRelatedByProposedBy;
d1670 1
a1670 1
     * been saved, it will retrieve related ProjectDocumentsRelatedByProposedBy from storage.
d1672 1
a1672 1
    public Vector getProjectDocumentsRelatedByProposedByJoinProject(Criteria criteria) 
d1675 1
a1675 1
        if (collProjectDocumentsRelatedByProposedBy == null)
d1679 1
a1679 1
               collProjectDocumentsRelatedByProposedBy = new Vector();       
d1683 2
a1684 2
                   criteria.add(ProjectDocumentPeer.PROPOSED_BY, getUserId() );               
                   collProjectDocumentsRelatedByProposedBy = ProjectDocumentPeer.doSelectJoinProject(criteria);
d1695 2
a1696 2
                   criteria.add(ProjectDocumentPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedByProposedByCriteria.equals(criteria)  )
d1698 1
a1698 1
                collProjectDocumentsRelatedByProposedBy = ProjectDocumentPeer.doSelectJoinProject(criteria);
d1701 1
a1701 1
        lastProjectDocumentsRelatedByProposedByCriteria = criteria; 
d1703 1
a1703 1
        return collProjectDocumentsRelatedByProposedBy;
d1727 1
a1727 1
     * been saved, it will retrieve related ProjectDocumentsRelatedByProposedBy from storage.
d1729 1
a1729 1
    public Vector getProjectDocumentsRelatedByProposedByJoinUserRelatedByApprovedBy(Criteria criteria) 
d1732 1
a1732 1
        if (collProjectDocumentsRelatedByProposedBy == null)
d1736 1
a1736 1
               collProjectDocumentsRelatedByProposedBy = new Vector();       
d1740 2
a1741 2
                   criteria.add(ProjectDocumentPeer.PROPOSED_BY, getUserId() );               
                   collProjectDocumentsRelatedByProposedBy = ProjectDocumentPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
d1752 2
a1753 2
                   criteria.add(ProjectDocumentPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectDocumentsRelatedByProposedByCriteria.equals(criteria)  )
d1755 1
a1755 1
                collProjectDocumentsRelatedByProposedBy = ProjectDocumentPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
d1758 1
a1758 1
        lastProjectDocumentsRelatedByProposedByCriteria = criteria; 
d1760 1
a1760 1
        return collProjectDocumentsRelatedByProposedBy;
d1944 1
a1944 1
    public Vector getProjectDocumentsRelatedByApprovedByJoinUserRelatedByProposedBy(Criteria criteria) 
d1956 1
a1956 1
                   collProjectDocumentsRelatedByApprovedBy = ProjectDocumentPeer.doSelectJoinUserRelatedByProposedBy(criteria);
d1970 1
a1970 1
                collProjectDocumentsRelatedByApprovedBy = ProjectDocumentPeer.doSelectJoinUserRelatedByProposedBy(criteria);
d1992 1
a1992 1
     * Collection to store aggregation of collProjectDownloadsRelatedByProposedBy
d1994 1
a1994 1
    private Vector collProjectDownloadsRelatedByProposedBy;
d1996 1
a1996 1
     * Temporary storage of collProjectDownloadsRelatedByProposedBy to save a possible db hit in
d2000 1
a2000 1
//    private Vector tempcollProjectDownloadsRelatedByProposedBy;
d2002 1
a2002 1
    public void initProjectDownloadsRelatedByProposedBy()
d2004 2
a2005 2
        if (collProjectDownloadsRelatedByProposedBy == null)
            collProjectDownloadsRelatedByProposedBy = new Vector();
d2014 1
a2014 1
    public void addProjectDownloadsRelatedByProposedBy(ProjectDownload l) throws Exception
d2017 1
a2017 1
        if (collProjectDownloadsRelatedByProposedBy == null)
d2019 1
a2019 1
            if (tempcollProjectDownloadsRelatedByProposedBy == null)
d2021 1
a2021 1
                tempcollProjectDownloadsRelatedByProposedBy = new Vector();
d2023 1
a2023 1
            tempcollProjectDownloadsRelatedByProposedBy.add(l);
d2027 1
a2027 1
            collProjectDownloadsRelatedByProposedBy.add(l);
d2030 2
a2031 2
        getProjectDownloadsRelatedByProposedBy().add(l);
        l.setUserRelatedByProposedBy((User)this);
d2035 1
a2035 1
     * The criteria used to select the current contents of collProjectDownloadsRelatedByProposedBy
d2037 1
a2037 1
    private Criteria lastProjectDownloadsRelatedByProposedByCriteria = null;
d2042 1
a2042 1
     * getProjectDownloadsRelatedByProposedBy(new Criteria())
d2044 1
a2044 1
    public Vector getProjectDownloadsRelatedByProposedBy() throws Exception
d2046 1
a2046 1
        if (collProjectDownloadsRelatedByProposedBy == null)
d2048 1
a2048 1
            collProjectDownloadsRelatedByProposedBy = getProjectDownloadsRelatedByProposedBy(new Criteria(10));
d2050 1
a2050 1
        return collProjectDownloadsRelatedByProposedBy;
d2058 1
a2058 1
     * been saved, it will retrieve related ProjectDownloadsRelatedByProposedBy from storage.
d2060 1
a2060 1
    public Vector getProjectDownloadsRelatedByProposedBy(Criteria criteria) throws Exception
d2062 1
a2062 1
        if (collProjectDownloadsRelatedByProposedBy == null)
d2066 1
a2066 1
               collProjectDownloadsRelatedByProposedBy = new Vector();       
d2070 2
a2071 2
                   criteria.add(ProjectDownloadPeer.PROPOSED_BY, getUserId() );               
                   collProjectDownloadsRelatedByProposedBy = ProjectDownloadPeer.doSelect(criteria);
d2074 1
a2074 1
            if (tempcollProjectDownloadsRelatedByProposedBy != null)
d2076 1
a2076 1
                for (int i=0; i<tempcollProjectDownloadsRelatedByProposedBy.size(); i++)
d2078 1
a2078 1
                    collProjectDownloadsRelatedByProposedBy.add(tempcollProjectDownloadsRelatedByProposedBy.get(i));
d2080 1
a2080 1
                tempcollProjectDownloadsRelatedByProposedBy = null;
d2090 2
a2091 2
                   criteria.add(ProjectDownloadPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedByProposedByCriteria.equals(criteria)  )
d2093 1
a2093 1
                collProjectDownloadsRelatedByProposedBy = ProjectDownloadPeer.doSelect(criteria);  
d2096 1
a2096 1
        lastProjectDownloadsRelatedByProposedByCriteria = criteria; 
d2098 1
a2098 1
        return collProjectDownloadsRelatedByProposedBy;
d2116 1
a2116 1
     * been saved, it will retrieve related ProjectDownloadsRelatedByProposedBy from storage.
d2118 1
a2118 1
    public Vector getProjectDownloadsRelatedByProposedByJoinProject(Criteria criteria) 
d2121 1
a2121 1
        if (collProjectDownloadsRelatedByProposedBy == null)
d2125 1
a2125 1
               collProjectDownloadsRelatedByProposedBy = new Vector();       
d2129 2
a2130 2
                   criteria.add(ProjectDownloadPeer.PROPOSED_BY, getUserId() );               
                   collProjectDownloadsRelatedByProposedBy = ProjectDownloadPeer.doSelectJoinProject(criteria);
d2141 2
a2142 2
                   criteria.add(ProjectDownloadPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedByProposedByCriteria.equals(criteria)  )
d2144 1
a2144 1
                collProjectDownloadsRelatedByProposedBy = ProjectDownloadPeer.doSelectJoinProject(criteria);
d2147 1
a2147 1
        lastProjectDownloadsRelatedByProposedByCriteria = criteria; 
d2149 1
a2149 1
        return collProjectDownloadsRelatedByProposedBy;
d2173 1
a2173 1
     * been saved, it will retrieve related ProjectDownloadsRelatedByProposedBy from storage.
d2175 1
a2175 1
    public Vector getProjectDownloadsRelatedByProposedByJoinUserRelatedByApprovedBy(Criteria criteria) 
d2178 1
a2178 1
        if (collProjectDownloadsRelatedByProposedBy == null)
d2182 1
a2182 1
               collProjectDownloadsRelatedByProposedBy = new Vector();       
d2186 2
a2187 2
                   criteria.add(ProjectDownloadPeer.PROPOSED_BY, getUserId() );               
                   collProjectDownloadsRelatedByProposedBy = ProjectDownloadPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
d2198 2
a2199 2
                   criteria.add(ProjectDownloadPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectDownloadsRelatedByProposedByCriteria.equals(criteria)  )
d2201 1
a2201 1
                collProjectDownloadsRelatedByProposedBy = ProjectDownloadPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
d2204 1
a2204 1
        lastProjectDownloadsRelatedByProposedByCriteria = criteria; 
d2206 1
a2206 1
        return collProjectDownloadsRelatedByProposedBy;
d2390 1
a2390 1
    public Vector getProjectDownloadsRelatedByApprovedByJoinUserRelatedByProposedBy(Criteria criteria) 
d2402 1
a2402 1
                   collProjectDownloadsRelatedByApprovedBy = ProjectDownloadPeer.doSelectJoinUserRelatedByProposedBy(criteria);
d2416 1
a2416 1
                collProjectDownloadsRelatedByApprovedBy = ProjectDownloadPeer.doSelectJoinUserRelatedByProposedBy(criteria);
d2884 1
a2884 1
     * Collection to store aggregation of collProjectSectionsRelatedByProposedBy
d2886 1
a2886 1
    private Vector collProjectSectionsRelatedByProposedBy;
d2888 1
a2888 1
     * Temporary storage of collProjectSectionsRelatedByProposedBy to save a possible db hit in
d2892 1
a2892 1
//    private Vector tempcollProjectSectionsRelatedByProposedBy;
d2894 1
a2894 1
    public void initProjectSectionsRelatedByProposedBy()
d2896 2
a2897 2
        if (collProjectSectionsRelatedByProposedBy == null)
            collProjectSectionsRelatedByProposedBy = new Vector();
d2906 1
a2906 1
    public void addProjectSectionsRelatedByProposedBy(ProjectSection l) throws Exception
d2909 1
a2909 1
        if (collProjectSectionsRelatedByProposedBy == null)
d2911 1
a2911 1
            if (tempcollProjectSectionsRelatedByProposedBy == null)
d2913 1
a2913 1
                tempcollProjectSectionsRelatedByProposedBy = new Vector();
d2915 1
a2915 1
            tempcollProjectSectionsRelatedByProposedBy.add(l);
d2919 1
a2919 1
            collProjectSectionsRelatedByProposedBy.add(l);
d2922 2
a2923 2
        getProjectSectionsRelatedByProposedBy().add(l);
        l.setUserRelatedByProposedBy((User)this);
d2927 1
a2927 1
     * The criteria used to select the current contents of collProjectSectionsRelatedByProposedBy
d2929 1
a2929 1
    private Criteria lastProjectSectionsRelatedByProposedByCriteria = null;
d2934 1
a2934 1
     * getProjectSectionsRelatedByProposedBy(new Criteria())
d2936 1
a2936 1
    public Vector getProjectSectionsRelatedByProposedBy() throws Exception
d2938 1
a2938 1
        if (collProjectSectionsRelatedByProposedBy == null)
d2940 1
a2940 1
            collProjectSectionsRelatedByProposedBy = getProjectSectionsRelatedByProposedBy(new Criteria(10));
d2942 1
a2942 1
        return collProjectSectionsRelatedByProposedBy;
d2950 1
a2950 1
     * been saved, it will retrieve related ProjectSectionsRelatedByProposedBy from storage.
d2952 1
a2952 1
    public Vector getProjectSectionsRelatedByProposedBy(Criteria criteria) throws Exception
d2954 1
a2954 1
        if (collProjectSectionsRelatedByProposedBy == null)
d2958 1
a2958 1
               collProjectSectionsRelatedByProposedBy = new Vector();       
d2962 2
a2963 2
                   criteria.add(ProjectSectionPeer.PROPOSED_BY, getUserId() );               
                   collProjectSectionsRelatedByProposedBy = ProjectSectionPeer.doSelect(criteria);
d2966 1
a2966 1
            if (tempcollProjectSectionsRelatedByProposedBy != null)
d2968 1
a2968 1
                for (int i=0; i<tempcollProjectSectionsRelatedByProposedBy.size(); i++)
d2970 1
a2970 1
                    collProjectSectionsRelatedByProposedBy.add(tempcollProjectSectionsRelatedByProposedBy.get(i));
d2972 1
a2972 1
                tempcollProjectSectionsRelatedByProposedBy = null;
d2982 2
a2983 2
                   criteria.add(ProjectSectionPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedByProposedByCriteria.equals(criteria)  )
d2985 1
a2985 1
                collProjectSectionsRelatedByProposedBy = ProjectSectionPeer.doSelect(criteria);  
d2988 1
a2988 1
        lastProjectSectionsRelatedByProposedByCriteria = criteria; 
d2990 1
a2990 1
        return collProjectSectionsRelatedByProposedBy;
d3016 1
a3016 1
     * been saved, it will retrieve related ProjectSectionsRelatedByProposedBy from storage.
d3018 1
a3018 1
    public Vector getProjectSectionsRelatedByProposedByJoinProject(Criteria criteria) 
d3021 1
a3021 1
        if (collProjectSectionsRelatedByProposedBy == null)
d3025 1
a3025 1
               collProjectSectionsRelatedByProposedBy = new Vector();       
d3029 2
a3030 2
                   criteria.add(ProjectSectionPeer.PROPOSED_BY, getUserId() );               
                   collProjectSectionsRelatedByProposedBy = ProjectSectionPeer.doSelectJoinProject(criteria);
d3041 2
a3042 2
                   criteria.add(ProjectSectionPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedByProposedByCriteria.equals(criteria)  )
d3044 1
a3044 1
                collProjectSectionsRelatedByProposedBy = ProjectSectionPeer.doSelectJoinProject(criteria);
d3047 1
a3047 1
        lastProjectSectionsRelatedByProposedByCriteria = criteria; 
d3049 1
a3049 1
        return collProjectSectionsRelatedByProposedBy;
d3073 1
a3073 1
     * been saved, it will retrieve related ProjectSectionsRelatedByProposedBy from storage.
d3075 1
a3075 1
    public Vector getProjectSectionsRelatedByProposedByJoinUserRelatedByApprovedBy(Criteria criteria) 
d3078 1
a3078 1
        if (collProjectSectionsRelatedByProposedBy == null)
d3082 1
a3082 1
               collProjectSectionsRelatedByProposedBy = new Vector();       
d3086 2
a3087 2
                   criteria.add(ProjectSectionPeer.PROPOSED_BY, getUserId() );               
                   collProjectSectionsRelatedByProposedBy = ProjectSectionPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
d3098 2
a3099 2
                   criteria.add(ProjectSectionPeer.PROPOSED_BY, getUserId() );               
               if ( !lastProjectSectionsRelatedByProposedByCriteria.equals(criteria)  )
d3101 1
a3101 1
                collProjectSectionsRelatedByProposedBy = ProjectSectionPeer.doSelectJoinUserRelatedByApprovedBy(criteria);
d3104 1
a3104 1
        lastProjectSectionsRelatedByProposedByCriteria = criteria; 
d3106 1
a3106 1
        return collProjectSectionsRelatedByProposedBy;
d3298 1
a3298 1
    public Vector getProjectSectionsRelatedByApprovedByJoinUserRelatedByProposedBy(Criteria criteria) 
d3310 1
a3310 1
                   collProjectSectionsRelatedByApprovedBy = ProjectSectionPeer.doSelectJoinUserRelatedByProposedBy(criteria);
d3324 1
a3324 1
                collProjectSectionsRelatedByApprovedBy = ProjectSectionPeer.doSelectJoinUserRelatedByProposedBy(criteria);
d4567 1
d4663 4
d4755 1
a4755 1
          if (collProjectDocumentsRelatedByProposedBy != null )
d4757 1
a4757 1
              for (int i=0; i<collProjectDocumentsRelatedByProposedBy.size(); i++)
d4759 1
a4759 1
                  ((ProjectDocument)collProjectDocumentsRelatedByProposedBy.get(i)).save(dbCon);
d4773 1
a4773 1
          if (collProjectDownloadsRelatedByProposedBy != null )
d4775 1
a4775 1
              for (int i=0; i<collProjectDownloadsRelatedByProposedBy.size(); i++)
d4777 1
a4777 1
                  ((ProjectDownload)collProjectDownloadsRelatedByProposedBy.get(i)).save(dbCon);
d4809 1
a4809 1
          if (collProjectSectionsRelatedByProposedBy != null )
d4811 1
a4811 1
              for (int i=0; i<collProjectSectionsRelatedByProposedBy.size(); i++)
d4813 1
a4813 1
                  ((ProjectSection)collProjectSectionsRelatedByProposedBy.get(i)).save(dbCon);
d4883 1
a4883 1
                                                                                                                        
d4891 1
a4891 1
                                                                                                                                                                                                                                                                                         ) throws Exception
d4894 1
a4894 1
                                                                                                                                                                                                                                                                            }
d4903 1
a4903 1
                                                                                                                                                                                                                                                                                    }
d4914 1
a4914 1
                                                                                                                                                                                                                                                                                         ;
d4956 1
d4982 1
a4982 1
         v = copyObj.getProjectDocumentsRelatedByProposedBy();
d4996 1
a4996 1
         v = copyObj.getProjectDownloadsRelatedByProposedBy();
d5024 1
a5024 1
         v = copyObj.getProjectSectionsRelatedByProposedBy();
d5081 1
a5081 1
                                                                                                                                                              return copyObj;
@


1.1.2.11
log
@Latest Torque-generated code to handle inheritance based on values in a database field column.
@
text
@d19 1
a19 1
 * [Mon Feb 12 19:03:25 PST 2001]
a67 2
    /** the value for the type field */
    private String type;
a785 24
     * Get the Type
     * @@return String
     */
     public String getType()
     {
          return type;
     }

        
    /**
     * Set the value of Type
     */
     public void setType(String v ) 
     {
  
  

           if ( !ObjectUtils.equals(this.type, v) )
           {
              this.type = v;
              setModified(true);
          }
     }
    /**
a4540 1
            fieldNames_.add("Type");
a4635 4
            if (name.equals("Type"))
	{
	  	    return getType();
	  	}
d4852 1
a4852 1
                                                                                                                            
d4860 1
a4860 1
                                                                                                                                                                                                                                                                                                     ) throws Exception
d4863 1
a4863 1
                                                                                                                                                                                                                                                                                        }
d4872 1
a4872 1
                                                                                                                                                                                                                                                                                                }
d4883 1
a4883 1
                                                                                                                                                                                                                                                                                                     ;
a4924 1
         copyObj.setType(type);
d5049 1
a5049 1
                                                                                                                                                                     return copyObj;
@


1.1.2.12
log
@Deprecated by Torque modifications.
@
text
@@


