org.sqlproc.engine.config.store
Class JaxbStore

java.lang.Object
  extended by org.sqlproc.engine.config.store.JaxbStore
Direct Known Subclasses:
SqlEngineConfiguration

public class JaxbStore
extends Object

This class is used only for the SQL Processor dynamic configuration serialization/deserialization.

For more info please see the Tutorials.

Author:
Vladimir Hudec

Field Summary
private  File directory
           
private  File file
           
private  String fileName
           
private  JAXBContext xmlContext
           
 
Constructor Summary
protected JaxbStore()
           
protected JaxbStore(File directory, String fileName, Class<?>... jaxbClasses)
           
 
Method Summary
protected  Object readFile()
           
protected  void writeXml(Object xml)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directory

private final File directory

fileName

private final String fileName

xmlContext

private final JAXBContext xmlContext

file

private final File file
Constructor Detail

JaxbStore

protected JaxbStore()

JaxbStore

protected JaxbStore(File directory,
                    String fileName,
                    Class<?>... jaxbClasses)
             throws IOException,
                    JAXBException
Throws:
IOException
JAXBException
Method Detail

writeXml

protected void writeXml(Object xml)

readFile

protected Object readFile()
                   throws JAXBException
Throws:
JAXBException


Copyright © 2015. All rights reserved.