public class DDMFieldUtil
extends java.lang.Object
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
DDMFieldPersistence
Constructor and Description |
---|
DDMFieldUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DDMField ddmField)
Caches the ddm field in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<DDMField> ddmFields)
Caches the ddm fields in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(DDMField ddmField) |
static int |
countAll()
Returns the number of ddm fields.
|
static int |
countByC_F(long companyId,
java.lang.String fieldType)
Returns the number of ddm fields where companyId = ? and fieldType = ?.
|
static int |
countByS_I(long storageId,
java.lang.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,
java.lang.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,
java.lang.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 java.util.Map<java.io.Serializable,DDMField> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static DDMField |
fetchByS_I(long storageId,
java.lang.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,
java.lang.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 java.util.List<DDMField> |
findAll()
Returns all the ddm fields.
|
static java.util.List<DDMField> |
findAll(int start,
int end)
Returns a range of all the ddm fields.
|
static java.util.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 java.util.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 DDMField |
findByC_F_First(long companyId,
java.lang.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,
java.lang.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,
java.lang.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 java.util.List<DDMField> |
findByC_F(long companyId,
java.lang.String fieldType)
Returns all the ddm fields where companyId = ? and fieldType = ?.
|
static java.util.List<DDMField> |
findByC_F(long companyId,
java.lang.String fieldType,
int start,
int end)
Returns a range of all the ddm fields where companyId = ? and fieldType = ?.
|
static java.util.List<DDMField> |
findByC_F(long companyId,
java.lang.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 java.util.List<DDMField> |
findByC_F(long companyId,
java.lang.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 |
findByPrimaryKey(long fieldId)
Returns the ddm field with the primary key or throws a
NoSuchFieldException if it could not be found. |
static DDMField |
findByS_I(long storageId,
java.lang.String instanceId)
Returns the ddm field where storageId = ? and instanceId = ? or throws a
NoSuchFieldException if it could not be found. |
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 java.util.List<DDMField> |
findByStorageId(long storageId)
Returns all the ddm fields where storageId = ?.
|
static java.util.List<DDMField> |
findByStorageId(long storageId,
int start,
int end)
Returns a range of all the ddm fields where storageId = ?.
|
static java.util.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 java.util.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 |
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 java.util.List<DDMField> |
findByStructureVersionId(long structureVersionId)
Returns all the ddm fields where structureVersionId = ?.
|
static java.util.List<DDMField> |
findByStructureVersionId(long structureVersionId,
int start,
int end)
Returns a range of all the ddm fields where structureVersionId = ?.
|
static java.util.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 java.util.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 java.util.List<DDMField> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<DDMField> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<DDMField> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) |
static DDMFieldPersistence |
getPersistence() |
static DDMField |
remove(long fieldId)
Removes the ddm field with the primary key from the database.
|
static void |
removeAll()
Removes all the ddm fields from the database.
|
static void |
removeByC_F(long companyId,
java.lang.String fieldType)
Removes all the ddm fields where companyId = ? and fieldType = ? from the database.
|
static DDMField |
removeByS_I(long storageId,
java.lang.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 DDMField |
update(DDMField ddmField) |
static DDMField |
update(DDMField ddmField,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static DDMField |
updateImpl(DDMField ddmField) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DDMField ddmField)
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,DDMField> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<DDMField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<DDMField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<DDMField> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static DDMField update(DDMField ddmField)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static DDMField update(DDMField ddmField, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<DDMField> findByStorageId(long storageId)
storageId
- the storage IDpublic static java.util.List<DDMField> 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 DDMFieldModelImpl
.
storageId
- the storage IDstart
- the lower bound of the range of ddm fieldsend
- the upper bound of the range of ddm fields (not inclusive)public static java.util.List<DDMField> findByStorageId(long storageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> 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 DDMFieldModelImpl
.
storageId
- the storage IDstart
- the lower bound of the range of ddm fieldsend
- the upper bound of the range of ddm fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMField> findByStorageId(long storageId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> 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 DDMFieldModelImpl
.
storageId
- the storage IDstart
- the lower bound of the range of ddm fieldsend
- 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 cachepublic static DDMField findByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
storageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a matching ddm field could not be foundNoSuchFieldException
public static DDMField fetchByStorageId_First(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
storageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field could not be foundpublic static DDMField findByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
storageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a matching ddm field could not be foundNoSuchFieldException
public static DDMField fetchByStorageId_Last(long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
storageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field could not be foundpublic static DDMField[] findByStorageId_PrevAndNext(long fieldId, long storageId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
fieldId
- the primary key of the current ddm fieldstorageId
- the storage IDorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a ddm field with the primary key could not be foundNoSuchFieldException
public static void removeByStorageId(long storageId)
storageId
- the storage IDpublic static int countByStorageId(long storageId)
storageId
- the storage IDpublic static java.util.List<DDMField> findByStructureVersionId(long structureVersionId)
structureVersionId
- the structure version IDpublic static java.util.List<DDMField> findByStructureVersionId(long structureVersionId, 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 DDMFieldModelImpl
.
structureVersionId
- the structure version IDstart
- the lower bound of the range of ddm fieldsend
- the upper bound of the range of ddm fields (not inclusive)public static java.util.List<DDMField> findByStructureVersionId(long structureVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> 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 DDMFieldModelImpl
.
structureVersionId
- the structure version IDstart
- the lower bound of the range of ddm fieldsend
- the upper bound of the range of ddm fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMField> findByStructureVersionId(long structureVersionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> 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 DDMFieldModelImpl
.
structureVersionId
- the structure version IDstart
- the lower bound of the range of ddm fieldsend
- 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 cachepublic static DDMField findByStructureVersionId_First(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
structureVersionId
- the structure version IDorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a matching ddm field could not be foundNoSuchFieldException
public static DDMField fetchByStructureVersionId_First(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
structureVersionId
- the structure version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field could not be foundpublic static DDMField findByStructureVersionId_Last(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
structureVersionId
- the structure version IDorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a matching ddm field could not be foundNoSuchFieldException
public static DDMField fetchByStructureVersionId_Last(long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
structureVersionId
- the structure version IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field could not be foundpublic static DDMField[] findByStructureVersionId_PrevAndNext(long fieldId, long structureVersionId, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
fieldId
- the primary key of the current ddm fieldstructureVersionId
- the structure version IDorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a ddm field with the primary key could not be foundNoSuchFieldException
public static void removeByStructureVersionId(long structureVersionId)
structureVersionId
- the structure version IDpublic static int countByStructureVersionId(long structureVersionId)
structureVersionId
- the structure version IDpublic static java.util.List<DDMField> findByC_F(long companyId, java.lang.String fieldType)
companyId
- the company IDfieldType
- the field typepublic static java.util.List<DDMField> findByC_F(long companyId, java.lang.String fieldType, 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 DDMFieldModelImpl
.
companyId
- the company IDfieldType
- the field typestart
- the lower bound of the range of ddm fieldsend
- the upper bound of the range of ddm fields (not inclusive)public static java.util.List<DDMField> findByC_F(long companyId, java.lang.String fieldType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> 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 DDMFieldModelImpl
.
companyId
- the company IDfieldType
- the field typestart
- the lower bound of the range of ddm fieldsend
- the upper bound of the range of ddm fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMField> findByC_F(long companyId, java.lang.String fieldType, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> 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 DDMFieldModelImpl
.
companyId
- the company IDfieldType
- the field typestart
- the lower bound of the range of ddm fieldsend
- 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 cachepublic static DDMField findByC_F_First(long companyId, java.lang.String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
companyId
- the company IDfieldType
- the field typeorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a matching ddm field could not be foundNoSuchFieldException
public static DDMField fetchByC_F_First(long companyId, java.lang.String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
companyId
- the company IDfieldType
- the field typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field could not be foundpublic static DDMField findByC_F_Last(long companyId, java.lang.String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
companyId
- the company IDfieldType
- the field typeorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a matching ddm field could not be foundNoSuchFieldException
public static DDMField fetchByC_F_Last(long companyId, java.lang.String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator)
companyId
- the company IDfieldType
- the field typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching ddm field could not be foundpublic static DDMField[] findByC_F_PrevAndNext(long fieldId, long companyId, java.lang.String fieldType, com.liferay.portal.kernel.util.OrderByComparator<DDMField> orderByComparator) throws NoSuchFieldException
fieldId
- the primary key of the current ddm fieldcompanyId
- the company IDfieldType
- the field typeorderByComparator
- the comparator to order the set by (optionally null
)java.lang.NoSuchFieldException
- if a ddm field with the primary key could not be foundNoSuchFieldException
public static void removeByC_F(long companyId, java.lang.String fieldType)
companyId
- the company IDfieldType
- the field typepublic static int countByC_F(long companyId, java.lang.String fieldType)
companyId
- the company IDfieldType
- the field typepublic static DDMField findByS_I(long storageId, java.lang.String instanceId) throws NoSuchFieldException
NoSuchFieldException
if it could not be found.storageId
- the storage IDinstanceId
- the instance IDjava.lang.NoSuchFieldException
- if a matching ddm field could not be foundNoSuchFieldException
public static DDMField fetchByS_I(long storageId, java.lang.String instanceId)
null
if it could not be found. Uses the finder cache.storageId
- the storage IDinstanceId
- the instance IDnull
if a matching ddm field could not be foundpublic static DDMField fetchByS_I(long storageId, java.lang.String instanceId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.storageId
- the storage IDinstanceId
- the instance IDuseFinderCache
- whether to use the finder cachenull
if a matching ddm field could not be foundpublic static DDMField removeByS_I(long storageId, java.lang.String instanceId) throws NoSuchFieldException
storageId
- the storage IDinstanceId
- the instance IDNoSuchFieldException
public static int countByS_I(long storageId, java.lang.String instanceId)
storageId
- the storage IDinstanceId
- the instance IDpublic static void cacheResult(DDMField ddmField)
ddmField
- the ddm fieldpublic static void cacheResult(java.util.List<DDMField> ddmFields)
ddmFields
- the ddm fieldspublic static DDMField create(long fieldId)
fieldId
- the primary key for the new ddm fieldpublic static DDMField remove(long fieldId) throws NoSuchFieldException
fieldId
- the primary key of the ddm fieldjava.lang.NoSuchFieldException
- if a ddm field with the primary key could not be foundNoSuchFieldException
public static DDMField findByPrimaryKey(long fieldId) throws NoSuchFieldException
NoSuchFieldException
if it could not be found.fieldId
- the primary key of the ddm fieldjava.lang.NoSuchFieldException
- if a ddm field with the primary key could not be foundNoSuchFieldException
public static DDMField fetchByPrimaryKey(long fieldId)
null
if it could not be found.fieldId
- the primary key of the ddm fieldnull
if a ddm field with the primary key could not be foundpublic static java.util.List<DDMField> findAll()
public static java.util.List<DDMField> 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 DDMFieldModelImpl
.
start
- the lower bound of the range of ddm fieldsend
- the upper bound of the range of ddm fields (not inclusive)public static java.util.List<DDMField> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> 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 DDMFieldModelImpl
.
start
- the lower bound of the range of ddm fieldsend
- the upper bound of the range of ddm fields (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<DDMField> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DDMField> 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 DDMFieldModelImpl
.
start
- the lower bound of the range of ddm fieldsend
- 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 cachepublic static void removeAll()
public static int countAll()
public static DDMFieldPersistence getPersistence()