|
||||||||||
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
ProjectConfigurator
approach turned out to be not
usable, and is in fact rarely used (if ever). It will be removed in
subsequent releases.
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
Deprecated. |
protected class |
PartialProject.MapMetaData
Deprecated. |
protected class |
PartialProject.NodeMetaData
Deprecated. |
Field Summary | |
---|---|
protected Map<String,String> |
dataViewLocations
Deprecated. |
protected Map<String,PartialProject.DomainMetaData> |
domains
Deprecated. |
protected ConfigLoaderDelegate |
loadDelegate
Deprecated. |
protected String |
projectVersion
Deprecated. |
Fields inherited from class org.apache.cayenne.project.Project |
---|
CURRENT_PROJECT_VERSION, files, modified, projectDir, upgradeMessages, upgradeStatus |
Constructor Summary | |
---|---|
PartialProject(File projectFile)
Deprecated. Constructor PartialProjectHandler. |
Method Summary | |
---|---|
List |
buildFileList()
Deprecated. Creates a list of project files. |
void |
checkForUpgrades()
Deprecated. Determines whether the project needs to be upgraded. |
List |
getChildren()
Deprecated. Returns a list of first-level children of the project. |
ConfigStatus |
getLoadStatus()
Deprecated. |
protected void |
postInitialize(File projectFile)
Deprecated. Finished project initialization. |
protected void |
prepareSave(List filesToSave,
List wrappedObjects)
Deprecated. |
ProjectFile |
projectFileForObject(Object obj)
Deprecated. |
void |
updateNodes(List<? extends DataNodeConfigInfo> list)
Deprecated. Loads internal project and rewrites its nodes according to the list of DataNodeConfigInfo objects. |
void |
upgrade()
Deprecated. |
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<String,PartialProject.DomainMetaData> domains
protected ConfigLoaderDelegate loadDelegate
protected Map<String,String> dataViewLocations
Constructor Detail |
---|
public PartialProject(File projectFile)
projectFile
- Method Detail |
---|
public void upgrade() throws ProjectException
upgrade
in class Project
ProjectException
public void updateNodes(List<? extends DataNodeConfigInfo> list) throws ProjectException
ProjectException
protected void prepareSave(List filesToSave, List wrappedObjects) throws ProjectException
prepareSave
in class Project
ProjectException
protected void postInitialize(File projectFile)
Project
postInitialize
in class Project
public List getChildren()
Project
getChildren
in class Project
public void checkForUpgrades()
Project
checkForUpgrades
in class Project
public List buildFileList()
Project
buildFileList
in class Project
Project.buildFileList()
public ConfigStatus getLoadStatus()
getLoadStatus
in class Project
Project.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 |