1 57 58 package com.myeis.j2c; 59 60 import javax.resource.*; 61 import javax.resource.cci.*; 62 import javax.resource.spi.*; 63 64 public class MyEISConnection implements Connection { 65 66 private MyEISManagedConnection fieldManagedConnection = null; 67 68 71 public MyEISConnection(ManagedConnection managedConnection) { 72 73 this.fieldManagedConnection = (MyEISManagedConnection)managedConnection; 74 } 75 76 79 public Interaction createInteraction() throws ResourceException { 80 81 return new MyEISInteraction(this); 82 } 83 84 87 public javax.resource.cci.LocalTransaction getLocalTransaction() throws ResourceException { 88 return null; 89 } 90 91 94 public void setAutoCommit(boolean arg0) throws ResourceException { 95 } 96 97 100 public boolean getAutoCommit() throws ResourceException { 101 return false; 102 } 103 104 107 public ConnectionMetaData getMetaData() throws ResourceException { 108 return null; 109 } 110 111 114 public ResultSetInfo getResultSetInfo() throws ResourceException { 115 return null; 116 } 117 118 121 public void close() throws ResourceException { 122 123 this.fieldManagedConnection.close(); 124 this.fieldManagedConnection = null; 125 } 126 127 130 public boolean call(InteractionSpec interactionSpec, Record inputRecord, Record outputRecord) 131 throws ResourceException { 132 133 return this.fieldManagedConnection.call(interactionSpec, inputRecord, outputRecord); 134 } 135 136 } 137 138 | Popular Tags |