org.gcube.contentmanagement.timeseriesservice.impl.utils
Class Export

java.lang.Object
  extended by org.gcube.contentmanagement.timeseriesservice.impl.utils.Export

public class Export
extends Object


Field Summary
static org.gcube.common.core.utils.logging.GCUBELog logger
           
 
Constructor Summary
Export()
           
 
Method Summary
static String asCsv(ExportRequest req, ColumnDefinition[] definitionsArray, org.gcube.common.dbinterface.tables.SimpleTable table)
           
static String codeListAsCsv(org.gcube.common.dbinterface.tables.SimpleTable table, String codelistName, boolean header)
          allows to export a codelist, delimiter and encoding are fixed (, as delimiter and utf-8 as encoding)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.gcube.common.core.utils.logging.GCUBELog logger
Constructor Detail

Export

public Export()
Method Detail

asCsv

public static String asCsv(ExportRequest req,
                           ColumnDefinition[] definitionsArray,
                           org.gcube.common.dbinterface.tables.SimpleTable table)
                    throws Exception
Throws:
Exception

codeListAsCsv

public static String codeListAsCsv(org.gcube.common.dbinterface.tables.SimpleTable table,
                                   String codelistName,
                                   boolean header)
                            throws Exception
allows to export a codelist, delimiter and encoding are fixed (, as delimiter and utf-8 as encoding)

Parameters:
definitionsArray -
table -
codelistName -
Returns:
Throws:
Exception


Copyright © 2012. All Rights Reserved.