Package org.pgcodekeeper.core.library
Class LibraryXmlStore
XML store for managing database library dependencies.
Handles reading and writing of library dependency configurations including
library paths, names, privilege settings, and nested loading options.
Do not call
Call
Do not call
writeObjects(List) on this class,
doing that won't save additional library options.Call
writeDependencies(List, boolean) instead.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLibraryXmlStore(Path path) Creates a new dependencies XML store for the specified path. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReads the load nested flag from the XML file.voidwriteDependencies(List<Library> dependencies, boolean loadNestedFlag) Writes library dependencies to XML file with load nested flag.voidwriteObjects(List<Library> list) Do not call this method, usewriteDependencies(List, boolean)instead.Methods inherited from class org.pgcodekeeper.core.xmlstore.XmlStore
readObjects
-
Field Details
-
FILE_NAME
- See Also:
-
-
Constructor Details
-
LibraryXmlStore
Creates a new dependencies XML store for the specified path.- Parameters:
path- the path to the dependencies XML file
-
-
Method Details
-
getXmlFile
-
readLoadNestedFlag
Reads the load nested flag from the XML file.- Returns:
- true if nested loading is enabled, false if disabled or file doesn't exist
- Throws:
IOException- if reading fails
-
writeObjects
Do not call this method, usewriteDependencies(List, boolean)instead.- Overrides:
writeObjectsin classXmlStore<Library>- Parameters:
list- the list parameter (ignored)
-
writeDependencies
public void writeDependencies(List<Library> dependencies, boolean loadNestedFlag) throws IOException Writes library dependencies to XML file with load nested flag.- Parameters:
dependencies- the list of library dependencies to writeloadNestedFlag- whether to enable nested loading- Throws:
IOException- if writing fails
-