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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(int flags) Serialize the current set of objects to the files from which they were parsed.voidSerialize the current set of objects to the given file.voidSerialize the current set of objects to the given stream.voidSerialize 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 theSourceTrackerinterface.- Parameters:
output- if null, then serialize directly to the file system; otherwise, populate the specifiedMapwith keys that are theFileinstances, and values that are theStringcontents 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
-