public final class MPDDatabaseReader extends AbstractProjectFileReader
| Constructor and Description |
|---|
MPDDatabaseReader() |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,String> |
listProjects()
Populates a Map instance representing the IDs and names of
projects available in the current database.
|
ProjectFile |
read()
Read project data from a database.
|
ProjectFile |
read(File file)
Read a single schedule from a file where a File instance is supplied.
|
List<ProjectFile> |
readAll(File file)
Default implementation of readAll.
|
void |
setConnection(Connection connection)
Sets the connection.
|
void |
setDataSource(DataSource dataSource)
Set the data source.
|
void |
setProjectID(int projectID)
Set the ID of the project to be read.
|
read, read, readAll, readAlladdListenersToContext, addListenersToProject, addListenersToReader, addProjectListenerpublic Map<Integer,String> listProjects() throws MPXJException
MPXJExceptionpublic ProjectFile read() throws MPXJException
MPXJExceptionpublic void setProjectID(int projectID)
projectID - project IDpublic void setDataSource(DataSource dataSource)
dataSource - data sourcepublic void setConnection(Connection connection)
connection - database connectionpublic ProjectFile read(File file) throws MPXJException
ProjectReaderfile - File instanceMPXJExceptionpublic List<ProjectFile> readAll(File file) throws MPXJException
AbstractProjectFileReaderreadAll in interface ProjectReaderreadAll in class AbstractProjectFileReaderfile - File instanceMPXJExceptionCopyright © 2000–2025 MPXJ. All rights reserved.