|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.CoreProject
public class CoreProject
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,ca.sqlpower.sql.SPDataSource> |
dbcsLoadIdMap
This map maps String ID codes to DBCS instances used in loading. |
protected java.util.Map<ca.sqlpower.sql.SPDataSource,java.lang.String> |
dbcsSaveIdMap
This holds mappings from DBCS instance to String ID used in saving. |
protected java.io.File |
file
|
protected boolean |
modified
Tracks whether or not this project has been modified since last saved. |
protected java.util.Map<java.lang.String,OLAPObject> |
olapObjectLoadIdMap
This map maps String ID codes to OLAPObject instances used in loading. |
protected java.util.Map<OLAPObject,java.lang.String> |
olapObjectSaveIdMap
This holds mappings from OLAPObject instance to String ID used in saving. |
protected java.io.PrintWriter |
out
Should be set to NULL unless we are currently saving the project, at which time it's writing to the project file. |
protected int |
progress
The last value we sent to the progress monitor. |
protected boolean |
saveInProgress
Don't let application exit while saving. |
protected ArchitectSession |
session
|
protected java.util.Map<java.lang.String,SQLObject> |
sqlObjectLoadIdMap
This map maps String ID codes to SQLObject instances used in loading. |
protected java.util.Map<SQLObject,java.lang.String> |
sqlObjectSaveIdMap
This holds mappings from SQLObject instance to String ID used in saving. |
| Constructor Summary | |
|---|---|
CoreProject(ArchitectSession session)
|
|
| Method Summary | |
|---|---|
void |
addAllTablesFrom(SQLDatabase db)
Adds all the tables in the given database into the playpen database. |
java.io.File |
getFile()
Returns the file that this project was most recently saved to or loaded from. |
protected ArchitectSession |
getSession()
|
boolean |
isModified()
See modified. |
boolean |
isSaveInProgress()
|
void |
load(java.io.InputStream in,
ca.sqlpower.sql.DataSourceCollection dataSources)
Loads the project data from the given input stream. |
void |
setFile(java.io.File argFile)
Tells this project which file it was most recently saved to or loaded from. |
void |
setModified(boolean modified)
See modified. |
void |
setSaveInProgress(boolean saveInProgress)
|
protected org.apache.commons.digester.Digester |
setupDigester()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.File file
protected boolean modified
protected boolean saveInProgress
protected java.io.PrintWriter out
protected java.util.Map<java.lang.String,SQLObject> sqlObjectLoadIdMap
protected java.util.Map<SQLObject,java.lang.String> sqlObjectSaveIdMap
protected java.util.Map<java.lang.String,OLAPObject> olapObjectLoadIdMap
protected java.util.Map<OLAPObject,java.lang.String> olapObjectSaveIdMap
protected java.util.Map<java.lang.String,ca.sqlpower.sql.SPDataSource> dbcsLoadIdMap
protected java.util.Map<ca.sqlpower.sql.SPDataSource,java.lang.String> dbcsSaveIdMap
protected int progress
protected ArchitectSession session
| Constructor Detail |
|---|
public CoreProject(ArchitectSession session)
| Method Detail |
|---|
public boolean isSaveInProgress()
public void setSaveInProgress(boolean saveInProgress)
saveInProgress - The saveInProgress to set.
public void load(java.io.InputStream in,
ca.sqlpower.sql.DataSourceCollection dataSources)
throws java.io.IOException,
ArchitectException
Note: the input stream is always closed afterwards.
in - Used to load in the project data, must support mark.dataSources - Collection of the data sources used in the project
java.io.IOException
ArchitectException
protected org.apache.commons.digester.Digester setupDigester()
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXExceptionpublic boolean isModified()
modified.
public void setModified(boolean modified)
modified.
protected ArchitectSession getSession()
public java.io.File getFile()
public void setFile(java.io.File argFile)
public void addAllTablesFrom(SQLDatabase db)
throws ArchitectException
db - The database to add tables from. The database must contain tables directly.
ArchitectException - If adding the tables of db fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||