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

Quick Search    Search Deep

com.virtuosotechnologies.asaph.xmldatabase
Class IndexedDatabaseFactoryImpl  view IndexedDatabaseFactoryImpl download IndexedDatabaseFactoryImpl.java

java.lang.Object
  extended bycom.virtuosotechnologies.asaph.xmldatabase.IndexedDatabaseFactoryImpl
All Implemented Interfaces:
IndexedDatabaseFactory

class IndexedDatabaseFactoryImpl
extends java.lang.Object
implements IndexedDatabaseFactory

Implementation of IndexedDatabaseFactory


Nested Class Summary
(package private)  class IndexedDatabaseFactoryImpl.DummySongIDImpl
          Dummy implementation of SongID
 
Field Summary
private static java.lang.String DTD_FILENAME
           
private  java.lang.String dtdString_
           
private  com.virtuosotechnologies.asaph.standardmodel.StandardModelFactory modelFactory_
           
private  javax.xml.parsers.SAXParserFactory parserFactory_
           
private  com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_
           
private static java.lang.String STR_PreferredCharacterEncoding
           
 
Fields inherited from interface com.virtuosotechnologies.asaph.xmldatabase.IndexedDatabaseFactory
API_NAME
 
Constructor Summary
(package private) IndexedDatabaseFactoryImpl(com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils, com.virtuosotechnologies.asaph.standardmodel.StandardModelFactory modelFactory)
          Constructor
 
Method Summary
 com.virtuosotechnologies.asaph.model.SongDatabase createIndexedDatabase(java.io.File directory)
          Create a new mutable indexed database rooted at the given directory.
 boolean isIndexedDatabase(com.virtuosotechnologies.asaph.model.SongDatabase database)
          Is the given database an indexed database?
 com.virtuosotechnologies.asaph.model.SongDatabase openIndexedDatabase(java.io.File directory)
          Open a mutable indexed database backed by the filesystem at the given directory.
 com.virtuosotechnologies.asaph.model.SongDatabase openIndexedDatabase(java.net.URL url, org.xml.sax.ErrorHandler errorHandler)
          Open an immutable indexed database backed by the given URL.
 void updateDatabase04(java.io.File directory)
          Update a filesystem indexed database from version 0.3 to version 0.4.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DTD_FILENAME

private static final java.lang.String DTD_FILENAME
See Also:
Constant Field Values

STR_PreferredCharacterEncoding

private static final java.lang.String STR_PreferredCharacterEncoding

parserFactory_

private javax.xml.parsers.SAXParserFactory parserFactory_

songUtils_

private com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils_

modelFactory_

private com.virtuosotechnologies.asaph.standardmodel.StandardModelFactory modelFactory_

dtdString_

private java.lang.String dtdString_
Constructor Detail

IndexedDatabaseFactoryImpl

IndexedDatabaseFactoryImpl(com.virtuosotechnologies.asaph.modelutils.SongUtils songUtils,
                           com.virtuosotechnologies.asaph.standardmodel.StandardModelFactory modelFactory)
                     throws java.io.IOException
Constructor

Method Detail

createIndexedDatabase

public com.virtuosotechnologies.asaph.model.SongDatabase createIndexedDatabase(java.io.File directory)
                                                                        throws java.io.IOException,
                                                                               org.xml.sax.SAXException
Create a new mutable indexed database rooted at the given directory.

Specified by:
createIndexedDatabase in interface IndexedDatabaseFactory

openIndexedDatabase

public com.virtuosotechnologies.asaph.model.SongDatabase openIndexedDatabase(java.io.File directory)
                                                                      throws java.io.IOException,
                                                                             org.xml.sax.SAXException
Open a mutable indexed database backed by the filesystem at the given directory.

Specified by:
openIndexedDatabase in interface IndexedDatabaseFactory

openIndexedDatabase

public com.virtuosotechnologies.asaph.model.SongDatabase openIndexedDatabase(java.net.URL url,
                                                                             org.xml.sax.ErrorHandler errorHandler)
                                                                      throws java.io.IOException,
                                                                             org.xml.sax.SAXException
Open an immutable indexed database backed by the given URL.

Specified by:
openIndexedDatabase in interface IndexedDatabaseFactory

isIndexedDatabase

public boolean isIndexedDatabase(com.virtuosotechnologies.asaph.model.SongDatabase database)
Is the given database an indexed database?

Specified by:
isIndexedDatabase in interface IndexedDatabaseFactory

updateDatabase04

public void updateDatabase04(java.io.File directory)
                      throws java.io.IOException,
                             org.xml.sax.SAXException
Update a filesystem indexed database from version 0.3 to version 0.4.

Specified by:
updateDatabase04 in interface IndexedDatabaseFactory