|
|||||||||
| 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.DataNodeFile
public class DataNodeFile
DataNodeFile is a ProjectFile abstraction of the DataNode file in a Cayenne project.
| Field Summary | |
|---|---|
static java.lang.String |
LOCATION_SUFFIX
|
protected DataNode |
nodeObj
|
| Fields inherited from class org.apache.cayenne.project.ProjectFile |
|---|
location, projectObj, tempFile |
| Constructor Summary | |
|---|---|
DataNodeFile()
|
|
DataNodeFile(Project project,
DataNode node)
Constructor for DataNodeFile. |
|
| Method Summary | |
|---|---|
boolean |
canHandle(java.lang.Object obj)
Returns true if this file wrapper can handle a specified object. |
java.lang.String |
getLocationSuffix()
Returns ".driver.xml" that should be used as a file suffix for DataNode driver files. |
java.lang.Object |
getObject()
Returns a project object associated with this file. |
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 node 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 DataNode nodeObj
| Constructor Detail |
|---|
public DataNodeFile()
public DataNodeFile(Project project,
DataNode node)
| Method Detail |
|---|
public java.lang.Object getObject()
ProjectFile
getObject in class ProjectFileProjectFile.getObject()public 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 | ||||||||