Package org.hibernate.boot.jaxb.internal
Class CacheableFileXmlSource
java.lang.Object
org.hibernate.boot.jaxb.internal.CacheableFileXmlSource
Support for creating a mapping binding from "cached" XML files.
This is a legacy feature, caching a serialized form of the JAXB model
into a file for later use. While not deprecated per se, its use is discouraged.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreateSerFile(File xmlFile, File outputFile, MappingBinder binder) static voidcreateSerFile(File xmlFile, MappingBinder binder) static FiledetermineCachedFile(File xmlFile) static FiledetermineCachedFile(File xmlFile, File serDirectory) static Binding<? extends JaxbBindableMappingDescriptor> fromCacheableFile(File xmlFile, File serLocation, boolean strict, MappingBinder binder) static Binding<? extends JaxbBindableMappingDescriptor> fromCacheableFile(File xmlFile, File serLocation, Origin origin, boolean strict, MappingBinder binder) static booleanisSerfileObsolete(File xmlFile, File serFile) static FileresolveSerFile(File xmlFile, File serLocation) Determine the ser file for a given mapping XML file.
-
Constructor Details
-
CacheableFileXmlSource
public CacheableFileXmlSource()
-
-
Method Details
-
fromCacheableFile
public static Binding<? extends JaxbBindableMappingDescriptor> fromCacheableFile(File xmlFile, File serLocation, boolean strict, MappingBinder binder) -
fromCacheableFile
public static Binding<? extends JaxbBindableMappingDescriptor> fromCacheableFile(File xmlFile, File serLocation, Origin origin, boolean strict, MappingBinder binder) -
resolveSerFile
Determine the ser file for a given mapping XML file.- Parameters:
xmlFile- The source mapping XML fileserLocation- The location details about the ser file. Can be one of 3 things:- Returns:
- The ser file reference.
-
determineCachedFile
-
determineCachedFile
-
createSerFile
-
createSerFile
-
isSerfileObsolete
-