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, readAll
addListenersToProject, addListenersToReader, addProjectListener
public Map<Integer,String> listProjects() throws MPXJException
MPXJException
public ProjectFile read() throws MPXJException
MPXJException
public 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
ProjectReader
file
- File instanceMPXJException
public List<ProjectFile> readAll(File file) throws MPXJException
AbstractProjectFileReader
readAll
in interface ProjectReader
readAll
in class AbstractProjectFileReader
file
- File instanceMPXJException
Copyright © 2000–2024 Packwood Software. All rights reserved.