|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.project.Project
org.apache.cayenne.project.PartialProject
public class PartialProject
PartialProject is a "lightweight" project implementation. It can work with projects even when some of the resources are missing. It never instantiates Cayenne stack objects, using other, lightweight, data structures instead.
| Nested Class Summary | |
|---|---|
protected class |
PartialProject.DomainMetaData
|
protected class |
PartialProject.MapMetaData
|
protected class |
PartialProject.NodeMetaData
|
| Field Summary | |
|---|---|
protected Map |
dataViewLocations
|
protected Map |
domains
|
protected ConfigLoaderDelegate |
loadDelegate
|
protected String |
projectVersion
|
| Fields inherited from class org.apache.cayenne.project.Project |
|---|
CURRENT_PROJECT_VERSION, files, modified, projectDir, upgradeMessages, upgradeStatus |
| Constructor Summary | |
|---|---|
PartialProject(File projectFile)
Constructor PartialProjectHandler. |
|
| Method Summary | |
|---|---|
List |
buildFileList()
Creates a list of project files. |
void |
checkForUpgrades()
Determines whether the project needs to be upgraded. |
List |
getChildren()
Returns a list of first-level children of the project. |
ConfigStatus |
getLoadStatus()
|
protected void |
postInitialize(File projectFile)
Finished project initialization. |
protected void |
prepareSave(List filesToSave,
List wrappedObjects)
|
ProjectFile |
projectFileForObject(Object obj)
|
void |
updateNodes(List list)
Loads internal project and rewrites its nodes according to the list of DataNodeConfigInfo objects. |
void |
upgrade()
|
| Methods inherited from class org.apache.cayenne.project.Project |
|---|
createProject, deleteFile, findFile, getMainFile, getProjectDirectory, getUpgradeMessages, getUpgradeStatus, getValidator, hasRenamedFiles, initialize, isLocationUndefined, isModified, processDelete, processSave, resolveFile, resolveSymbolicName, save, setModified, setProjectDirectory, treeNodes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String projectVersion
protected Map domains
protected ConfigLoaderDelegate loadDelegate
protected Map dataViewLocations
| Constructor Detail |
|---|
public PartialProject(File projectFile)
projectFile - | Method Detail |
|---|
public void upgrade()
throws ProjectException
upgrade in class ProjectProjectException
public void updateNodes(List list)
throws ProjectException
ProjectException
protected void prepareSave(List filesToSave,
List wrappedObjects)
throws ProjectException
prepareSave in class ProjectProjectExceptionprotected void postInitialize(File projectFile)
Project
postInitialize in class Projectpublic List getChildren()
Project
getChildren in class Projectpublic void checkForUpgrades()
Project
checkForUpgrades in class Projectpublic List buildFileList()
Project
buildFileList in class ProjectProject.buildFileList()public ConfigStatus getLoadStatus()
getLoadStatus in class ProjectProject.getLoadStatus()public ProjectFile projectFileForObject(Object obj)
projectFileForObject in class Project
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||