1 22 package org.jboss.ejb.plugins.cmp.jdbc.bridge; 23 24 import java.sql.PreparedStatement ; 25 import java.sql.ResultSet ; 26 27 import org.jboss.ejb.EntityEnterpriseContext; 28 import org.jboss.ejb.plugins.cmp.bridge.FieldBridge; 29 import org.jboss.ejb.plugins.cmp.jdbc.JDBCType; 30 import org.jboss.ejb.plugins.cmp.jdbc.JDBCEntityPersistenceStore; 31 32 33 36 public interface JDBCFieldBridge extends FieldBridge 37 { 38 39 public JDBCType getJDBCType(); 40 41 45 public boolean isPrimaryKeyMember(); 46 47 51 public boolean isReadOnly(); 52 53 56 public boolean isReadTimedOut(EntityEnterpriseContext ctx); 57 58 61 public boolean isLoaded(EntityEnterpriseContext ctx); 62 63 66 public void initInstance(EntityEnterpriseContext ctx); 67 68 71 public void resetPersistenceContext(EntityEnterpriseContext ctx); 72 73 77 public int setInstanceParameters(PreparedStatement ps, int parameterIndex, EntityEnterpriseContext ctx); 78 79 84 public Object getInstanceValue(EntityEnterpriseContext ctx); 85 86 91 public void setInstanceValue(EntityEnterpriseContext ctx, Object value); 92 93 97 public int loadInstanceResults(ResultSet rs, int parameterIndex, EntityEnterpriseContext ctx); 98 99 102 public int loadArgumentResults(ResultSet rs, int parameterIndex, Object [] argumentRef); 103 104 107 public boolean isDirty(EntityEnterpriseContext ctx); 108 109 112 public void setClean(EntityEnterpriseContext ctx); 113 114 boolean isCMPField(); 115 116 JDBCEntityPersistenceStore getManager(); 117 118 Object getPrimaryKeyValue(Object arg); 119 } 120 | Popular Tags |