Package org.apache.openjpa.lib.meta
Interface MetaDataSerializer
- All Known Subinterfaces:
AbstractCFMetaDataFactory.Serializer
,SchemaSerializer
- All Known Implementing Classes:
AnnotationPersistenceMappingSerializer
,AnnotationPersistenceMetaDataSerializer
,CFMetaDataSerializer
,XMLMetaDataSerializer
,XMLPersistenceMappingSerializer
,XMLPersistenceMetaDataSerializer
,XMLSchemaSerializer
public interface MetaDataSerializer
Interface for meta data serializers.
- Author:
- Abe White
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(int flags) Serialize the current set of objects to the files from which they were parsed.void
Serialize the current set of objects to the given file.void
Serialize the current set of objects to the given stream.void
Serialize the current set of objects to the files from which they were parsed.
-
Field Details
-
COMPACT
static final int COMPACT- See Also:
-
PRETTY
static final int PRETTY- See Also:
-
APPEND
static final int APPEND- See Also:
-
VERBOSE
static final int VERBOSE- See Also:
-
-
Method Details
-
serialize
Serialize the current set of objects to the files from which they were parsed. Any objects for which a source file cannot be determined will not be included in the output.- Parameters:
flags
- bit flags specifying the output flags; e.g.PRETTY
- Throws:
IOException
-
serialize
Serialize the current set of objects to the files from which they were parsed. The objects must implement theSourceTracker
interface.- Parameters:
output
- if null, then serialize directly to the file system; otherwise, populate the specifiedMap
with keys that are theFile
instances, and values that are theString
contents of the MetaDataflags
- bit flags specifying the output flags; e.g.PRETTY
- Throws:
IOException
-
serialize
Serialize the current set of objects to the given file.- Parameters:
flags
- bit flags specifying the output flags; e.g.PRETTY
|APPEND
- Throws:
IOException
-
serialize
Serialize the current set of objects to the given stream.- Parameters:
flags
- bit flags specifying the output flags; e.g.PRETTY
- Throws:
IOException
-