Package org.oa4mp.server.qdl.storage
Class StoreAccessModule
- java.lang.Object
-
- org.qdl_lang.expressions.module.Module
-
- org.qdl_lang.extensions.JavaModule
-
- org.oa4mp.server.qdl.storage.StoreAccessModule
-
- All Implemented Interfaces:
Serializable,Cloneable,org.qdl_lang.state.XThing
- Direct Known Subclasses:
PStoreAccessModule
public class StoreAccessModule extends org.qdl_lang.extensions.JavaModuleCreated by Jeff Gaynor
on 12/18/20 at 3:09 PM- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCFG_FILE_TAGstatic StringCFG_NAME_TAGstatic StringSTORE_FACADE_TAGstatic StringSTORE_TYPE_TAGprotected StoreFacadestoreFacade
-
Constructor Summary
Constructors Constructor Description StoreAccessModule()StoreAccessModule(URI namespace, String alias)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.qdl_lang.extensions.QDLFunction>createFList(StoreFacade sf)protected List<org.qdl_lang.extensions.QDLVariable>createVarList(StoreFacade sf)protected voiddoIt(StoreAccessModule sam, org.qdl_lang.state.State state)This sets up the module.List<String>getDescription()org.qdl_lang.expressions.module.ModulenewInstance(org.qdl_lang.state.State state)This will create the module and store.StoreFacadenewStoreFacade()protected StringprocessXML(XMLEventReader xer, String tag)Each of the elements inside theSTORE_FACADE_TAGhas the same structure.voidreadExtraXMLElements(XMLEvent xe, XMLEventReader xer)voidwriteExtraXMLElements(XMLStreamWriter xsw)-
Methods inherited from class org.qdl_lang.extensions.JavaModule
addFunctions, addVariables, createDefaultDocs, deserializeFromJSON, deserializeStates, getClassname, getDocumentation, getListByTag, getLoaderClassName, getMetaClass, hasMetaClass, init, init, isExternal, serializeToJSON, setClassName, setDocumentation, setLoaderClassName, setMetaClass, toString, writeExtraXMLAttributes
-
Methods inherited from class org.qdl_lang.expressions.module.Module
fromJSON, fromXML, fromXML, getAlias, getId, getInheritMode, getKey, getListByTag, getMTKey, getName, getNamespace, getParentInstanceAlias, getParentInstanceID, getParentTemplateID, getState, isTemplate, isUsed, readExtraXMLAttributes, setAlias, setDescription, setId, setInheritanceMode, setNamespace, setParentInstanceAlias, setParentInstanceID, setParentTemplateID, setState, setTemplate, setupModule, setUsed, toJSON, toXML, toXML, toXML2
-
-
-
-
Field Detail
-
storeFacade
protected StoreFacade storeFacade
-
STORE_FACADE_TAG
public static final String STORE_FACADE_TAG
- See Also:
- Constant Field Values
-
CFG_FILE_TAG
public static final String CFG_FILE_TAG
- See Also:
- Constant Field Values
-
CFG_NAME_TAG
public static final String CFG_NAME_TAG
- See Also:
- Constant Field Values
-
STORE_TYPE_TAG
public static final String STORE_TYPE_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public org.qdl_lang.expressions.module.Module newInstance(org.qdl_lang.state.State state)
This will create the module and store. Then calldoIt(StoreAccessModule, State)to finish off the setup.- Specified by:
newInstancein classorg.qdl_lang.expressions.module.Module- Parameters:
state-- Returns:
-
doIt
protected void doIt(StoreAccessModule sam, org.qdl_lang.state.State state)
This sets up the module.- Parameters:
sam-state-
-
createVarList
protected List<org.qdl_lang.extensions.QDLVariable> createVarList(StoreFacade sf)
-
createFList
protected List<org.qdl_lang.extensions.QDLFunction> createFList(StoreFacade sf)
-
newStoreFacade
public StoreFacade newStoreFacade()
-
writeExtraXMLElements
public void writeExtraXMLElements(XMLStreamWriter xsw) throws XMLStreamException
- Overrides:
writeExtraXMLElementsin classorg.qdl_lang.expressions.module.Module- Throws:
XMLStreamException
-
processXML
protected String processXML(XMLEventReader xer, String tag) throws XMLStreamException
Each of the elements inside theSTORE_FACADE_TAGhas the same structure. This just slogs through that. Assumption is that this is on the start tag of the element- Parameters:
tag-- Throws:
XMLStreamException
-
readExtraXMLElements
public void readExtraXMLElements(XMLEvent xe, XMLEventReader xer) throws XMLStreamException
- Overrides:
readExtraXMLElementsin classorg.qdl_lang.expressions.module.Module- Throws:
XMLStreamException
-
-