public final class PrimaveraDatabaseReader extends AbstractProjectReader
Constructor and Description |
---|
PrimaveraDatabaseReader() |
Modifier and Type | Method and Description |
---|---|
Map<FieldType,String> |
getActivityFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
Map<FieldType,String> |
getAssignmentFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
boolean |
getIgnoreErrors()
Retrieve the flag which determines if datatype parse errors can be ignored.
|
boolean |
getMatchPrimaveraWBS()
If set to true, the WBS for each task read from Primavera will exactly match the WBS value shown in Primavera.
|
Map<FieldType,String> |
getResourceFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
Map<FieldType,String> |
getRoleFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
String |
getSchema()
Retrieve the name of the schema containing the Primavera tables.
|
Map<FieldType,String> |
getWbsFieldMap()
Customise the data retrieved by this reader by modifying the contents of this map.
|
boolean |
getWbsIsFullPath()
Returns true if the WBS attribute of a summary task
contains a dot separated list representing the WBS hierarchy.
|
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.
|
ProjectFile |
read(InputStream inputStream)
Read a single schedule from a file where the contents of the project file
are supplied via an input stream.
|
ProjectFile |
read(String fileName)
Read a single schedule from a file where the file name is supplied.
|
List<ProjectFile> |
readAll()
Convenience method which allows all projects in the database to
be read in a single operation.
|
List<ProjectFile> |
readAll(File file)
Read all schedules from a file where a File instance is supplied.
|
List<ProjectFile> |
readAll(InputStream inputStream)
Read all schedules from a file where the contents of the project file
are supplied via an input stream.
|
List<ProjectFile> |
readAll(String fileName)
Read all schedules from a file where the file name is supplied.
|
void |
setConnection(Connection connection)
Sets the connection.
|
void |
setDataSource(DataSource dataSource)
Set the data source.
|
void |
setIgnoreErrors(boolean ignoreErrors)
Set a flag to determine if datatype parse errors can be ignored.
|
void |
setMatchPrimaveraWBS(boolean matchPrimaveraWBS)
If set to true, the WBS for each task read from Primavera will exactly match the WBS value shown in Primavera.
|
void |
setProjectID(int projectID)
Set the ID of the project to be read.
|
void |
setSchema(String schema)
Set the name of the schema containing the Primavera tables.
|
void |
setWbsIsFullPath(boolean wbsIsFullPath)
Sets a flag indicating if the WBS attribute of a summary task
contains a dot separated list representing the WBS hierarchy.
|
addListenersToProject, addListenersToReader, addProjectListener
public Map<Integer,String> listProjects() throws MPXJException
MPXJException
public ProjectFile read() throws MPXJException
MPXJException
public List<ProjectFile> readAll() 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(String fileName)
ProjectReader
fileName
- file namepublic List<ProjectFile> readAll(String fileName)
ProjectReader
fileName
- file namepublic ProjectFile read(File file)
ProjectReader
file
- File instancepublic List<ProjectFile> readAll(File file)
ProjectReader
file
- File instancepublic ProjectFile read(InputStream inputStream)
ProjectReader
inputStream
- InputStream instancepublic List<ProjectFile> readAll(InputStream inputStream)
ProjectReader
inputStream
- InputStream instancepublic void setSchema(String schema)
schema
- schema name.public String getSchema()
public Map<FieldType,String> getResourceFieldMap()
public Map<FieldType,String> getRoleFieldMap()
public Map<FieldType,String> getWbsFieldMap()
public Map<FieldType,String> getActivityFieldMap()
public Map<FieldType,String> getAssignmentFieldMap()
public boolean getMatchPrimaveraWBS()
public void setMatchPrimaveraWBS(boolean matchPrimaveraWBS)
matchPrimaveraWBS
- flag valuepublic boolean getWbsIsFullPath()
public void setWbsIsFullPath(boolean wbsIsFullPath)
wbsIsFullPath
- true if WBS attribute is a hierarchypublic void setIgnoreErrors(boolean ignoreErrors)
ignoreErrors
- pass true to ignore errorspublic boolean getIgnoreErrors()
Copyright © 2000–2024 Packwood Software. All rights reserved.