Class TdbDatabaseFieldList

  • All Implemented Interfaces:
    com.tietoenator.trip.jxp.internal.utils.DOMSink, java.lang.Iterable<TdbControlObject>, java.util.Collection<TdbControlObject>, java.util.List<TdbControlObject>

    public class TdbDatabaseFieldList
    extends TdbControlObjectList
    Container and retrieval logic for a list of fields within a specific database or thesaurus. The information retrieved is limited to field name, so this list is of very limited use and is intended for dropdown lists and similar UI elements.
    • Constructor Detail

      • TdbDatabaseFieldList

        public TdbDatabaseFieldList​(TdbSession session,
                                    java.lang.String db,
                                    int type,
                                    boolean headonly)
                             throws TdbException
        Constructor, retrieves a list of fields from the named database of the specified type (if any)
        Parameters:
        session - Active session
        db - Name of the database from which to retrieve the list of fields
        type - The type of field to retrieve (set to 0 to retrieve all fields)
        headonly - If set true, only head fields are retrieved
        Throws:
        TdbException
      • TdbDatabaseFieldList

        public TdbDatabaseFieldList​(TdbSession session,
                                    java.lang.String db)
                             throws TdbException
        Shortcut constructor that retrieves all fields from both head and part record structures
        Parameters:
        session - Active session
        db - Name of the database from which to retrieve the list of fields
        Throws:
        TdbException
      • TdbDatabaseFieldList

        public TdbDatabaseFieldList​(TdbSession session,
                                    java.lang.String db,
                                    java.util.Vector types,
                                    boolean headonly)
                             throws TdbException
        Constructor, retrieves a list of fields from the named database of the specified types (if any)
        Parameters:
        session - Active session
        db - Name of the database from which to retrieve the list of fields
        types - A Vector of Integers specifying the types of fields to retrieve
        headonly - If set true, only head fields are retrieved
        Throws:
        TdbException