All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unidal.dal.jdbc.Readset Maven / Gradle / Ivy

The newest version!
package org.unidal.dal.jdbc;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Readset {
   private List m_fields;

   private List> m_readsets;

   public Readset(DataField... fields) {
      m_fields = Collections.unmodifiableList(Arrays.asList(fields));
      m_readsets = Collections.emptyList();
   }

   @SuppressWarnings("unchecked")
   public Readset(Readset... readsets) {
      List> children = new ArrayList>();

      for (Readset readset : readsets) {
         Readset rs = (Readset) readset;

         children.add(rs);
         children.addAll(rs.getChildren());
      }

      m_readsets = children;
      m_fields = Collections.emptyList();
   }

   public List getFields() {
      return m_fields;
   }

   public List> getChildren() {
      return m_readsets;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy