org.kuali.kfs.fp.batch.service.impl
Class ProcurementCardLoadTransactionsServiceImpl

java.lang.Object
  extended by org.kuali.kfs.fp.batch.service.impl.ProcurementCardLoadTransactionsServiceImpl
All Implemented Interfaces:
ProcurementCardLoadTransactionsService

public class ProcurementCardLoadTransactionsServiceImpl
extends Object
implements ProcurementCardLoadTransactionsService

This is the default implementation of the ProcurementCardLoadTransactionsService interface. Handles loading, parsing, and storing of incoming procurement card batch files.

See Also:
ProcurementCardCreateDocumentService

Constructor Summary
ProcurementCardLoadTransactionsServiceImpl()
           
 
Method Summary
 void cleanTransactionsTable()
          Calls businessObjectService to remove all the procurement card transaction rows from the transaction load table.
 boolean loadProcurementCardFile(String fileName)
          Validates and parses the given file, then stores transactions into a temp table.
protected  void loadTransactions(List transactions)
          Loads all the parsed XML transactions into the temp transaction table.
 void setBatchInputFileService(BatchInputFileService batchInputFileService)
          Sets the batchInputFileService attribute value.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setProcurementCardInputFileType(BatchInputFileType procurementCardInputFileType)
          Sets the procurementCardInputFileType attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcurementCardLoadTransactionsServiceImpl

public ProcurementCardLoadTransactionsServiceImpl()
Method Detail

loadProcurementCardFile

public boolean loadProcurementCardFile(String fileName)
Validates and parses the given file, then stores transactions into a temp table.

Specified by:
loadProcurementCardFile in interface ProcurementCardLoadTransactionsService
Parameters:
fileName - The name of the file to be parsed.
Returns:
This method always returns true. An exception is thrown if a problem occurs while loading the file.
See Also:
org.kuali.kfs.fp.batch.service.ProcurementCardCreateDocumentService#loadProcurementCardFile()

cleanTransactionsTable

public void cleanTransactionsTable()
Calls businessObjectService to remove all the procurement card transaction rows from the transaction load table.

Specified by:
cleanTransactionsTable in interface ProcurementCardLoadTransactionsService

loadTransactions

protected void loadTransactions(List transactions)
Loads all the parsed XML transactions into the temp transaction table.

Parameters:
transactions - List of ProcurementCardTransactions to load.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.

setBatchInputFileService

public void setBatchInputFileService(BatchInputFileService batchInputFileService)
Sets the batchInputFileService attribute value.

Parameters:
batchInputFileService - The batchInputFileService to set.

setProcurementCardInputFileType

public void setProcurementCardInputFileType(BatchInputFileType procurementCardInputFileType)
Sets the procurementCardInputFileType attribute value.

Parameters:
procurementCardInputFileType - The procurementCardInputFileType to set.


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.