public final class AstaMdbReader extends AbstractProjectFileReader
| Constructor and Description |
|---|
AstaMdbReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocateResources(File file)
Allocate any resources necessary to work with the database before we start reading.
|
protected List<org.mpxj.asta.Row> |
getRows(String tableName,
Map<String,Integer> keys)
Retrieve a set of rows from a named table matching the supplied keys.
|
protected List<org.mpxj.asta.Row> |
getRows(String tableName,
Map<String,Integer> keys,
Map<String,String> nameMap)
Retrieve a set of rows from a named table matching the supplied keys.
|
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.
|
protected void |
releaseResources()
Release any resources once we've finished reading.
|
void |
setProjectID(int projectID)
Set the ID of the project to be read.
|
read, read, readAll, readAlladdListenersToContext, addListenersToProject, addListenersToReader, addProjectListenerprotected List<org.mpxj.asta.Row> getRows(String tableName, Map<String,Integer> keys) throws org.mpxj.asta.AstaDatabaseException
tableName - table to retrieve rows fromkeys - name and integer value keysorg.mpxj.asta.AstaDatabaseExceptionprotected List<org.mpxj.asta.Row> getRows(String tableName, Map<String,Integer> keys, Map<String,String> nameMap) throws org.mpxj.asta.AstaDatabaseException
tableName - table to retrieve rows fromkeys - name and integer value keysnameMap - column name maporg.mpxj.asta.AstaDatabaseExceptionprotected void allocateResources(File file)
file - database fileprotected void releaseResources()
public 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–2025 MPXJ. All rights reserved.