Class DFLists


  • public final class DFLists
    extends java.lang.Object
    Common utilities related to DFList.
    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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 of DFField (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 list
        field - 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 using DFList.setValues(java.util.List, com.im.commons.progress.DFEnvironmentRW) method.
        env - The environment with the DDL schema lock (can obtained for example using DIFUtilities.getLockable(com.im.df.api.ddl.DFEntity, boolean) (with true as the second parameter, because it's for creating a new list).
        Returns:
        Newly created list