Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

entagged.library
Class LibraryDatabase  view LibraryDatabase download LibraryDatabase.java

java.lang.Object
  extended byentagged.library.LibraryDatabase

public class LibraryDatabase
extends java.lang.Object

Description $Id: LibraryDatabase.java,v 1.11 2003/11/15 15:05:33 kikidonk Exp $

Version:
v0.09

Field Summary
private  java.sql.Connection connection
          Description of the Field
private  java.lang.String DATABASE_URI
          Description of the Field
private  java.lang.String JDBC_DRIVER
          Description of the Field
private  java.lang.String PASSWORD
          Description of the Field
private  java.lang.String USERNAME
          Description of the Field
 
Constructor Summary
LibraryDatabase()
          Constructor for the LibraryDatabase object
 
Method Summary
 void closeConnection()
          Description of the Method
 void createDatabase()
           
 void deleteDatabase()
           
 java.sql.ResultSet getAlbums(java.lang.String artist_id)
          Gets the albums attribute of the LibraryDatabase object
 java.sql.ResultSet getArtists()
          Gets the artists attribute of the LibraryDatabase object
 java.sql.ResultSet getDirectoriesFrom(java.lang.String location_id)
          Gets the directoriesFrom attribute of the LibraryDatabase object
 java.sql.ResultSet getLocations()
          Gets the locations attribute of the LibraryDatabase object
 java.sql.ResultSet getTitlesAsAdapter(java.lang.String album_id)
          Gets the titlesAsAdapter attribute of the LibraryDatabase object
 java.sql.ResultSet getTitlesAsAdapter(java.lang.String directory, java.lang.String location_id)
          Gets the titlesAsAdapter attribute of the LibraryDatabase object
 java.sql.ResultSet query(java.lang.String query)
          Description of the Method
 void resetDatabase()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATABASE_URI

private java.lang.String DATABASE_URI
Description of the Field


JDBC_DRIVER

private java.lang.String JDBC_DRIVER
Description of the Field


PASSWORD

private java.lang.String PASSWORD
Description of the Field


USERNAME

private java.lang.String USERNAME
Description of the Field


connection

private java.sql.Connection connection
Description of the Field

Constructor Detail

LibraryDatabase

public LibraryDatabase()
Constructor for the LibraryDatabase object

Method Detail

getAlbums

public java.sql.ResultSet getAlbums(java.lang.String artist_id)
Gets the albums attribute of the LibraryDatabase object


getArtists

public java.sql.ResultSet getArtists()
Gets the artists attribute of the LibraryDatabase object


getDirectoriesFrom

public java.sql.ResultSet getDirectoriesFrom(java.lang.String location_id)
Gets the directoriesFrom attribute of the LibraryDatabase object


getLocations

public java.sql.ResultSet getLocations()
Gets the locations attribute of the LibraryDatabase object


getTitlesAsAdapter

public java.sql.ResultSet getTitlesAsAdapter(java.lang.String album_id)
Gets the titlesAsAdapter attribute of the LibraryDatabase object


getTitlesAsAdapter

public java.sql.ResultSet getTitlesAsAdapter(java.lang.String directory,
                                             java.lang.String location_id)
Gets the titlesAsAdapter attribute of the LibraryDatabase object


closeConnection

public void closeConnection()
Description of the Method


query

public java.sql.ResultSet query(java.lang.String query)
Description of the Method


createDatabase

public void createDatabase()

resetDatabase

public void resetDatabase()
Description of the Method


deleteDatabase

public void deleteDatabase()