⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 baseportletdbentry.java

📁 jetspeed源代码
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
     * @return String     */    public String getDescription()    {        return description;    }                            /**     * Set the value of Description     */    public void setDescription(String v )     {                      if (!ObjectUtils.equals(this.description, v))              {            this.description = v;            setModified(true);        }                            }      /**     * Get the Image     * @return String     */    public String getImage()    {        return image;    }                            /**     * Set the value of Image     */    public void setImage(String v )     {                      if (!ObjectUtils.equals(this.image, v))              {            this.image = v;            setModified(true);        }                            }      /**     * Get the SecurityRef     * @return String     */    public String getSecurityRef()    {        return securityRef;    }                            /**     * Set the value of SecurityRef     */    public void setSecurityRef(String v )     {                      if (!ObjectUtils.equals(this.securityRef, v))              {            this.securityRef = v;            setModified(true);        }                            }                                                           /**     * Collection to store aggregation of collPortletCategorys     */    protected List collPortletCategorys;    /**     * Temporary storage of collPortletCategorys to save a possible db hit in     * the event objects are add to the collection, but the     * complete collection is never requested.     */    protected void initPortletCategorys()    {        if (collPortletCategorys == null)        {            collPortletCategorys = new ArrayList();        }    }                /**     * Method called to associate a PortletCategory object to this object     * through the PortletCategory foreign key attribute     *     * @param PortletCategory l     */    public void addPortletCategory(PortletCategory l) throws TorqueException    {        getPortletCategorys().add(l);        l.setPortletDbEntry((PortletDbEntry)this);    }    /**     * The criteria used to select the current contents of collPortletCategorys     */    private Criteria lastPortletCategorysCriteria = null;    /**     * If this collection has already been initialized, returns     * the collection. Otherwise returns the results of     * getPortletCategorys(new Criteria())     */    public List getPortletCategorys() throws TorqueException    {        if (collPortletCategorys == null)        {            collPortletCategorys = getPortletCategorys(new Criteria(10));        }        return collPortletCategorys;    }    /**     * If this collection has already been initialized with     * an identical criteria, it returns the collection.     * Otherwise if this PortletDbEntry has previously     * been saved, it will retrieve related PortletCategorys from storage.     * If this PortletDbEntry is new, it will return     * an empty collection or the current collection, the criteria     * is ignored on a new object.     */    public List getPortletCategorys(Criteria criteria) throws TorqueException    {        if (collPortletCategorys == null)        {            if (isNew())            {               collPortletCategorys = new ArrayList();            }            else            {                      criteria.add(PortletCategoryPeer.OWNER, getId() );                      collPortletCategorys = PortletCategoryPeer.doSelect(criteria);            }        }        else        {            // criteria has no effect for a new object            if (!isNew())            {                // 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.                      criteria.add(PortletCategoryPeer.OWNER, getId() );                      if (!lastPortletCategorysCriteria.equals(criteria))                {                    collPortletCategorys = PortletCategoryPeer.doSelect(criteria);                }            }        }        lastPortletCategorysCriteria = criteria;        return collPortletCategorys;    }    /**     * If this collection has already been initialized, returns     * the collection. Otherwise returns the results of     * getPortletCategorys(new Criteria(),Connection)     * This method takes in the Connection also as input so that     * referenced objects can also be obtained using a Connection     * that is taken as input     */    public List getPortletCategorys(Connection con) throws TorqueException    {        if (collPortletCategorys == null)        {            collPortletCategorys = getPortletCategorys(new Criteria(10),con);        }        return collPortletCategorys;    }    /**     * If this collection has already been initialized with     * an identical criteria, it returns the collection.     * Otherwise if this PortletDbEntry has previously     * been saved, it will retrieve related PortletCategorys from storage.     * If this PortletDbEntry is new, it will return     * an empty collection or the current collection, the criteria     * is ignored on a new object.     * This method takes in the Connection also as input so that     * referenced objects can also be obtained using a Connection     * that is taken as input     */    public List getPortletCategorys(Criteria criteria,Connection con) throws TorqueException    {        if (collPortletCategorys == null)        {            if (isNew())            {               collPortletCategorys = new ArrayList();            }            else            {                       criteria.add(PortletCategoryPeer.OWNER, getId() );                       collPortletCategorys = PortletCategoryPeer.doSelect(criteria,con);             }         }         else         {             // criteria has no effect for a new object             if (!isNew())             {                 // 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.                     criteria.add(PortletCategoryPeer.OWNER, getId() );                     if (!lastPortletCategorysCriteria.equals(criteria))                 {                     collPortletCategorys = PortletCategoryPeer.doSelect(criteria,con);                 }             }         }         lastPortletCategorysCriteria = criteria;         return collPortletCategorys;     }                                                                                                                                                                                                                                                                              /**     * If this collection has already been initialized with     * an identical criteria, it returns the collection.     * Otherwise if this PortletDbEntry is new, it will return     * an empty collection; or if this PortletDbEntry has previously     * been saved, it will retrieve related PortletCategorys from storage.     *     * This method is protected by default in order to keep the public     * api reasonable.  You can provide public methods for those you     * actually need in PortletDbEntry.     */    protected List getPortletCategorysJoinPortletDbEntry(Criteria criteria)        throws TorqueException    {        if (collPortletCategorys == null)        {            if (isNew())            {               collPortletCategorys = new ArrayList();            }            else            {                            criteria.add(PortletCategoryPeer.OWNER, getId() );                            collPortletCategorys = PortletCategoryPeer.doSelectJoinPortletDbEntry(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(PortletCategoryPeer.OWNER, getId() );                        if (!lastPortletCategorysCriteria.equals(criteria))            {                collPortletCategorys = PortletCategoryPeer.doSelectJoinPortletDbEntry(criteria);            }        }        lastPortletCategorysCriteria = criteria;        return collPortletCategorys;    }                                                                      /**     * Collection to store aggregation of collPortletParameters     */    protected List collPortletParameters;    /**     * Temporary storage of collPortletParameters to save a possible db hit in     * the event objects are add to the collection, but the     * complete collection is never requested.     */    protected void initPortletParameters()    {        if (collPortletParameters == null)        {            collPortletParameters = new ArrayList();        }    }                /**     * Method called to associate a PortletParameter object to this object     * through the PortletParameter foreign key attribute     *     * @param PortletParameter l     */    public void addPortletParameter(PortletParameter l) throws TorqueException    {        getPortletParameters().add(l);        l.setPortletDbEntry((PortletDbEntry)this);    }    /**     * The criteria used to select the current contents of collPortletParameters     */    private Criteria lastPortletParametersCriteria = null;    /**     * If this collection has already been initialized, returns     * the collection. Otherwise returns the results of     * getPortletParameters(new Criteria())     */    public List getPortletParameters() throws TorqueException    {        if (collPortletParameters == null)        {            collPortletParameters = getPortletParameters(new Criteria(10));        }        return collPortletParameters;    }    /**     * If this collection has already been initialized with     * an identical criteria, it returns the collection.     * Otherwise if this PortletDbEntry has previously     * been saved, it will retrieve related PortletParameters from storage.     * If this PortletDbEntry is new, it will return     * an empty collection or the current collection, the criteria     * is ignored on a new object.     */    public List getPortletParameters(Criteria criteria) throws TorqueException    {        if (collPortletParameters == null)        {            if (isNew())            {               collPortletParameters = new ArrayList();            }            else            {                      criteria.add(PortletParameterPeer.PORTLET_ID, getId() );                      collPortletParameters = PortletParameterPeer.doSelect(criteria);            }        }        else        {            // criteria has no effect for a new object            if (!isNew())            {                // 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.                      criteria.add(PortletParameterPeer.PORTLET_ID, getId() );                      if (!lastPortletParametersCriteria.equals(criteria))                {                    collPortletParameters = PortletParameterPeer.doSelect(criteria);                }            }        }        lastPortletParametersCriteria = criteria;        return collPortletParameters;    }    /**     * If this collection has already been initialized, returns     * the collection. Otherwise returns the results of     * getPortletParameters(new Criteria(),Connection)     * This method takes in the Connection also as input so that     * referenced objects can also be obtained using a Connection     * that is taken as input     */    public List getPortletParameters(Connection con) throws TorqueException    {        if (collPortletParameters == null)        {            collPortletParameters = getPortletParameters(new Criteria(10),con);        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -