Package com.im.df.api.ddl
Class DFLists
- java.lang.Object
-
- com.im.df.api.ddl.DFLists
-
public final class DFLists extends java.lang.Object
Common utilities related toDFList
.- Since:
- 6.2
- Author:
- Petr Hamernik
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DFList
createPermanentList(java.lang.String listName, DFField field, java.util.List<?> values, com.im.commons.progress.DFEnvironmentRW env)
Creates a new permanent list (DFList
.
-
-
-
Method Detail
-
createPermanentList
public static DFList createPermanentList(java.lang.String listName, DFField field, java.util.List<?> values, com.im.commons.progress.DFEnvironmentRW env)
Creates a new permanent list (DFList
. Permanent list is a list of values ofDFField
(typically a database column). Most common case is that list is created for ID field of the entity (DFEntity.getIdField()
.- Parameters:
listName
- Name for a new listfield
- The field associated with the list. The list contains values of this field (DB column). Currently integer and text field types are supported. It can be standard field (based on database column) or calculated (no DB column behind), but the latter type has some limitations (e.g. cannot be applied to (DFResultSet
).values
- Initial values of the list. Can be empty and can be modified later usingDFList.setValues(java.util.List, com.im.commons.progress.DFEnvironmentRW)
method.env
- The environment with the DDL schema lock (can obtained for example usingDIFUtilities.getLockable(com.im.df.api.ddl.DFEntity, boolean)
(withtrue
as the second parameter, because it's for creating a new list).- Returns:
- Newly created list
-
-