java.lang.Object
com.liferay.dynamic.data.mapping.service.persistence.DDMFieldUtil

public class DDMFieldUtil extends Object
The persistence utility for the ddm field service. This utility wraps com.liferay.dynamic.data.mapping.service.persistence.impl.DDMFieldPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Caches the ddm field in the entity cache if it is enabled.
    static void
    Caches the ddm fields in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(DDMField ddmField)
     
    static int
    Returns the number of ddm fields.
    static int
    countByC_F(long companyId, String fieldType)
    Returns the number of ddm fields where companyId = ? and fieldType = ?.
    static int
    countByS_F(long storageId, String fieldName)
    Returns the number of ddm fields where storageId = ? and fieldName = ?.
    static int
    countByS_I(long storageId, String instanceId)
    Returns the number of ddm fields where storageId = ? and instanceId = ?.
    static int
    countByStorageId(long storageId)
    Returns the number of ddm fields where storageId = ?.
    static int
    countByStructureVersionId(long structureVersionId)
    Returns the number of ddm fields where structureVersionId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static DDMField
    create(long fieldId)
    Creates a new ddm field with the primary key.
    static DDMField
    fetchByC_F_First(long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where companyId = ? and fieldType = ?.
    static DDMField
    fetchByC_F_Last(long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where companyId = ? and fieldType = ?.
    static DDMField
    fetchByPrimaryKey(long fieldId)
    Returns the ddm field with the primary key or returns null if it could not be found.
     
    static DDMField
    fetchByS_F_First(long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where storageId = ? and fieldName = ?.
    static DDMField
    fetchByS_F_Last(long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where storageId = ? and fieldName = ?.
    static DDMField
    fetchByS_I(long storageId, String instanceId)
    Returns the ddm field where storageId = ? and instanceId = ? or returns null if it could not be found.
    static DDMField
    fetchByS_I(long storageId, String instanceId, boolean useFinderCache)
    Returns the ddm field where storageId = ? and instanceId = ? or returns null if it could not be found, optionally using the finder cache.
    static DDMField
    fetchByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where storageId = ?.
    static DDMField
    fetchByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where storageId = ?.
    static DDMField
    fetchByStructureVersionId_First(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where structureVersionId = ?.
    static DDMField
    fetchByStructureVersionId_Last(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where structureVersionId = ?.
    static List<DDMField>
    Returns all the ddm fields.
    static List<DDMField>
    findAll(int start, int end)
    Returns a range of all the ddm fields.
    static List<DDMField>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns an ordered range of all the ddm fields.
    static List<DDMField>
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ddm fields.
    static List<DDMField>
    findByC_F(long companyId, String fieldType)
    Returns all the ddm fields where companyId = ? and fieldType = ?.
    static List<DDMField>
    findByC_F(long companyId, String fieldType, int start, int end)
    Returns a range of all the ddm fields where companyId = ? and fieldType = ?.
    static List<DDMField>
    findByC_F(long companyId, String fieldType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns an ordered range of all the ddm fields where companyId = ? and fieldType = ?.
    static List<DDMField>
    findByC_F(long companyId, String fieldType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ddm fields where companyId = ? and fieldType = ?.
    static DDMField
    findByC_F_First(long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where companyId = ? and fieldType = ?.
    static DDMField
    findByC_F_Last(long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where companyId = ? and fieldType = ?.
    static DDMField[]
    findByC_F_PrevAndNext(long fieldId, long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the ddm fields before and after the current ddm field in the ordered set where companyId = ? and fieldType = ?.
    static DDMField
    findByPrimaryKey(long fieldId)
    Returns the ddm field with the primary key or throws a NoSuchFieldException if it could not be found.
    static List<DDMField>
    findByS_F(long storageId, String fieldName)
    Returns all the ddm fields where storageId = ? and fieldName = ?.
    static List<DDMField>
    findByS_F(long storageId, String fieldName, int start, int end)
    Returns a range of all the ddm fields where storageId = ? and fieldName = ?.
    static List<DDMField>
    findByS_F(long storageId, String fieldName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns an ordered range of all the ddm fields where storageId = ? and fieldName = ?.
    static List<DDMField>
    findByS_F(long storageId, String fieldName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ddm fields where storageId = ? and fieldName = ?.
    static DDMField
    findByS_F_First(long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where storageId = ? and fieldName = ?.
    static DDMField
    findByS_F_Last(long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where storageId = ? and fieldName = ?.
    static DDMField[]
    findByS_F_PrevAndNext(long fieldId, long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the ddm fields before and after the current ddm field in the ordered set where storageId = ? and fieldName = ?.
    static DDMField
    findByS_I(long storageId, String instanceId)
    Returns the ddm field where storageId = ? and instanceId = ? or throws a NoSuchFieldException if it could not be found.
    static List<DDMField>
    findByStorageId(long storageId)
    Returns all the ddm fields where storageId = ?.
    static List<DDMField>
    findByStorageId(long storageId, int start, int end)
    Returns a range of all the ddm fields where storageId = ?.
    static List<DDMField>
    findByStorageId(long storageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns an ordered range of all the ddm fields where storageId = ?.
    static List<DDMField>
    findByStorageId(long storageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ddm fields where storageId = ?.
    static DDMField
    findByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where storageId = ?.
    static DDMField
    findByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where storageId = ?.
    static DDMField[]
    findByStorageId_PrevAndNext(long fieldId, long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the ddm fields before and after the current ddm field in the ordered set where storageId = ?.
    static List<DDMField>
    findByStructureVersionId(long structureVersionId)
    Returns all the ddm fields where structureVersionId = ?.
    static List<DDMField>
    findByStructureVersionId(long structureVersionId, int start, int end)
    Returns a range of all the ddm fields where structureVersionId = ?.
    static List<DDMField>
    findByStructureVersionId(long structureVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns an ordered range of all the ddm fields where structureVersionId = ?.
    static List<DDMField>
    findByStructureVersionId(long structureVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ddm fields where structureVersionId = ?.
    static DDMField
    findByStructureVersionId_First(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where structureVersionId = ?.
    static DDMField
    findByStructureVersionId_Last(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where structureVersionId = ?.
    static DDMField[]
    findByStructureVersionId_PrevAndNext(long fieldId, long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the ddm fields before and after the current ddm field in the ordered set where structureVersionId = ?.
    static List<DDMField>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    static List<DDMField>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    static List<DDMField>
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
     
     
    static DDMField
    remove(long fieldId)
    Removes the ddm field with the primary key from the database.
    static void
    Removes all the ddm fields from the database.
    static void
    removeByC_F(long companyId, String fieldType)
    Removes all the ddm fields where companyId = ? and fieldType = ? from the database.
    static void
    removeByS_F(long storageId, String fieldName)
    Removes all the ddm fields where storageId = ? and fieldName = ? from the database.
    static DDMField
    removeByS_I(long storageId, String instanceId)
    Removes the ddm field where storageId = ? and instanceId = ? from the database.
    static void
    removeByStorageId(long storageId)
    Removes all the ddm fields where storageId = ? from the database.
    static void
    removeByStructureVersionId(long structureVersionId)
    Removes all the ddm fields where structureVersionId = ? from the database.
    static void
     
    static DDMField
    update(DDMField ddmField)
     
    static DDMField
    update(DDMField ddmField, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    static DDMField
    updateImpl(DDMField ddmField)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DDMFieldUtil

      public DDMFieldUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(DDMField ddmField)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,DDMField> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<DDMField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<DDMField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<DDMField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static DDMField update(DDMField ddmField)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static DDMField update(DDMField ddmField, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByStorageId

      public static List<DDMField> findByStorageId(long storageId)
      Returns all the ddm fields where storageId = ?.
      Parameters:
      storageId - the storage ID
      Returns:
      the matching ddm fields
    • findByStorageId

      public static List<DDMField> findByStorageId(long storageId, int start, int end)
      Returns a range of all the ddm fields where storageId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      storageId - the storage ID
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      Returns:
      the range of matching ddm fields
    • findByStorageId

      public static List<DDMField> findByStorageId(long storageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns an ordered range of all the ddm fields where storageId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      storageId - the storage ID
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddm fields
    • findByStorageId

      public static List<DDMField> findByStorageId(long storageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm fields where storageId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      storageId - the storage ID
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching ddm fields
    • findByStorageId_First

      public static DDMField findByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the first ddm field in the ordered set where storageId = ?.
      Parameters:
      storageId - the storage ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByStorageId_First

      public static DDMField fetchByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns the first ddm field in the ordered set where storageId = ?.
      Parameters:
      storageId - the storage ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm field, or null if a matching ddm field could not be found
    • findByStorageId_Last

      public static DDMField findByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the last ddm field in the ordered set where storageId = ?.
      Parameters:
      storageId - the storage ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByStorageId_Last

      public static DDMField fetchByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns the last ddm field in the ordered set where storageId = ?.
      Parameters:
      storageId - the storage ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm field, or null if a matching ddm field could not be found
    • findByStorageId_PrevAndNext

      public static DDMField[] findByStorageId_PrevAndNext(long fieldId, long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the ddm fields before and after the current ddm field in the ordered set where storageId = ?.
      Parameters:
      fieldId - the primary key of the current ddm field
      storageId - the storage ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm field
      Throws:
      NoSuchFieldException - if a ddm field with the primary key could not be found
      NoSuchFieldException
    • removeByStorageId

      public static void removeByStorageId(long storageId)
      Removes all the ddm fields where storageId = ? from the database.
      Parameters:
      storageId - the storage ID
    • countByStorageId

      public static int countByStorageId(long storageId)
      Returns the number of ddm fields where storageId = ?.
      Parameters:
      storageId - the storage ID
      Returns:
      the number of matching ddm fields
    • findByStructureVersionId

      public static List<DDMField> findByStructureVersionId(long structureVersionId)
      Returns all the ddm fields where structureVersionId = ?.
      Parameters:
      structureVersionId - the structure version ID
      Returns:
      the matching ddm fields
    • findByStructureVersionId

      public static List<DDMField> findByStructureVersionId(long structureVersionId, int start, int end)
      Returns a range of all the ddm fields where structureVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      structureVersionId - the structure version ID
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      Returns:
      the range of matching ddm fields
    • findByStructureVersionId

      public static List<DDMField> findByStructureVersionId(long structureVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns an ordered range of all the ddm fields where structureVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      structureVersionId - the structure version ID
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddm fields
    • findByStructureVersionId

      public static List<DDMField> findByStructureVersionId(long structureVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm fields where structureVersionId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      structureVersionId - the structure version ID
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching ddm fields
    • findByStructureVersionId_First

      public static DDMField findByStructureVersionId_First(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the first ddm field in the ordered set where structureVersionId = ?.
      Parameters:
      structureVersionId - the structure version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByStructureVersionId_First

      public static DDMField fetchByStructureVersionId_First(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns the first ddm field in the ordered set where structureVersionId = ?.
      Parameters:
      structureVersionId - the structure version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm field, or null if a matching ddm field could not be found
    • findByStructureVersionId_Last

      public static DDMField findByStructureVersionId_Last(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the last ddm field in the ordered set where structureVersionId = ?.
      Parameters:
      structureVersionId - the structure version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByStructureVersionId_Last

      public static DDMField fetchByStructureVersionId_Last(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns the last ddm field in the ordered set where structureVersionId = ?.
      Parameters:
      structureVersionId - the structure version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm field, or null if a matching ddm field could not be found
    • findByStructureVersionId_PrevAndNext

      public static DDMField[] findByStructureVersionId_PrevAndNext(long fieldId, long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the ddm fields before and after the current ddm field in the ordered set where structureVersionId = ?.
      Parameters:
      fieldId - the primary key of the current ddm field
      structureVersionId - the structure version ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm field
      Throws:
      NoSuchFieldException - if a ddm field with the primary key could not be found
      NoSuchFieldException
    • removeByStructureVersionId

      public static void removeByStructureVersionId(long structureVersionId)
      Removes all the ddm fields where structureVersionId = ? from the database.
      Parameters:
      structureVersionId - the structure version ID
    • countByStructureVersionId

      public static int countByStructureVersionId(long structureVersionId)
      Returns the number of ddm fields where structureVersionId = ?.
      Parameters:
      structureVersionId - the structure version ID
      Returns:
      the number of matching ddm fields
    • findByC_F

      public static List<DDMField> findByC_F(long companyId, String fieldType)
      Returns all the ddm fields where companyId = ? and fieldType = ?.
      Parameters:
      companyId - the company ID
      fieldType - the field type
      Returns:
      the matching ddm fields
    • findByC_F

      public static List<DDMField> findByC_F(long companyId, String fieldType, int start, int end)
      Returns a range of all the ddm fields where companyId = ? and fieldType = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      companyId - the company ID
      fieldType - the field type
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      Returns:
      the range of matching ddm fields
    • findByC_F

      public static List<DDMField> findByC_F(long companyId, String fieldType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns an ordered range of all the ddm fields where companyId = ? and fieldType = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      companyId - the company ID
      fieldType - the field type
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddm fields
    • findByC_F

      public static List<DDMField> findByC_F(long companyId, String fieldType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm fields where companyId = ? and fieldType = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      companyId - the company ID
      fieldType - the field type
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching ddm fields
    • findByC_F_First

      public static DDMField findByC_F_First(long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the first ddm field in the ordered set where companyId = ? and fieldType = ?.
      Parameters:
      companyId - the company ID
      fieldType - the field type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByC_F_First

      public static DDMField fetchByC_F_First(long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns the first ddm field in the ordered set where companyId = ? and fieldType = ?.
      Parameters:
      companyId - the company ID
      fieldType - the field type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm field, or null if a matching ddm field could not be found
    • findByC_F_Last

      public static DDMField findByC_F_Last(long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the last ddm field in the ordered set where companyId = ? and fieldType = ?.
      Parameters:
      companyId - the company ID
      fieldType - the field type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByC_F_Last

      public static DDMField fetchByC_F_Last(long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns the last ddm field in the ordered set where companyId = ? and fieldType = ?.
      Parameters:
      companyId - the company ID
      fieldType - the field type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm field, or null if a matching ddm field could not be found
    • findByC_F_PrevAndNext

      public static DDMField[] findByC_F_PrevAndNext(long fieldId, long companyId, String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the ddm fields before and after the current ddm field in the ordered set where companyId = ? and fieldType = ?.
      Parameters:
      fieldId - the primary key of the current ddm field
      companyId - the company ID
      fieldType - the field type
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm field
      Throws:
      NoSuchFieldException - if a ddm field with the primary key could not be found
      NoSuchFieldException
    • removeByC_F

      public static void removeByC_F(long companyId, String fieldType)
      Removes all the ddm fields where companyId = ? and fieldType = ? from the database.
      Parameters:
      companyId - the company ID
      fieldType - the field type
    • countByC_F

      public static int countByC_F(long companyId, String fieldType)
      Returns the number of ddm fields where companyId = ? and fieldType = ?.
      Parameters:
      companyId - the company ID
      fieldType - the field type
      Returns:
      the number of matching ddm fields
    • findByS_F

      public static List<DDMField> findByS_F(long storageId, String fieldName)
      Returns all the ddm fields where storageId = ? and fieldName = ?.
      Parameters:
      storageId - the storage ID
      fieldName - the field name
      Returns:
      the matching ddm fields
    • findByS_F

      public static List<DDMField> findByS_F(long storageId, String fieldName, int start, int end)
      Returns a range of all the ddm fields where storageId = ? and fieldName = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      storageId - the storage ID
      fieldName - the field name
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      Returns:
      the range of matching ddm fields
    • findByS_F

      public static List<DDMField> findByS_F(long storageId, String fieldName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns an ordered range of all the ddm fields where storageId = ? and fieldName = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      storageId - the storage ID
      fieldName - the field name
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching ddm fields
    • findByS_F

      public static List<DDMField> findByS_F(long storageId, String fieldName, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm fields where storageId = ? and fieldName = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      storageId - the storage ID
      fieldName - the field name
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching ddm fields
    • findByS_F_First

      public static DDMField findByS_F_First(long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the first ddm field in the ordered set where storageId = ? and fieldName = ?.
      Parameters:
      storageId - the storage ID
      fieldName - the field name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByS_F_First

      public static DDMField fetchByS_F_First(long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns the first ddm field in the ordered set where storageId = ? and fieldName = ?.
      Parameters:
      storageId - the storage ID
      fieldName - the field name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching ddm field, or null if a matching ddm field could not be found
    • findByS_F_Last

      public static DDMField findByS_F_Last(long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the last ddm field in the ordered set where storageId = ? and fieldName = ?.
      Parameters:
      storageId - the storage ID
      fieldName - the field name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByS_F_Last

      public static DDMField fetchByS_F_Last(long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns the last ddm field in the ordered set where storageId = ? and fieldName = ?.
      Parameters:
      storageId - the storage ID
      fieldName - the field name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching ddm field, or null if a matching ddm field could not be found
    • findByS_F_PrevAndNext

      public static DDMField[] findByS_F_PrevAndNext(long fieldId, long storageId, String fieldName, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
      Returns the ddm fields before and after the current ddm field in the ordered set where storageId = ? and fieldName = ?.
      Parameters:
      fieldId - the primary key of the current ddm field
      storageId - the storage ID
      fieldName - the field name
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next ddm field
      Throws:
      NoSuchFieldException - if a ddm field with the primary key could not be found
      NoSuchFieldException
    • removeByS_F

      public static void removeByS_F(long storageId, String fieldName)
      Removes all the ddm fields where storageId = ? and fieldName = ? from the database.
      Parameters:
      storageId - the storage ID
      fieldName - the field name
    • countByS_F

      public static int countByS_F(long storageId, String fieldName)
      Returns the number of ddm fields where storageId = ? and fieldName = ?.
      Parameters:
      storageId - the storage ID
      fieldName - the field name
      Returns:
      the number of matching ddm fields
    • findByS_I

      public static DDMField findByS_I(long storageId, String instanceId) throws NoSuchFieldException
      Returns the ddm field where storageId = ? and instanceId = ? or throws a NoSuchFieldException if it could not be found.
      Parameters:
      storageId - the storage ID
      instanceId - the instance ID
      Returns:
      the matching ddm field
      Throws:
      NoSuchFieldException - if a matching ddm field could not be found
      NoSuchFieldException
    • fetchByS_I

      public static DDMField fetchByS_I(long storageId, String instanceId)
      Returns the ddm field where storageId = ? and instanceId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      storageId - the storage ID
      instanceId - the instance ID
      Returns:
      the matching ddm field, or null if a matching ddm field could not be found
    • fetchByS_I

      public static DDMField fetchByS_I(long storageId, String instanceId, boolean useFinderCache)
      Returns the ddm field where storageId = ? and instanceId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      storageId - the storage ID
      instanceId - the instance ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching ddm field, or null if a matching ddm field could not be found
    • removeByS_I

      public static DDMField removeByS_I(long storageId, String instanceId) throws NoSuchFieldException
      Removes the ddm field where storageId = ? and instanceId = ? from the database.
      Parameters:
      storageId - the storage ID
      instanceId - the instance ID
      Returns:
      the ddm field that was removed
      Throws:
      NoSuchFieldException
    • countByS_I

      public static int countByS_I(long storageId, String instanceId)
      Returns the number of ddm fields where storageId = ? and instanceId = ?.
      Parameters:
      storageId - the storage ID
      instanceId - the instance ID
      Returns:
      the number of matching ddm fields
    • cacheResult

      public static void cacheResult(DDMField ddmField)
      Caches the ddm field in the entity cache if it is enabled.
      Parameters:
      ddmField - the ddm field
    • cacheResult

      public static void cacheResult(List<DDMField> ddmFields)
      Caches the ddm fields in the entity cache if it is enabled.
      Parameters:
      ddmFields - the ddm fields
    • create

      public static DDMField create(long fieldId)
      Creates a new ddm field with the primary key. Does not add the ddm field to the database.
      Parameters:
      fieldId - the primary key for the new ddm field
      Returns:
      the new ddm field
    • remove

      public static DDMField remove(long fieldId) throws NoSuchFieldException
      Removes the ddm field with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      fieldId - the primary key of the ddm field
      Returns:
      the ddm field that was removed
      Throws:
      NoSuchFieldException - if a ddm field with the primary key could not be found
      NoSuchFieldException
    • updateImpl

      public static DDMField updateImpl(DDMField ddmField)
    • findByPrimaryKey

      public static DDMField findByPrimaryKey(long fieldId) throws NoSuchFieldException
      Returns the ddm field with the primary key or throws a NoSuchFieldException if it could not be found.
      Parameters:
      fieldId - the primary key of the ddm field
      Returns:
      the ddm field
      Throws:
      NoSuchFieldException - if a ddm field with the primary key could not be found
      NoSuchFieldException
    • fetchByPrimaryKey

      public static DDMField fetchByPrimaryKey(long fieldId)
      Returns the ddm field with the primary key or returns null if it could not be found.
      Parameters:
      fieldId - the primary key of the ddm field
      Returns:
      the ddm field, or null if a ddm field with the primary key could not be found
    • findAll

      public static List<DDMField> findAll()
      Returns all the ddm fields.
      Returns:
      the ddm fields
    • findAll

      public static List<DDMField> findAll(int start, int end)
      Returns a range of all the ddm fields.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      Returns:
      the range of ddm fields
    • findAll

      public static List<DDMField> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
      Returns an ordered range of all the ddm fields.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of ddm fields
    • findAll

      public static List<DDMField> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the ddm fields.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from DDMFieldModelImpl.

      Parameters:
      start - the lower bound of the range of ddm fields
      end - the upper bound of the range of ddm fields (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of ddm fields
    • removeAll

      public static void removeAll()
      Removes all the ddm fields from the database.
    • countAll

      public static int countAll()
      Returns the number of ddm fields.
      Returns:
      the number of ddm fields
    • getPersistence

      public static DDMFieldPersistence getPersistence()
    • setPersistence

      public static void setPersistence(DDMFieldPersistence persistence)