The DataContextFactory class is used as a convenient way of creating DataContext objects for various types of datastores. The DataContextFactory class thus provides methods that are hopefully easier to understand and use than to compose the DataContext-objects "by hand".

Important methods

  • static DataContext createCsvDataContext(File file);
  • static DataContext createExcelDataContext(File file);
  • static DataContext createJdbcDataContext(Connection con);
  • static DataContext createOpenOfficeDataContext(File file);
  • static DataContext createXmlDataContext(File file);

See also