org.gcube.data.figis.tmplugin.utils
Class Utils

java.lang.Object
  extended by org.gcube.data.figis.tmplugin.utils.Utils

public class Utils
extends Object

Author:
"Valentina Marioli valentina.marioli@isti.cnr.it"

Constructor Summary
Utils()
           
 
Method Summary
static void createTableFigis()
          if table is created with success, set last update date
static void createTableUpdates()
          create table updates
static Calendar DateToCalendar(Date date)
          convert a date to calendar
static void getRuntimeResource()
           
static void initialize(org.gcube.common.resources.gcore.ServiceEndpoint res)
          inizialize Runtime Resource
static Calendar lastupdate()
          get last update date
static void setlastupdate()
          Set last update date
static boolean SQLTableExists(String tableName)
          Return true if a table exists
static String toSchema(Class<?> clazz)
          Create schema by class Request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

SQLTableExists

public static boolean SQLTableExists(String tableName)
Return true if a table exists


toSchema

public static String toSchema(Class<?> clazz)
Create schema by class Request


getRuntimeResource

public static void getRuntimeResource()

initialize

public static void initialize(org.gcube.common.resources.gcore.ServiceEndpoint res)
                       throws Exception
inizialize Runtime Resource

Throws:
Exception

createTableFigis

public static void createTableFigis()
if table is created with success, set last update date


createTableUpdates

public static void createTableUpdates()
create table updates


setlastupdate

public static void setlastupdate()
Set last update date


lastupdate

public static Calendar lastupdate()
get last update date


DateToCalendar

public static Calendar DateToCalendar(Date date)
convert a date to calendar



Copyright © 2013. All Rights Reserved.