Class WriteThruOptions


  • public class WriteThruOptions
    extends java.lang.Object
    Class that defines write-through options regarding updating the data source.
    • Constructor Detail

      • WriteThruOptions

        public WriteThruOptions()
        Initialized a new instance of WriteThruOptions.
      • WriteThruOptions

        public WriteThruOptions​(WriteMode mode,
                                java.lang.String providerName)
        Initialized a new instance of WriteThruOptions.
        Parameters:
        mode - See WriteMode for write-through options.
        providerName - A unique identifier for the data source provider.
      • WriteThruOptions

        public WriteThruOptions​(WriteMode mode)
        Initialized a new instance of WriteThruOptions.
        Parameters:
        mode - See WriteMode for write-through options.
    • Method Detail

      • getMode

        public final WriteMode getMode()
        Gets the WriteMode for write-through options.
        Returns:
        write mode for write-through options.
      • setMode

        public final void setMode​(WriteMode value)
        Sets the WriteMode for write-through options.
        Parameters:
        value - write mode for write-through options.
      • getProviderName

        public final java.lang.String getProviderName()
        Gets the unique identifier for the data source provider.
        Returns:
        The name of datasource provider.
      • setProviderName

        public final void setProviderName​(java.lang.String value)
        Sets the unique identifier for the data source provider.
        Parameters:
        value - The name of the datasource provider.
      • getEventTypes

        public java.util.EnumSet<EventType> getEventTypes()
        Gets the events enumset registered for datasource modification listener.
        Returns:
        The events enumset.
      • getDataSourceModificationListener

        public final DataSourceModifiedListener getDataSourceModificationListener()
        Gets the data source modified notification listener for write-through options.
        Returns:
        The data source modified notification listener.
      • setDataSourceModificationListener

        public final void setDataSourceModificationListener​(DataSourceModifiedListener listener,
                                                            java.util.EnumSet<EventType> eventsEnumSet)
        Sets the data source modified notification listener for write-through options.
        Parameters:
        listener - A listener that is invoked whenever datasource is modified.
        eventsEnumSet - The event type/types to be registered against the datasource listener.