org.yawlfoundation.yawl.logging
Class YEventKeyCache

java.lang.Object
  extended by org.yawlfoundation.yawl.logging.YEventKeyCache

public class YEventKeyCache
extends Object

A cache of foreign keys for use in event log tables.

Author:
Michael Adams
Created/Last Date:
16/06/11

Field Summary
protected  Map<String,Map<String,Long>> dataDefn
           
protected  YDataSchemaCache dataSchema
           
protected  Map<YIdentifier,Long> netInstances
           
protected  Map<YSpecificationID,Map<String,Long>> nets
           
protected  Map<YSpecificationID,Long> rootNets
           
protected  Map<String,Long> services
           
protected  Map<YSpecificationID,YLogSpecification> specEntries
           
protected  Map<YIdentifier,Map<Long,Long>> taskInstances
           
protected  Map<Long,Map<String,Long>> tasks
           
 
Constructor Summary
protected YEventKeyCache()
           
 
Method Summary
protected  long getDataTypeID(String name, String definition)
           
protected  long getNetID(YSpecificationID specID, String netName)
           
protected  long getTaskID(Long netID, String taskName)
           
protected  long getTaskInstanceID(YIdentifier caseID, Long taskID)
           
protected  long putDataTypeID(String name, String definition, long key)
           
protected  long putNetID(YSpecificationID specID, String netName, long key)
           
protected  long putTaskID(Long netID, String taskName, long key)
           
protected  long putTaskInstanceID(YIdentifier caseID, Long taskID, long key)
           
protected  void removeCase(YIdentifier caseID)
           
protected  void removeSpecification(YSpecificationID specID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataSchema

protected final YDataSchemaCache dataSchema

services

protected final Map<String,Long> services

dataDefn

protected final Map<String,Map<String,Long>> dataDefn

specEntries

protected final Map<YSpecificationID,YLogSpecification> specEntries

rootNets

protected final Map<YSpecificationID,Long> rootNets

nets

protected final Map<YSpecificationID,Map<String,Long>> nets

tasks

protected final Map<Long,Map<String,Long>> tasks

netInstances

protected final Map<YIdentifier,Long> netInstances

taskInstances

protected final Map<YIdentifier,Map<Long,Long>> taskInstances
Constructor Detail

YEventKeyCache

protected YEventKeyCache()
Method Detail

getNetID

protected long getNetID(YSpecificationID specID,
                        String netName)

putNetID

protected long putNetID(YSpecificationID specID,
                        String netName,
                        long key)

getTaskID

protected long getTaskID(Long netID,
                         String taskName)

putTaskID

protected long putTaskID(Long netID,
                         String taskName,
                         long key)

getTaskInstanceID

protected long getTaskInstanceID(YIdentifier caseID,
                                 Long taskID)

putTaskInstanceID

protected long putTaskInstanceID(YIdentifier caseID,
                                 Long taskID,
                                 long key)

getDataTypeID

protected long getDataTypeID(String name,
                             String definition)

putDataTypeID

protected long putDataTypeID(String name,
                             String definition,
                             long key)

removeCase

protected void removeCase(YIdentifier caseID)

removeSpecification

protected void removeSpecification(YSpecificationID specID)


Copyright © 2004-2012 The YAWL Foundation.