|
||||||||||
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 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(Object obj)
Returns true if this file wrapper can handle a specified object. |
String |
getLocationSuffix()
Returns ".map.xml" that should be used as a file suffix for DataMaps. |
Object |
getObject()
Returns DataMap associated with this project. |
String |
getObjectName()
Returns a name of associated object, that is also used as a file name. |
void |
save(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 String LOCATION_SUFFIX
protected DataMap map
Constructor Detail |
---|
public DataMapFile()
public DataMapFile(Project project, DataMap map)
Method Detail |
---|
public Object getObject()
getObject
in class ProjectFile
public String getObjectName()
ProjectFile
getObjectName
in class ProjectFile
ProjectFile.getObjectName()
public void save(PrintWriter out) throws Exception
ProjectFile
save
in class ProjectFile
Exception
public boolean canHandle(Object obj)
ProjectFile
canHandle
in class ProjectFile
ProjectFile.canHandle(Object)
public void willSave()
willSave
in class ProjectFile
public String getLocationSuffix()
getLocationSuffix
in class ProjectFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |