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

📄 baseportletdbentry.java

📁 jetspeed源代码
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
        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.     * 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(Criteria criteria,Connection con) throws TorqueException    {        if (collPortletParameters == null)        {            if (isNew())            {               collPortletParameters = new ArrayList();            }            else            {                       criteria.add(PortletParameterPeer.PORTLET_ID, getId() );                       collPortletParameters = PortletParameterPeer.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(PortletParameterPeer.PORTLET_ID, getId() );                     if (!lastPortletParametersCriteria.equals(criteria))                 {                     collPortletParameters = PortletParameterPeer.doSelect(criteria,con);                 }             }         }         lastPortletParametersCriteria = criteria;         return collPortletParameters;     }                                                                                                                                                                                                                                                                              /**     * 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 PortletParameters 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 getPortletParametersJoinPortletDbEntry(Criteria criteria)        throws TorqueException    {        if (collPortletParameters == null)        {            if (isNew())            {               collPortletParameters = new ArrayList();            }            else            {                            criteria.add(PortletParameterPeer.PORTLET_ID, getId() );                            collPortletParameters = PortletParameterPeer.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(PortletParameterPeer.PORTLET_ID, getId() );                        if (!lastPortletParametersCriteria.equals(criteria))            {                collPortletParameters = PortletParameterPeer.doSelectJoinPortletDbEntry(criteria);            }        }        lastPortletParametersCriteria = criteria;        return collPortletParameters;    }                                                                      /**     * Collection to store aggregation of collPortletMediatypes     */    protected List collPortletMediatypes;    /**     * Temporary storage of collPortletMediatypes to save a possible db hit in     * the event objects are add to the collection, but the     * complete collection is never requested.     */    protected void initPortletMediatypes()    {        if (collPortletMediatypes == null)        {            collPortletMediatypes = new ArrayList();        }    }                /**     * Method called to associate a PortletMediatype object to this object     * through the PortletMediatype foreign key attribute     *     * @param PortletMediatype l     */    public void addPortletMediatype(PortletMediatype l) throws TorqueException    {        getPortletMediatypes().add(l);        l.setPortletDbEntry((PortletDbEntry)this);    }    /**     * The criteria used to select the current contents of collPortletMediatypes     */    private Criteria lastPortletMediatypesCriteria = null;    /**     * If this collection has already been initialized, returns     * the collection. Otherwise returns the results of     * getPortletMediatypes(new Criteria())     */    public List getPortletMediatypes() throws TorqueException    {        if (collPortletMediatypes == null)        {            collPortletMediatypes = getPortletMediatypes(new Criteria(10));        }        return collPortletMediatypes;    }    /**     * 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 PortletMediatypes 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 getPortletMediatypes(Criteria criteria) throws TorqueException    {        if (collPortletMediatypes == null)        {            if (isNew())            {               collPortletMediatypes = new ArrayList();            }            else            {                      criteria.add(PortletMediatypePeer.ID, getId() );                      collPortletMediatypes = PortletMediatypePeer.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(PortletMediatypePeer.ID, getId() );                      if (!lastPortletMediatypesCriteria.equals(criteria))                {                    collPortletMediatypes = PortletMediatypePeer.doSelect(criteria);                }            }        }        lastPortletMediatypesCriteria = criteria;        return collPortletMediatypes;    }    /**     * If this collection has already been initialized, returns     * the collection. Otherwise returns the results of     * getPortletMediatypes(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 getPortletMediatypes(Connection con) throws TorqueException    {        if (collPortletMediatypes == null)        {            collPortletMediatypes = getPortletMediatypes(new Criteria(10),con);        }        return collPortletMediatypes;    }    /**     * 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 PortletMediatypes 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 getPortletMediatypes(Criteria criteria,Connection con) throws TorqueException    {        if (collPortletMediatypes == null)        {            if (isNew())            {               collPortletMediatypes = new ArrayList();            }            else            {                       criteria.add(PortletMediatypePeer.ID, getId() );                       collPortletMediatypes = PortletMediatypePeer.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(PortletMediatypePeer.ID, getId() );                     if (!lastPortletMediatypesCriteria.equals(criteria))                 {                     collPortletMediatypes = PortletMediatypePeer.doSelect(criteria,con);                 }             }         }         lastPortletMediatypesCriteria = criteria;         return collPortletMediatypes;     }                                                                                                                                                                                                                                                                                    /**     * 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 PortletMediatypes 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 getPortletMediatypesJoinPortletDbEntry(Criteria criteria)        throws TorqueException    {        if (collPortletMediatypes == null)        {            if (isNew())            {               collPortletMediatypes = new ArrayList();            }            else            {                            criteria.add(PortletMediatypePeer.ID, getId() );                            collPortletMediatypes = PortletMediatypePeer.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(PortletMediatypePeer.ID, getId() );                        if (!lastPortletMediatypesCriteria.equals(criteria))            {                collPortletMediatypes = PortletMediatypePeer.doSelectJoinPortletDbEntry(criteria);            }        }        lastPortletMediatypesCriteria = criteria;        return collPortletMediatypes;    }                                                                                                                                                                                                                                                      /**     * 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 PortletMediatypes 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 getPortletMediatypesJoinMediatype(Criteria criteria)        throws TorqueException    {        if (collPortletMediatypes == null)        {            if (isNew())            {               collPortletMediatypes = new ArrayList();            }            else            {                            criteria.add(PortletMediatypePeer.ID, getId() );                            collPortletMediatypes = PortletMediatypePeer.doSelectJoinMediatype(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(PortletMediatypePeer.ID, getId() );                        if (!lastPortletMediatypesCriteria.equals(criteria))            {                collPortletMediatypes = PortletMediatypePeer.doSelectJoinMediatype(criteria);            }        }        lastPortletMediatypesCriteria = criteria;        return collPortletMediatypes;    }                                          private static List fieldNames = null;    /**     * Generate a list of field names.     */    public static synchronized List getFieldNames()    {        if (fieldNames == null)        {            fieldNames = new ArrayList();              fieldNames.add("Id");              fieldNames.add("Name");              fieldNames.add("Hidden");              fieldNames.add("Classname");              fieldNames.add("Type");              fieldNames.add("Application");              fieldNames.add("ParentRef");              fieldNames.add("URL");              fieldNames.add("Cachedonurl");              fieldNames.add("Role");              fieldNames.add("Title");              fieldNames.add("Description");              fieldNames.add("Image");              fieldNames.add("SecurityRef");              fieldNames = Collections.unmodifiableList(fieldNames);        }        return fieldNames;    }

⌨️ 快捷键说明

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