|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.cayenne.project.ProjectFile
org.apache.cayenne.project.DataMapFile
public class DataMapFile
DataMapFile is a ProjectFile abstraction of the DataMap file in a Cayenne project.
| Field Summary | |
|---|---|
static java.lang.String |
LOCATION_SUFFIX
|
protected DataMap |
map
|
| Fields inherited from class org.apache.cayenne.project.ProjectFile |
|---|
location, projectObj, tempFile |
| Constructor Summary | |
|---|---|
DataMapFile()
|
|
DataMapFile(Project project,
DataMap map)
Constructor for DataMapFile. |
|
| Method Summary | |
|---|---|
boolean |
canHandle(java.lang.Object obj)
Returns true if this file wrapper can handle a specified object. |
java.lang.String |
getLocationSuffix()
Returns ".map.xml" that should be used as a file suffix for DataMaps. |
java.lang.Object |
getObject()
Returns DataMap associated with this project. |
java.lang.String |
getObjectName()
Returns a name of associated object, that is also used as a file name. |
void |
save(java.io.PrintWriter out)
Saves an underlying object to the file. |
void |
willSave()
Updates map location to match the name before save. |
| Methods inherited from class org.apache.cayenne.project.ProjectFile |
|---|
canHandleObject, checkWritePermissions, getLocation, getOldLocation, getProject, isRenamed, resolveFile, resolveOldFile, saveCommit, saveTemp, saveUndo, synchronizeLocation, tempFileForFile, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOCATION_SUFFIX
protected DataMap map
| Constructor Detail |
|---|
public DataMapFile()
public DataMapFile(Project project,
DataMap map)
| Method Detail |
|---|
public java.lang.Object getObject()
getObject in class ProjectFilepublic java.lang.String getObjectName()
ProjectFile
getObjectName in class ProjectFileProjectFile.getObjectName()
public void save(java.io.PrintWriter out)
throws java.lang.Exception
ProjectFile
save in class ProjectFilejava.lang.Exceptionpublic boolean canHandle(java.lang.Object obj)
ProjectFile
canHandle in class ProjectFileProjectFile.canHandle(Object)public void willSave()
willSave in class ProjectFilepublic java.lang.String getLocationSuffix()
getLocationSuffix in class ProjectFile
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||