public abstract class HtmStarDatabase extends AbstractSql
AbstractSql.Columns, AbstractSql.ExtractPropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFEPOCH
The default epoch expression.
|
private static String |
DEFEQUINOX
The default equinox expression.
|
static String |
KEY_COLOR
The key linked to the color expression.
|
static String |
KEY_DE
The key linked to the declination expression.
|
static String |
KEY_EPOCH
The key linked to the epoch expression.
|
static String |
KEY_EQUINOX
The key linked to the equinox expression.
|
static String |
KEY_HTM
The key linked to the Table field that is the HTM index field.
|
static String |
KEY_HTMDEPTH
The depth of HTM index.
|
static String |
KEY_MAG
The key linked to the magnitude expression.
|
static String |
KEY_NAME
The key linked to the Table field that is the name.
|
static String |
KEY_PMDE
The key linked to the proper motion in de expression.
|
static String |
KEY_PMRA
The key linked to the proper motion in ra expression.
|
static String |
KEY_RA
The key linked to the right ascension expression.
|
KEY_TABLE, SQLBATCHDIR, SQLFAILDIRKEY_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 | Constructor and Description |
|---|---|
protected |
HtmStarDatabase(Map<String,String> prop)
Constructs a new generic star database.
|
| Modifier and Type | Method and Description |
|---|---|
List<Star> |
getCircularField(double ra,
double dec,
double radius,
boolean strict)
Takes a central star and a circular radius around it to convert it to a
database query result set, which is then passed to the
parseResultSet(java.sql.ResultSet) method. |
List<Star> |
getCircularField(Star center,
double radius,
boolean strict)
Takes a central star and a circular radius around it to convert it to a
database query result set, which is then passed to the
parseResultSet(java.sql.ResultSet) method. |
long |
getHtmIndex(double ra,
double de) |
long |
getHtmIndex(Star star) |
private List<Star> |
getRange(long lo,
long hi) |
Star |
parseDefaultResultSet(ResultSet rs,
SimpleStar star)
The classical fields defined are parsed and put into the empty star
provided.
|
protected abstract Star |
parseResultSet(ResultSet rs)
This method parses a readily placed result set to a star description.
|
private void |
purge(List<Star> all,
double radeg,
double dedeg,
double radiusdeg) |
delete, distinct, distinct, exit, getAccess, getDefaultArchive, getDefaultFormat, getTable, init, insert, isEntry, release, release, replace, retrieve, retrieve, retrieve, single, singleclone, 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 final String KEY_HTMDEPTH
public static final String KEY_HTM
public static final String KEY_NAME
public static final String KEY_RA
public static final String KEY_DE
public static final String KEY_PMRA
public static final String KEY_PMDE
public static final String KEY_MAG
public static final String KEY_COLOR
public static final String KEY_EPOCH
public static final String KEY_EQUINOX
private static final String DEFEQUINOX
private static final String DEFEPOCH
protected HtmStarDatabase(Map<String,String> prop)
SimpleStars. Keys
that are not defined mean that they are not present in the database.public long getHtmIndex(Star star) throws HTMException
HTMExceptionpublic long getHtmIndex(double ra,
double de)
throws HTMException
HTMExceptionpublic List<Star> getCircularField(Star center, double radius, boolean strict) throws SQLException
parseResultSet(java.sql.ResultSet) method.center - The central star/position.radius - Radius of the circular field around the center, degrees.SQLExceptionpublic List<Star> getCircularField(double ra, double dec, double radius, boolean strict) throws SQLException
parseResultSet(java.sql.ResultSet) method.ra - The central position, right ascension degrees.dec - The central position, declination degrees.radius - Radius of the circular field around the center, degrees.SQLExceptionpublic Star parseDefaultResultSet(ResultSet rs, SimpleStar star) throws SQLException
rs - The result set, placed on the row to read.star - The empty star description, might be subclassesSQLExceptionprotected abstract Star parseResultSet(ResultSet rs) throws SQLException
parseDefaultResultSet(java.sql.ResultSet, astro.SimpleStar).rs - SQLExceptionprivate List<Star> getRange(long lo, long hi) throws SQLException
SQLException