|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbase.SQLAccess
public class SQLAccess
This is a base class for all SQL database access operations. The real implementation has to be done within a class that inherits from SQLAccess.
| Field Summary | |
|---|---|
static String |
CDTable
|
static String |
CDTracksTable
|
static String |
DVDTable
|
static String |
ScheduleTable
|
static String |
StationsTable
|
static int |
T_CDS
|
static int |
T_CDTRACKS
|
static int |
T_COUNT
|
static int |
T_DVDS
|
static int |
T_SCHEDULE
|
static int |
T_STATIONS
|
static int |
T_TEXT
|
| Constructor Summary | |
|---|---|
SQLAccess()
|
|
| Method Summary | |
|---|---|
void |
closeJDBC()
Closes a JDBC connection to a database; after this method was called the database cant be accessed any longer. |
boolean |
initJDBC()
Establishes a new JDBC connection; this method has to be called after object creation and before the database is accessed. |
DefaultListModel |
loadStations()
Fetch a full list of TV stations from the database |
void |
saveRecording(RecordInfo info,
String uname,
String pwd)
This method deletes stores a new schedule for a recording within the database |
void |
saveStations(StationsList list,
String uname,
String pwd)
This method deletes a possibly existing list of TV stations out of the database and stores the new one |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int T_CDS
public static final int T_CDTRACKS
public static final int T_STATIONS
public static final int T_DVDS
public static final int T_SCHEDULE
public static final int T_COUNT
public static final int T_TEXT
public static final String CDTable
public static final String CDTracksTable
public static final String ScheduleTable
public static final String DVDTable
public static final String StationsTable
| Constructor Detail |
|---|
public SQLAccess()
| Method Detail |
|---|
public void closeJDBC()
public boolean initJDBC()
public DefaultListModel loadStations()
public void saveStations(StationsList list,
String uname,
String pwd)
list - the new list of TV stations to be saved
public void saveRecording(RecordInfo info,
String uname,
String pwd)
info - the schedule information to be saved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||