public class DDMFieldAttributeUtil
extends java.lang.Object
com.liferay.dynamic.data.mapping.service.persistence.impl.DDMFieldAttributePersistenceImpl
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
DDMFieldAttributePersistence
Constructor and Description |
---|
DDMFieldAttributeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DDMFieldAttribute ddmFieldAttribute)
Caches the ddm field attribute in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DDMFieldAttribute> ddmFieldAttributes)
Caches the ddm field attributes in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(DDMFieldAttribute ddmFieldAttribute) |
static int |
countAll()
Returns the number of ddm field attributes.
|
static int |
countByAN_SAV(java.lang.String attributeName,
java.lang.String smallAttributeValue)
Returns the number of ddm field attributes where attributeName = ? and smallAttributeValue = ?.
|
static int |
countByF_AN_L(long fieldId,
java.lang.String attributeName,
java.lang.String languageId)
Returns the number of ddm field attributes where fieldId = ? and attributeName = ? and languageId = ?.
|
static int |
countByS_L(long storageId,
java.lang.String languageId)
Returns the number of ddm field attributes where storageId = ? and languageId = ?.
|
static int |
countByStorageId(long storageId)
Returns the number of ddm field attributes where storageId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static DDMFieldAttribute |
create(long fieldAttributeId)
Creates a new ddm field attribute with the primary key.
|
static DDMFieldAttribute |
fetchByAN_SAV_First(java.lang.String attributeName,
java.lang.String smallAttributeValue,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the first ddm field attribute in the ordered set where attributeName = ? and smallAttributeValue = ?.
|
static DDMFieldAttribute |
fetchByAN_SAV_Last(java.lang.String attributeName,
java.lang.String smallAttributeValue,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the last ddm field attribute in the ordered set where attributeName = ? and smallAttributeValue = ?.
|
static DDMFieldAttribute |
fetchByF_AN_L(long fieldId,
java.lang.String attributeName,
java.lang.String languageId)
Returns the ddm field attribute where fieldId = ? and attributeName = ? and languageId = ? or returns
null if it could not be found. |
static DDMFieldAttribute |
fetchByF_AN_L(long fieldId,
java.lang.String attributeName,
java.lang.String languageId,
boolean useFinderCache)
Returns the ddm field attribute where fieldId = ? and attributeName = ? and languageId = ? or returns
null if it could not be found, optionally using the finder cache. |
static DDMFieldAttribute |
fetchByPrimaryKey(long fieldAttributeId)
Returns the ddm field attribute with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,DDMFieldAttribute> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static DDMFieldAttribute |
fetchByS_L_First(long storageId,
java.lang.String languageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the first ddm field attribute in the ordered set where storageId = ? and languageId = ?.
|
static DDMFieldAttribute |
fetchByS_L_Last(long storageId,
java.lang.String languageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the last ddm field attribute in the ordered set where storageId = ? and languageId = ?.
|
static DDMFieldAttribute |
fetchByStorageId_First(long storageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the first ddm field attribute in the ordered set where storageId = ?.
|
static DDMFieldAttribute |
fetchByStorageId_Last(long storageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the last ddm field attribute in the ordered set where storageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findAll()
Returns all the ddm field attributes.
|
static java.util.List<DDMFieldAttribute> |
findAll(int start,
int end)
Returns a range of all the ddm field attributes.
|
static java.util.List<DDMFieldAttribute> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns an ordered range of all the ddm field attributes.
|
static java.util.List<DDMFieldAttribute> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddm field attributes.
|
static DDMFieldAttribute |
findByAN_SAV_First(java.lang.String attributeName,
java.lang.String smallAttributeValue,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the first ddm field attribute in the ordered set where attributeName = ? and smallAttributeValue = ?.
|
static DDMFieldAttribute |
findByAN_SAV_Last(java.lang.String attributeName,
java.lang.String smallAttributeValue,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the last ddm field attribute in the ordered set where attributeName = ? and smallAttributeValue = ?.
|
static DDMFieldAttribute[] |
findByAN_SAV_PrevAndNext(long fieldAttributeId,
java.lang.String attributeName,
java.lang.String smallAttributeValue,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the ddm field attributes before and after the current ddm field attribute in the ordered set where attributeName = ? and smallAttributeValue = ?.
|
static java.util.List<DDMFieldAttribute> |
findByAN_SAV(java.lang.String attributeName,
java.lang.String smallAttributeValue)
Returns all the ddm field attributes where attributeName = ? and smallAttributeValue = ?.
|
static java.util.List<DDMFieldAttribute> |
findByAN_SAV(java.lang.String attributeName,
java.lang.String smallAttributeValue,
int start,
int end)
Returns a range of all the ddm field attributes where attributeName = ? and smallAttributeValue = ?.
|
static java.util.List<DDMFieldAttribute> |
findByAN_SAV(java.lang.String attributeName,
java.lang.String smallAttributeValue,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns an ordered range of all the ddm field attributes where attributeName = ? and smallAttributeValue = ?.
|
static java.util.List<DDMFieldAttribute> |
findByAN_SAV(java.lang.String attributeName,
java.lang.String smallAttributeValue,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddm field attributes where attributeName = ? and smallAttributeValue = ?.
|
static DDMFieldAttribute |
findByF_AN_L(long fieldId,
java.lang.String attributeName,
java.lang.String languageId)
Returns the ddm field attribute where fieldId = ? and attributeName = ? and languageId = ? or throws a
NoSuchFieldAttributeException if it could not be found. |
static DDMFieldAttribute |
findByPrimaryKey(long fieldAttributeId)
Returns the ddm field attribute with the primary key or throws a
NoSuchFieldAttributeException if it could not be found. |
static DDMFieldAttribute |
findByS_L_First(long storageId,
java.lang.String languageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the first ddm field attribute in the ordered set where storageId = ? and languageId = ?.
|
static DDMFieldAttribute |
findByS_L_Last(long storageId,
java.lang.String languageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the last ddm field attribute in the ordered set where storageId = ? and languageId = ?.
|
static DDMFieldAttribute[] |
findByS_L_PrevAndNext(long fieldAttributeId,
long storageId,
java.lang.String languageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the ddm field attributes before and after the current ddm field attribute in the ordered set where storageId = ? and languageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findByS_L(long storageId,
java.lang.String languageId)
Returns all the ddm field attributes where storageId = ? and languageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findByS_L(long storageId,
java.lang.String languageId,
int start,
int end)
Returns a range of all the ddm field attributes where storageId = ? and languageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findByS_L(long storageId,
java.lang.String languageId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns an ordered range of all the ddm field attributes where storageId = ? and languageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findByS_L(long storageId,
java.lang.String languageId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddm field attributes where storageId = ? and languageId = ?.
|
static DDMFieldAttribute |
findByStorageId_First(long storageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the first ddm field attribute in the ordered set where storageId = ?.
|
static DDMFieldAttribute |
findByStorageId_Last(long storageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the last ddm field attribute in the ordered set where storageId = ?.
|
static DDMFieldAttribute[] |
findByStorageId_PrevAndNext(long fieldAttributeId,
long storageId,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns the ddm field attributes before and after the current ddm field attribute in the ordered set where storageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findByStorageId(long storageId)
Returns all the ddm field attributes where storageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findByStorageId(long storageId,
int start,
int end)
Returns a range of all the ddm field attributes where storageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findByStorageId(long storageId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
Returns an ordered range of all the ddm field attributes where storageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findByStorageId(long storageId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the ddm field attributes where storageId = ?.
|
static java.util.List<DDMFieldAttribute> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DDMFieldAttribute> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DDMFieldAttribute> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) |
static DDMFieldAttributePersistence |
getPersistence() |
static DDMFieldAttribute |
remove(long fieldAttributeId)
Removes the ddm field attribute with the primary key from the database.
|
static void |
removeAll()
Removes all the ddm field attributes from the database.
|
static void |
removeByAN_SAV(java.lang.String attributeName,
java.lang.String smallAttributeValue)
Removes all the ddm field attributes where attributeName = ? and smallAttributeValue = ? from the database.
|
static DDMFieldAttribute |
removeByF_AN_L(long fieldId,
java.lang.String attributeName,
java.lang.String languageId)
Removes the ddm field attribute where fieldId = ? and attributeName = ? and languageId = ? from the database.
|
static void |
removeByS_L(long storageId,
java.lang.String languageId)
Removes all the ddm field attributes where storageId = ? and languageId = ? from the database.
|
static void |
removeByStorageId(long storageId)
Removes all the ddm field attributes where storageId = ? from the database.
|
static DDMFieldAttribute |
update(DDMFieldAttribute ddmFieldAttribute) |
static DDMFieldAttribute |
update(DDMFieldAttribute ddmFieldAttribute,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDMFieldAttribute |
updateImpl(DDMFieldAttribute ddmFieldAttribute) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DDMFieldAttribute ddmFieldAttribute)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,DDMFieldAttribute> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DDMFieldAttribute> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DDMFieldAttribute> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DDMFieldAttribute> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DDMFieldAttribute update(DDMFieldAttribute ddmFieldAttribute)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DDMFieldAttribute update(DDMFieldAttribute ddmFieldAttribute, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DDMFieldAttribute> findByStorageId(long storageId)
storageId
- the storage IDpublic static java.util.List<DDMFieldAttribute> findByStorageId(long storageId, int start, int end)
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 DDMFieldAttributeModelImpl
.
storageId
- the storage IDstart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)public static java.util.List<DDMFieldAttribute> findByStorageId(long storageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
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 DDMFieldAttributeModelImpl
.
storageId
- the storage IDstart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMFieldAttribute> findByStorageId(long storageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator, boolean useFinderCache)
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 DDMFieldAttributeModelImpl
.
storageId
- the storage IDstart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMFieldAttribute findByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
storageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute fetchByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
storageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute findByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
storageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute fetchByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
storageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute[] findByStorageId_PrevAndNext(long fieldAttributeId, long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
fieldAttributeId
- the primary key of the current ddm field attributestorageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a ddm field attribute with the primary key could not be foundpublic static void removeByStorageId(long storageId)
storageId
- the storage IDpublic static int countByStorageId(long storageId)
storageId
- the storage IDpublic static java.util.List<DDMFieldAttribute> findByS_L(long storageId, java.lang.String languageId)
storageId
- the storage IDlanguageId
- the language IDpublic static java.util.List<DDMFieldAttribute> findByS_L(long storageId, java.lang.String languageId, int start, int end)
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 DDMFieldAttributeModelImpl
.
storageId
- the storage IDlanguageId
- the language IDstart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)public static java.util.List<DDMFieldAttribute> findByS_L(long storageId, java.lang.String languageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
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 DDMFieldAttributeModelImpl
.
storageId
- the storage IDlanguageId
- the language IDstart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMFieldAttribute> findByS_L(long storageId, java.lang.String languageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator, boolean useFinderCache)
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 DDMFieldAttributeModelImpl
.
storageId
- the storage IDlanguageId
- the language IDstart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMFieldAttribute findByS_L_First(long storageId, java.lang.String languageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
storageId
- the storage IDlanguageId
- the language IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute fetchByS_L_First(long storageId, java.lang.String languageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
storageId
- the storage IDlanguageId
- the language IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute findByS_L_Last(long storageId, java.lang.String languageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
storageId
- the storage IDlanguageId
- the language IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute fetchByS_L_Last(long storageId, java.lang.String languageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
storageId
- the storage IDlanguageId
- the language IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute[] findByS_L_PrevAndNext(long fieldAttributeId, long storageId, java.lang.String languageId, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
fieldAttributeId
- the primary key of the current ddm field attributestorageId
- the storage IDlanguageId
- the language IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a ddm field attribute with the primary key could not be foundpublic static void removeByS_L(long storageId, java.lang.String languageId)
storageId
- the storage IDlanguageId
- the language IDpublic static int countByS_L(long storageId, java.lang.String languageId)
storageId
- the storage IDlanguageId
- the language IDpublic static java.util.List<DDMFieldAttribute> findByAN_SAV(java.lang.String attributeName, java.lang.String smallAttributeValue)
attributeName
- the attribute namesmallAttributeValue
- the small attribute valuepublic static java.util.List<DDMFieldAttribute> findByAN_SAV(java.lang.String attributeName, java.lang.String smallAttributeValue, int start, int end)
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 DDMFieldAttributeModelImpl
.
attributeName
- the attribute namesmallAttributeValue
- the small attribute valuestart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)public static java.util.List<DDMFieldAttribute> findByAN_SAV(java.lang.String attributeName, java.lang.String smallAttributeValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
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 DDMFieldAttributeModelImpl
.
attributeName
- the attribute namesmallAttributeValue
- the small attribute valuestart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMFieldAttribute> findByAN_SAV(java.lang.String attributeName, java.lang.String smallAttributeValue, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator, boolean useFinderCache)
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 DDMFieldAttributeModelImpl
.
attributeName
- the attribute namesmallAttributeValue
- the small attribute valuestart
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static DDMFieldAttribute findByAN_SAV_First(java.lang.String attributeName, java.lang.String smallAttributeValue, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
attributeName
- the attribute namesmallAttributeValue
- the small attribute valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute fetchByAN_SAV_First(java.lang.String attributeName, java.lang.String smallAttributeValue, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
attributeName
- the attribute namesmallAttributeValue
- the small attribute valueorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute findByAN_SAV_Last(java.lang.String attributeName, java.lang.String smallAttributeValue, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
attributeName
- the attribute namesmallAttributeValue
- the small attribute valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute fetchByAN_SAV_Last(java.lang.String attributeName, java.lang.String smallAttributeValue, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
attributeName
- the attribute namesmallAttributeValue
- the small attribute valueorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute[] findByAN_SAV_PrevAndNext(long fieldAttributeId, java.lang.String attributeName, java.lang.String smallAttributeValue, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator) throws NoSuchFieldAttributeException
fieldAttributeId
- the primary key of the current ddm field attributeattributeName
- the attribute namesmallAttributeValue
- the small attribute valueorderByComparator
- the comparator to order the set by (optionally null
)NoSuchFieldAttributeException
- if a ddm field attribute with the primary key could not be foundpublic static void removeByAN_SAV(java.lang.String attributeName, java.lang.String smallAttributeValue)
attributeName
- the attribute namesmallAttributeValue
- the small attribute valuepublic static int countByAN_SAV(java.lang.String attributeName, java.lang.String smallAttributeValue)
attributeName
- the attribute namesmallAttributeValue
- the small attribute valuepublic static DDMFieldAttribute findByF_AN_L(long fieldId, java.lang.String attributeName, java.lang.String languageId) throws NoSuchFieldAttributeException
NoSuchFieldAttributeException
if it could not be found.fieldId
- the field IDattributeName
- the attribute namelanguageId
- the language IDNoSuchFieldAttributeException
- if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute fetchByF_AN_L(long fieldId, java.lang.String attributeName, java.lang.String languageId)
null
if it could not be found. Uses the finder cache.fieldId
- the field IDattributeName
- the attribute namelanguageId
- the language IDnull
if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute fetchByF_AN_L(long fieldId, java.lang.String attributeName, java.lang.String languageId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.fieldId
- the field IDattributeName
- the attribute namelanguageId
- the language IDuseFinderCache
- whether to use the finder cachenull
if a matching ddm field attribute could not be foundpublic static DDMFieldAttribute removeByF_AN_L(long fieldId, java.lang.String attributeName, java.lang.String languageId) throws NoSuchFieldAttributeException
fieldId
- the field IDattributeName
- the attribute namelanguageId
- the language IDNoSuchFieldAttributeException
public static int countByF_AN_L(long fieldId, java.lang.String attributeName, java.lang.String languageId)
fieldId
- the field IDattributeName
- the attribute namelanguageId
- the language IDpublic static void cacheResult(DDMFieldAttribute ddmFieldAttribute)
ddmFieldAttribute
- the ddm field attributepublic static void cacheResult(java.util.List<DDMFieldAttribute> ddmFieldAttributes)
ddmFieldAttributes
- the ddm field attributespublic static DDMFieldAttribute create(long fieldAttributeId)
fieldAttributeId
- the primary key for the new ddm field attributepublic static DDMFieldAttribute remove(long fieldAttributeId) throws NoSuchFieldAttributeException
fieldAttributeId
- the primary key of the ddm field attributeNoSuchFieldAttributeException
- if a ddm field attribute with the primary key could not be foundpublic static DDMFieldAttribute updateImpl(DDMFieldAttribute ddmFieldAttribute)
public static DDMFieldAttribute findByPrimaryKey(long fieldAttributeId) throws NoSuchFieldAttributeException
NoSuchFieldAttributeException
if it could not be found.fieldAttributeId
- the primary key of the ddm field attributeNoSuchFieldAttributeException
- if a ddm field attribute with the primary key could not be foundpublic static DDMFieldAttribute fetchByPrimaryKey(long fieldAttributeId)
null
if it could not be found.fieldAttributeId
- the primary key of the ddm field attributenull
if a ddm field attribute with the primary key could not be foundpublic static java.util.List<DDMFieldAttribute> findAll()
public static java.util.List<DDMFieldAttribute> findAll(int start, int end)
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 DDMFieldAttributeModelImpl
.
start
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)public static java.util.List<DDMFieldAttribute> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator)
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 DDMFieldAttributeModelImpl
.
start
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMFieldAttribute> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMFieldAttribute> orderByComparator, boolean useFinderCache)
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 DDMFieldAttributeModelImpl
.
start
- the lower bound of the range of ddm field attributesend
- the upper bound of the range of ddm field attributes (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static DDMFieldAttributePersistence getPersistence()