public class SqlMaster extends PropertyResources implements ExitCleaning, Initializable
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFSITE
The default site is IZANA.
|
private static String |
DEFSQLCONNECT
Default connect string for failure, master calib and block table.
|
private static String |
DEFSQLUSERNAME
Default user name for failure, master calib and block table.
|
static Date |
FIRSTSES
The first date of observations with wifsip.
|
static Date |
FIRSTWIFSIP
The first date of observations with wifsip.
|
static String |
KEY_SET
The properties of the parameter set used for the header cards.
|
static String |
KEY_SITE
The name of the site we work on.
|
static String |
KEY_SQLCONNECT
The SQL host connect string.
|
static String |
KEY_SQLPASSWORD
The SQL Password.
|
static String |
KEY_SQLUSERNAME
The SQL user name.
|
private Longitude |
lambda
The longitude of Tenerife.
|
private GlobalGrouping |
set
The set used for, e.g.,calculating the non-fixed header cards.
|
private static DateFormat |
YYYYMMDD |
KEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOMECONFIG, KEY_CLASS| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
defaultSql() |
void |
exit()
Closes the database access.
|
protected long |
getMidnight(Date mid)
Converts a date to the ms of the closest midnight.
|
protected String |
getNightId(Date midnight) |
protected GlobalGrouping |
getSet() |
void |
init()
Initializes the obs-db.
|
clone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiespublic static Date FIRSTWIFSIP
public static Date FIRSTSES
public static final String KEY_SET
public static final String KEY_SITE
public static final String KEY_SQLCONNECT
public static final String KEY_SQLUSERNAME
public static final String KEY_SQLPASSWORD
private static final DateFormat YYYYMMDD
private static final String DEFSITE
private static final String DEFSQLCONNECT
private static final String DEFSQLUSERNAME
private GlobalGrouping set
private Longitude lambda
public void init()
throws InitException
init in interface InitializableInitExceptionpublic void exit()
exit in interface ExitCleaningprotected GlobalGrouping getSet()
protected long getMidnight(Date mid)