Class NullTraceDao

java.lang.Object
com.aquima.interactions.trace.dao.impl.NullTraceDao
All Implemented Interfaces:
ITraceDao

public class NullTraceDao extends Object implements ITraceDao
Null implementation of the ITraceDao which will be used when no other implementation is found. Does nothing when traces are inserted (this is a valid scenario), only logs on debug. When the find(TraceSearchCriteria) method is called, an exception is thrown.
Since:
10.0
Author:
g.graat
  • Constructor Details

    • NullTraceDao

      public NullTraceDao()
  • Method Details

    • insert

      public void insert(String appId, String type, Date date, Map<String,IValue> properties)
      Description copied from interface: ITraceDao
      Inserts a new trace entry
      Specified by:
      insert in interface ITraceDao
      Parameters:
      appId - the application id
      type - The type of the trace, not null.
      date - The insertion date, not null.
      properties - The map of properties (key: String, value: IValue), not null.
    • find

      public ITraceEntry[] find(TraceSearchCriteria criteria)
      Description copied from interface: ITraceDao
      Finds traces matching the criteria.
      Specified by:
      find in interface ITraceDao
      Parameters:
      criteria - The search criteria, not null.
      Returns:
      The found traces.