Class PersistenceDescriptorXMLMarshaller
- java.lang.Object
-
- org.kie.workbench.common.screens.datamodeller.util.PersistenceDescriptorXMLMarshaller
-
public class PersistenceDescriptorXMLMarshaller extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLASSstatic StringDESCRIPTIONstatic StringEXCLUDE_UNLISTED_CLASSESstatic StringJAR_FILEstatic StringJTA_DATA_SOURCEstatic StringMAPPING_FILEstatic StringNAMEstatic StringNON_JTA_DATA_SOURCEstatic StringPERSISTENCEstatic StringPERSISTENCE_UNITstatic StringPROPERTIESstatic StringPROPERTYstatic StringPROVIDERstatic StringSHARED_CACHE_MODEstatic StringTRANSACTION_TYPEstatic StringVALIDATION_MODEstatic StringVALUEstatic StringVERSION
-
Constructor Summary
Constructors Constructor Description PersistenceDescriptorXMLMarshaller()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PersistenceDescriptorModelfromXML(InputStream xmlStream, boolean validate)static StringtoXML(PersistenceDescriptorModel persistenceDescriptor)static voidtoXML(PersistenceDescriptorModel persistenceDescriptor, OutputStream outputStream)
-
-
-
Field Detail
-
PERSISTENCE
public static final String PERSISTENCE
- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
PERSISTENCE_UNIT
public static final String PERSISTENCE_UNIT
- See Also:
- Constant Field Values
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
TRANSACTION_TYPE
public static final String TRANSACTION_TYPE
- See Also:
- Constant Field Values
-
DESCRIPTION
public static final String DESCRIPTION
- See Also:
- Constant Field Values
-
PROVIDER
public static final String PROVIDER
- See Also:
- Constant Field Values
-
JTA_DATA_SOURCE
public static final String JTA_DATA_SOURCE
- See Also:
- Constant Field Values
-
NON_JTA_DATA_SOURCE
public static final String NON_JTA_DATA_SOURCE
- See Also:
- Constant Field Values
-
MAPPING_FILE
public static final String MAPPING_FILE
- See Also:
- Constant Field Values
-
JAR_FILE
public static final String JAR_FILE
- See Also:
- Constant Field Values
-
CLASS
public static final String CLASS
- See Also:
- Constant Field Values
-
EXCLUDE_UNLISTED_CLASSES
public static final String EXCLUDE_UNLISTED_CLASSES
- See Also:
- Constant Field Values
-
SHARED_CACHE_MODE
public static final String SHARED_CACHE_MODE
- See Also:
- Constant Field Values
-
VALIDATION_MODE
public static final String VALIDATION_MODE
- See Also:
- Constant Field Values
-
PROPERTIES
public static final String PROPERTIES
- See Also:
- Constant Field Values
-
PROPERTY
public static final String PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromXML
public static PersistenceDescriptorModel fromXML(InputStream xmlStream, boolean validate) throws Exception
- Throws:
Exception
-
toXML
public static String toXML(PersistenceDescriptorModel persistenceDescriptor) throws Exception
- Throws:
Exception
-
toXML
public static void toXML(PersistenceDescriptorModel persistenceDescriptor, OutputStream outputStream) throws Exception
- Throws:
Exception
-
-