Class ExpressionPersister

  • All Implemented Interfaces:
    com.im.df.api.util.xml.BasicPersisterInit, com.im.df.api.util.xml.IJCPersister, com.im.df.api.util.xml.IJCPersister.Reader, com.im.df.api.util.xml.IJCPersister.Writer, Cloneable

    public class ExpressionPersister
    extends com.im.df.api.util.xml.BasicPersister<com.im.df.api.dml.DFTermExpression>
    Author:
    svata
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ExpressionPersister.CountStarHolder
      Helper class for count(*) term serialization.
      static class  ExpressionPersister.ValueHolder
      Helper class for value term serialization.
      • Nested classes/interfaces inherited from interface com.im.df.api.util.xml.IJCPersister

        com.im.df.api.util.xml.IJCPersister.FinishableBean, com.im.df.api.util.xml.IJCPersister.Reader, com.im.df.api.util.xml.IJCPersister.Writer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canInstantiate​(Class valueClazz)
      No instances can be created, only deserialized.
      protected Object readElement​(Object prototype)  
      protected void writeElement()
      Saves "operator", "operands" and "options" properties.
      • Methods inherited from class com.im.df.api.util.xml.BasicPersister

        addError, clearErrors, create, createAttribute, createElement, createInstance, createInstance, createLog, createReader, createState, createWriter, defaultReadBean, defaultWriteBean, enterElement, enterElement, getAttribute, getAttribute, getBean, getBeanClass, getBufferedErrors, getClass, getConfiguredQName, getContext, getCurrentClassLoader, getEnv, getNode, getPersisterRegistry, getPropertyValue, getQName, getStorage, getType, init, isPrimitive, leaveElement, loadObject, popElement, pushElement, read, readAttr, readAttr, readAttr, readAttribute, readBeanProperties, readBeanProperty, readCollection, readCollection, readCollection, readCollectionProperty, readMap, readMapProperty, readObjectPolymorphic, readObjectStatic, readPrimitiveProperty, setBean, setBeanClass, setClassBeanInfo, setContext, setEnv, setNode, setPersisterRegistry, setPropertyAttributes, setQName, setStorage, storeObject, throwWrappedIOException, throwWrappedIOException, write, write, write, writeArray, writeAttr, writeAttr, writeAttr, writeAttr, writeAttr, writeAttribute, writeCollection, writeCollection, writeCollection, writeMap, writeMap, writeObject, writeObjectPolymorphic, writeObjectStatic, writeProperty, writeSuperclass
    • Constructor Detail

      • ExpressionPersister

        public ExpressionPersister()
    • Method Detail

      • canInstantiate

        protected boolean canInstantiate​(Class valueClazz)
        No instances can be created, only deserialized.
        Overrides:
        canInstantiate in class com.im.df.api.util.xml.BasicPersister<com.im.df.api.dml.DFTermExpression>
      • readElement

        protected Object readElement​(Object prototype)
                              throws IOException
        Overrides:
        readElement in class com.im.df.api.util.xml.BasicPersister<com.im.df.api.dml.DFTermExpression>
        Throws:
        IOException
      • writeElement

        protected void writeElement()
                             throws IOException
        Saves "operator", "operands" and "options" properties.
        Overrides:
        writeElement in class com.im.df.api.util.xml.BasicPersister<com.im.df.api.dml.DFTermExpression>
        Throws:
        IOException