|
|||||||||
| 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.ApplicationProject
public class ApplicationProject
Represents Cayenne application project.
| Field Summary | |
|---|---|
protected Configuration |
configuration
|
| Fields inherited from class org.apache.cayenne.project.Project |
|---|
CURRENT_PROJECT_VERSION, files, modified, projectDir, upgradeMessages, upgradeStatus |
| Constructor Summary | |
|---|---|
ApplicationProject(java.io.File projectFile)
Constructor for ApplicationProject. |
|
ApplicationProject(java.io.File projectFile,
Configuration configuration)
|
|
| Method Summary | |
|---|---|
void |
checkForUpgrades()
Determines whether the project needs to be upgraded. |
java.util.List |
getChildren()
Returns a list of first-level children of the project. |
Configuration |
getConfiguration()
Returns Cayenne configuration object associated with this project. |
ConfigStatus |
getLoadStatus()
|
protected void |
loadProject()
|
protected void |
loadProject(java.io.File projectFile)
Deprecated. since 1.2 |
protected void |
postInitialize(java.io.File projectFile)
Initializes internal Configuration object and then calls super. |
ProjectFile |
projectFileForObject(java.lang.Object obj)
Returns appropriate ProjectFile or null if object does not require a file of its own. |
protected boolean |
requiresMapFile(java.lang.Object obj)
|
protected boolean |
requiresNodeFile(java.lang.Object obj)
|
protected boolean |
requiresProjectFile(java.lang.Object obj)
|
void |
setConfiguration(ProjectConfiguration config)
Sets Cayenne configuration object associated with this project. |
void |
upgrade()
|
| Methods inherited from class org.apache.cayenne.project.Project |
|---|
buildFileList, createProject, deleteFile, findFile, getMainFile, getProjectDirectory, getUpgradeMessages, getUpgradeStatus, getValidator, hasRenamedFiles, initialize, isLocationUndefined, isModified, isUpgradeNeeded, prepareSave, 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 Configuration configuration
| Constructor Detail |
|---|
public ApplicationProject(java.io.File projectFile)
projectFile -
public ApplicationProject(java.io.File projectFile,
Configuration configuration)
| Method Detail |
|---|
public void upgrade()
throws ProjectException
upgrade in class ProjectProjectExceptionprotected void postInitialize(java.io.File projectFile)
Configuration object and then calls super.
postInitialize in class Project
protected void loadProject(java.io.File projectFile)
throws java.lang.Exception
java.lang.Exceptionprotected void loadProject()
public Configuration getConfiguration()
public void setConfiguration(ProjectConfiguration config)
public void checkForUpgrades()
Project
checkForUpgrades in class Projectpublic java.util.List getChildren()
Project
getChildren in class ProjectProject.getChildren()public ProjectFile projectFileForObject(java.lang.Object obj)
projectFileForObject in class Projectprotected boolean requiresProjectFile(java.lang.Object obj)
protected boolean requiresMapFile(java.lang.Object obj)
protected boolean requiresNodeFile(java.lang.Object obj)
public ConfigStatus getLoadStatus()
getLoadStatus in class Project
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||