public final class AstaJdbcReader extends AbstractProjectFileReader
| Modifier and Type | Field and Description |
|---|---|
protected org.mpxj.asta.AstaDataProvider |
m_data |
| Constructor and Description |
|---|
AstaJdbcReader()
Constructor.
|
| 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 a project from the current data source.
|
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 void setDataSource(DataSource dataSource)
dataSource - data sourcepublic void setConnection(Connection connection)
connection - database connectionpublic Map<Integer,String> listProjects() throws MPXJException
MPXJExceptionpublic ProjectFile read() throws MPXJException
MPXJExceptionpublic void setProjectID(int projectID)
projectID - project IDpublic 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–2026 MPXJ. All rights reserved.