|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
mysql.AbstractSql
public abstract class AbstractSql
Base class for database-accessors using the StaticSql connection
manager. Provides fields for individual user names and password, as well as
the table name.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyContainer |
|---|
PropertyContainer.URLResource |
| Field Summary | |
|---|---|
static String |
KEY_PASSWORD
The key to the password for db-acces if not default. |
static String |
KEY_TABLE
The key to the table name where star data is stored. |
static String |
KEY_USERNAME
The key to the user name for db-acces if not default. |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR, KEY_NOINITONCREATE, KEY_RESOURCEBUNDLES |
| Fields inherited from interface util.PropertyBearing |
|---|
CONFIG, KEY_CLASS, KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
protected |
AbstractSql(Map<String,String> prop)
Constructs a new abstract sql database. |
| Method Summary | |
|---|---|
String |
getPassword()
Returns the passwort |
String |
getTable()
Returns the table name. |
String |
getUserName()
Returns the user-name property or null if not specified. |
void |
init()
If we are not the default user of the database, try to add ourself here. |
boolean |
isEntry(String where)
Returns true, if this where clause returns a non-empty result set. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String KEY_USERNAME
public static final String KEY_PASSWORD
public static final String KEY_TABLE
| Constructor Detail |
|---|
protected AbstractSql(Map<String,String> prop)
| Method Detail |
|---|
public void init()
init in interface Initializableinit in class PropertyContainerpublic String getUserName()
public String getPassword()
public String getTable()
public boolean isEntry(String where)
throws SQLException,
ConnectException
SQLException
ConnectException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||