|
|||||||||
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 java.util.Map |
dataViewLocations
|
protected java.util.Map |
domains
|
protected ConfigLoaderDelegate |
loadDelegate
|
protected java.lang.String |
projectVersion
|
Fields inherited from class org.apache.cayenne.project.Project |
---|
CURRENT_PROJECT_VERSION, files, modified, projectDir, upgradeMessages, upgradeStatus |
Constructor Summary | |
---|---|
PartialProject(java.io.File projectFile)
Constructor PartialProjectHandler. |
Method Summary | |
---|---|
java.util.List |
buildFileList()
Creates a list of project files. |
void |
checkForUpgrades()
Determines whether the project needs to be upgraded. |
java.util.List |
getChildren()
Returns a list of first-level children of the project. |
ConfigStatus |
getLoadStatus()
|
protected void |
postInitialize(java.io.File projectFile)
Finished project initialization. |
protected void |
prepareSave(java.util.List filesToSave,
java.util.List wrappedObjects)
|
ProjectFile |
projectFileForObject(java.lang.Object obj)
|
void |
updateNodes(java.util.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, isUpgradeNeeded, 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 java.lang.String projectVersion
protected java.util.Map domains
protected ConfigLoaderDelegate loadDelegate
protected java.util.Map dataViewLocations
Constructor Detail |
---|
public PartialProject(java.io.File projectFile)
projectFile
- Method Detail |
---|
public void upgrade() throws ProjectException
upgrade
in class Project
ProjectException
public void updateNodes(java.util.List list) throws ProjectException
ProjectException
protected void prepareSave(java.util.List filesToSave, java.util.List wrappedObjects) throws ProjectException
prepareSave
in class Project
ProjectException
protected void postInitialize(java.io.File projectFile)
Project
postInitialize
in class Project
public java.util.List getChildren()
Project
getChildren
in class Project
public void checkForUpgrades()
Project
checkForUpgrades
in class Project
public java.util.List buildFileList()
Project
buildFileList
in class Project
Project.buildFileList()
public ConfigStatus getLoadStatus()
getLoadStatus
in class Project
Project.getLoadStatus()
public ProjectFile projectFileForObject(java.lang.Object obj)
projectFileForObject
in class Project
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |