Class Project
java.lang.Object
org.apache.cayenne.project.Project
- All Implemented Interfaces:
ProjectNode, XMLSerializable
A Cayenne mapping project, normally loaded from XML configuration. It is the root of the project nodes tree,
and contains DataMaps and the settings of a runtime DataChannel.
- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TacceptVisitor(ProjectNodeVisitor<T> visitor) voidencodeAsXML(XMLEncoder encoder, ProjectNodeVisitor<?> delegate) Prints itself as XML to the provided XMLEncoder.getDataMap(String name) getName()booleanReturns whether the object snapshots are cached in a cache shared between all ObjectContexts.booleanReturns whether the objects are validated before they are committed.voidsetConfigurationSource(Resource configurationSource) voidvoidsetSharedCacheEnabled(boolean sharedCacheEnabled) voidsetValidatingObjectsOnCommit(boolean validatingObjectsOnCommit)
-
Field Details
-
SCHEMA_XSD
The namespace in which the data map XML file will be created.- See Also:
-
SCHEMA_XSD_LOCATION
- See Also:
-
name
-
validatingObjectsOnCommit
protected boolean validatingObjectsOnCommit -
dataMaps
-
configurationSource
-
-
Constructor Details
-
Project
public Project()
-
-
Method Details
-
encodeAsXML
Description copied from interface:XMLSerializablePrints itself as XML to the provided XMLEncoder.- Specified by:
encodeAsXMLin interfaceXMLSerializable
-
acceptVisitor
- Specified by:
acceptVisitorin interfaceProjectNode
-
getName
-
setName
-
isValidatingObjectsOnCommit
public boolean isValidatingObjectsOnCommit()Returns whether the objects are validated before they are committed. True by default. -
setValidatingObjectsOnCommit
public void setValidatingObjectsOnCommit(boolean validatingObjectsOnCommit) -
getDataMaps
-
getDataMap
-
getConfigurationSource
-
setConfigurationSource
-