Interface DDMFieldPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DDMField>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMField>

@ProviderType public interface DDMFieldPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<DDMField>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DDMField>
The persistence interface for the ddm field service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Caches the ddm field in the entity cache if it is enabled.
    void
    Caches the ddm fields in the entity cache if it is enabled.
    int
    Returns the number of ddm fields.
    int
    countByC_F(long companyId, String fieldType)
    Returns the number of ddm fields where companyId = ? and fieldType = ?.
    int
    countByS_F(long storageId, String fieldName)
    Returns the number of ddm fields where storageId = ? and fieldName = ?.
    int
    countByS_I(long storageId, String instanceId)
    Returns the number of ddm fields where storageId = ? and instanceId = ?.
    int
    countByStorageId(long storageId)
    Returns the number of ddm fields where storageId = ?.
    int
    countByStructureVersionId(long structureVersionId)
    Returns the number of ddm fields where structureVersionId = ?.
    create(long fieldId)
    Creates a new ddm field with the primary key.
    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 = ?.
    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 = ?.
    fetchByPrimaryKey(long fieldId)
    Returns the ddm field with the primary key or returns null if it could not be found.
    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 = ?.
    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 = ?.
    fetchByS_I(long storageId, String instanceId)
    Returns the ddm field where storageId = ? and instanceId = ? or returns null if it could not be found.
    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.
    fetchByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where storageId = ?.
    fetchByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where storageId = ?.
    fetchByStructureVersionId_First(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where structureVersionId = ?.
    fetchByStructureVersionId_Last(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where structureVersionId = ?.
    Returns all the ddm fields.
    findAll(int start, int end)
    Returns a range of all the ddm fields.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns an ordered range of all the ddm fields.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the ddm fields.
    findByC_F(long companyId, String fieldType)
    Returns all the ddm fields where companyId = ? and fieldType = ?.
    findByC_F(long companyId, String fieldType, int start, int end)
    Returns a range of all the ddm fields where companyId = ? and fieldType = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByPrimaryKey(long fieldId)
    Returns the ddm field with the primary key or throws a NoSuchFieldException if it could not be found.
    findByS_F(long storageId, String fieldName)
    Returns all the ddm fields where storageId = ? and fieldName = ?.
    findByS_F(long storageId, String fieldName, int start, int end)
    Returns a range of all the ddm fields where storageId = ? and fieldName = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    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 = ?.
    findByS_I(long storageId, String instanceId)
    Returns the ddm field where storageId = ? and instanceId = ? or throws a NoSuchFieldException if it could not be found.
    findByStorageId(long storageId)
    Returns all the ddm fields where storageId = ?.
    findByStorageId(long storageId, int start, int end)
    Returns a range of all the ddm fields where storageId = ?.
    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 = ?.
    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 = ?.
    findByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where storageId = ?.
    findByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where storageId = ?.
    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 = ?.
    findByStructureVersionId(long structureVersionId)
    Returns all the ddm fields where structureVersionId = ?.
    findByStructureVersionId(long structureVersionId, int start, int end)
    Returns a range of all the ddm fields where structureVersionId = ?.
    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 = ?.
    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 = ?.
    findByStructureVersionId_First(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the first ddm field in the ordered set where structureVersionId = ?.
    findByStructureVersionId_Last(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
    Returns the last ddm field in the ordered set where structureVersionId = ?.
    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 = ?.
    remove(long fieldId)
    Removes the ddm field with the primary key from the database.
    void
    Removes all the ddm fields from the database.
    void
    removeByC_F(long companyId, String fieldType)
    Removes all the ddm fields where companyId = ? and fieldType = ? from the database.
    void
    removeByS_F(long storageId, String fieldName)
    Removes all the ddm fields where storageId = ? and fieldName = ? from the database.
    removeByS_I(long storageId, String instanceId)
    Removes the ddm field where storageId = ? and instanceId = ? from the database.
    void
    removeByStorageId(long storageId)
    Removes all the ddm fields where storageId = ? from the database.
    void
    removeByStructureVersionId(long structureVersionId)
    Removes all the ddm fields where structureVersionId = ? from the database.
    updateImpl(DDMField ddmField)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence

    getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
  • Method Details

    • findByStorageId

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

      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

      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

      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

      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
    • fetchByStorageId_First

      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

      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
    • fetchByStorageId_Last

      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

      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
    • removeByStorageId

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

      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

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

      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

      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

      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

      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
    • fetchByStructureVersionId_First

      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

      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
    • fetchByStructureVersionId_Last

      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

      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
    • removeByStructureVersionId

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

      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

      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

      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

      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

      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

      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
    • fetchByC_F_First

      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

      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
    • fetchByC_F_Last

      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

      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
    • removeByC_F

      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

      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

      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

      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

      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

      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

      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
    • fetchByS_F_First

      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

      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
    • fetchByS_F_Last

      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

      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
    • removeByS_F

      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

      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

      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
    • fetchByS_I

      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

      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

      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

      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

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

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

      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

      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
    • updateImpl

      DDMField updateImpl(DDMField ddmField)
    • findByPrimaryKey

      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
    • fetchByPrimaryKey

      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

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

      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

      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

      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

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

      int countAll()
      Returns the number of ddm fields.
      Returns:
      the number of ddm fields