mysql
Class Ucac2Database

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by mysql.GenericSql
                  extended by mysql.GenericStarDatabase
                      extended by mysql.Ucac2Database
All Implemented Interfaces:
Cloneable, ExitCleaning, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class Ucac2Database
extends GenericStarDatabase

An access class tailored to work with the merged databases UCAC2 and the bright star supplement. The database was set up by J. Bartus and resides on furmint.


Nested Class Summary
static class Ucac2Database.Retrieve
          Mainly for testing.
 
Nested classes/interfaces inherited from class mysql.GenericSql
GenericSql.Extract
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
private static String DEFDECALC
          The default de-expression for the UCAC2 database.
private static String DEFMAGCALC
          The default mag-expression for the UCAC2 database.
private static String DEFRACALC
          The default ra-expression for the UCAC2 database.
static double DEGTOMILLIARCSEC
          Converts degrees to milliarcseconds.
static String UCAC2DATABASE
          The properties for connecting to the UCAC2 database on furmint.
 
Fields inherited from class mysql.GenericStarDatabase
KEY_COLORCALC, KEY_DECALC, KEY_EPOCHCALC, KEY_EQUINOXCALC, KEY_MAGCALC, KEY_NAME, KEY_PMDECALC, KEY_PMRACALC, KEY_RACALC
 
Fields inherited from class mysql.GenericSql
DEFDATEFORMAT, KEY_BRIDGE, KEY_CONNECT, KEY_DATEFORMAT, KEY_FAILFILE, KEY_PASSWORD, KEY_TABLE, KEY_TRUEREAD, KEY_TRUEWRITE, KEY_USER
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
Ucac2Database(Map prop)
          Constructs a new UCAC2-Database.
 
Method Summary
 ResultSet getCircularField(StarDescription center, double radius)
          Queries the UCAC2 database.
 
Methods inherited from class mysql.GenericStarDatabase
convertResultToStarList
 
Methods inherited from class mysql.GenericSql
allColumns, canRead, canWrite, close, delete, exit, getConnection, getStatement, init, insert, isOpen, isReady, join, open, replace, retrieve, retrieve
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
Methods inherited from class util.PropertyResources
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet
 
Methods inherited from class util.PropertyContainer
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, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
Methods inherited from interface util.PropertySupplying
defaultBoolean, 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, stringProperties
 

Field Detail

UCAC2DATABASE

public static final String UCAC2DATABASE
The properties for connecting to the UCAC2 database on furmint.

See Also:
Constant Field Values

DEGTOMILLIARCSEC

public static final double DEGTOMILLIARCSEC
Converts degrees to milliarcseconds.

See Also:
Constant Field Values

DEFRACALC

private static final String DEFRACALC
The default ra-expression for the UCAC2 database.

See Also:
Constant Field Values

DEFDECALC

private static final String DEFDECALC
The default de-expression for the UCAC2 database.

See Also:
Constant Field Values

DEFMAGCALC

private static final String DEFMAGCALC
The default mag-expression for the UCAC2 database.

See Also:
Constant Field Values
Constructor Detail

Ucac2Database

public Ucac2Database(Map prop)
Constructs a new UCAC2-Database.

Method Detail

getCircularField

public ResultSet getCircularField(StarDescription center,
                                  double radius)
Queries the UCAC2 database. From the central star/position StarDescription object and the circular radius, a prepared statement callable statement is executed and from it the entire result set is retrieved.

Specified by:
getCircularField in class GenericStarDatabase
Parameters:
center - The central star/position.
radius - Radius of the circular field around the center, degrees.