com.liferay.portal.service.persistence
Class ClassNameUtil

java.lang.Object
  extended bycom.liferay.portal.service.persistence.ClassNameUtil

public class ClassNameUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
ClassNameUtil()
           
 
Method Summary
static int countAll()
           
static int countByValue(java.lang.String value)
           
static com.liferay.portal.model.ClassName create(long classNameId)
           
static com.liferay.portal.model.ClassName fetchByPrimaryKey(long classNameId)
           
static com.liferay.portal.model.ClassName fetchByValue(java.lang.String value)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portal.model.ClassName findByPrimaryKey(long classNameId)
           
static com.liferay.portal.model.ClassName findByValue(java.lang.String value)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static ClassNamePersistence getPersistence()
           
static com.liferay.portal.model.ClassName remove(com.liferay.portal.model.ClassName className)
           
static com.liferay.portal.model.ClassName remove(long classNameId)
           
static void removeAll()
           
static void removeByValue(java.lang.String value)
           
 void setPersistence(ClassNamePersistence persistence)
           
static com.liferay.portal.model.ClassName update(com.liferay.portal.model.ClassName className)
           
static com.liferay.portal.model.ClassName update(com.liferay.portal.model.ClassName className, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassNameUtil

public ClassNameUtil()
Method Detail

create

public static com.liferay.portal.model.ClassName create(long classNameId)

remove

public static com.liferay.portal.model.ClassName remove(long classNameId)
                                                 throws com.liferay.portal.SystemException,
                                                        com.liferay.portal.NoSuchClassNameException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchClassNameException

remove

public static com.liferay.portal.model.ClassName remove(com.liferay.portal.model.ClassName className)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.ClassName update(com.liferay.portal.model.ClassName className)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portal.model.ClassName update(com.liferay.portal.model.ClassName className,
                                                        boolean merge)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portal.model.ClassName findByPrimaryKey(long classNameId)
                                                           throws com.liferay.portal.SystemException,
                                                                  com.liferay.portal.NoSuchClassNameException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchClassNameException

fetchByPrimaryKey

public static com.liferay.portal.model.ClassName fetchByPrimaryKey(long classNameId)
                                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByValue

public static com.liferay.portal.model.ClassName findByValue(java.lang.String value)
                                                      throws com.liferay.portal.SystemException,
                                                             com.liferay.portal.NoSuchClassNameException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchClassNameException

fetchByValue

public static com.liferay.portal.model.ClassName fetchByValue(java.lang.String value)
                                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByValue

public static void removeByValue(java.lang.String value)
                          throws com.liferay.portal.SystemException,
                                 com.liferay.portal.NoSuchClassNameException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchClassNameException

removeAll

public static void removeAll()
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByValue

public static int countByValue(java.lang.String value)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public static int countAll()
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getPersistence

public static ClassNamePersistence getPersistence()

setPersistence

public void setPersistence(ClassNamePersistence persistence)