public class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static SimpleDateFormat |
dateFormatter |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
getZip(OutputStream os,
String name,
InputStream is) |
static org.gcube.common.dbinterface.types.Type.Types |
mapJavaToSql(org.gcube.contentmanagement.timeseriesservice.stubs.types.DataType sqlType) |
static org.gcube.contentmanagement.timeseriesservice.stubs.types.DataType |
mapSqlToJava(org.gcube.common.dbinterface.types.Type.Types type) |
protected static String |
quote(String string)
Produce a string in double quotes with backslash sequences in all the
right places.
|
static String |
removeSizeFromDBType(String typeName) |
static String |
replaceKeyType(String type) |
static void |
streamToFile(InputStream instream,
OutputStream out) |
static String |
toJSon(ResultSet resultSet) |
static void |
unzip(InputStream is,
OutputStream os) |
public static SimpleDateFormat dateFormatter
public static String toJSon(ResultSet resultSet) throws SQLException
SQLExceptionprotected static String quote(String string)
string - A Stringpublic static void streamToFile(InputStream instream, OutputStream out) throws Exception
Exceptionpublic static void unzip(InputStream is, OutputStream os) throws Exception
is - the zip stream.os - the output stream.Exceptionpublic static void getZip(OutputStream os, String name, InputStream is) throws Exception
Exceptionpublic static org.gcube.contentmanagement.timeseriesservice.stubs.types.DataType mapSqlToJava(org.gcube.common.dbinterface.types.Type.Types type)
throws Exception
Exceptionpublic static org.gcube.common.dbinterface.types.Type.Types mapJavaToSql(org.gcube.contentmanagement.timeseriesservice.stubs.types.DataType sqlType)
Copyright © 2014. All Rights Reserved.