|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbase.SQLAccess
base.SQLLocalAccess
public class SQLLocalAccess
This method inherits from SQLAccess and implements the functionalities for accessing the local SmallSQL database. For a description of the inherited method splease refer to the base class.
| Field Summary |
|---|
| Fields inherited from class base.SQLAccess |
|---|
CDTable, CDTracksTable, DVDTable, ScheduleTable, StationsTable, T_CDS, T_CDTRACKS, T_COUNT, T_DVDS, T_SCHEDULE, T_STATIONS, T_TEXT |
| Constructor Summary | |
|---|---|
SQLLocalAccess()
|
|
| Method Summary | |
|---|---|
void |
closeJDBC()
Closes a JDBC connection to a database; after this method was called the database cant be accessed any longer. |
void |
doSQLOperation(String Cmd)
This method sends a raw SQL statement to the database |
DefaultListModel |
doSQLQuery(int table,
String Cmd)
This method sends a raw SQL statement to the database and puts the results in a list of objects that belong to the type of the result |
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 |
| Constructor Detail |
|---|
public SQLLocalAccess()
| Method Detail |
|---|
public void doSQLOperation(String Cmd)
Cmd - the SQL statement that has to be sent to the database
public DefaultListModel doSQLQuery(int table,
String Cmd)
table - a constant T_xxx that specifies the table the results come from and - out of this
information - selects the correct object type to put the resulting data intoCmd - the raw SQL statement the data are requested with
public DefaultListModel loadStations()
SQLAccess
loadStations in class SQLAccess
public void saveStations(StationsList list,
String uname,
String pwd)
SQLAccess
saveStations in class SQLAccesslist - the new list of TV stations to be saved
public void saveRecording(RecordInfo info,
String uname,
String pwd)
SQLAccess
saveRecording in class SQLAccessinfo - the schedule information to be savedpublic boolean initJDBC()
SQLAccess
initJDBC in class SQLAccesspublic void closeJDBC()
SQLAccess
closeJDBC in class SQLAccess
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||