1 16 17 package org.springframework.jca.cci.object; 18 19 import javax.resource.cci.ConnectionFactory ; 20 import javax.resource.cci.InteractionSpec ; 21 import javax.resource.cci.Record ; 22 23 import org.springframework.dao.DataAccessException; 24 25 32 public class SimpleRecordOperation extends EisOperation { 33 34 37 public SimpleRecordOperation() { 38 } 39 40 45 public SimpleRecordOperation(ConnectionFactory connectionFactory, InteractionSpec interactionSpec) { 46 getCciTemplate().setConnectionFactory(connectionFactory); 47 setInteractionSpec(interactionSpec); 48 } 49 50 59 public Record execute(Record inputRecord) throws DataAccessException { 60 return getCciTemplate().execute(getInteractionSpec(), inputRecord); 61 } 62 63 72 public void execute(Record inputRecord, Record outputRecord) throws DataAccessException { 73 getCciTemplate().execute(getInteractionSpec(), inputRecord, outputRecord); 74 } 75 76 } 77 | Popular Tags |