ibspan.ecap.merchant.shopdecisions.dataadministration
Class TemplateProcessor

java.lang.Object
  extended by ibspan.ecap.merchant.shopdecisions.dataadministration.TemplateProcessor

public class TemplateProcessor
extends java.lang.Object

A class responsible for handling and staging the template dimension.

Author:
Micha³ Drozdowicz

Constructor Summary
TemplateProcessor(DataModificationService svc)
          Instantiates a new template processor.
 
Method Summary
 int retrieveTemplateKey(java.lang.String templateId)
          Retrieve template key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateProcessor

public TemplateProcessor(DataModificationService svc)
Instantiates a new template processor.

Parameters:
svc - the DataModificationService to use to access the database
Method Detail

retrieveTemplateKey

public int retrieveTemplateKey(java.lang.String templateId)
                        throws java.sql.SQLException
Retrieve template key.

Parameters:
templateId - the id of the template, the key of which is to be retrieved.
Returns:
the the key of the template
Throws:
java.sql.SQLException - the SQL exception