1 21 package oracle.toplink.essentials.mappings; 23 24 import oracle.toplink.essentials.internal.helper.DatabaseField; 25 import oracle.toplink.essentials.mappings.foundation.AbstractDirectMapping; 26 import oracle.toplink.essentials.internal.sessions.AbstractRecord; 27 28 42 public class DirectToFieldMapping extends AbstractDirectMapping implements RelationalMapping { 43 44 47 public DirectToFieldMapping() { 48 super(); 49 } 50 51 54 public boolean isRelationalMapping() { 55 return true; 56 } 57 58 62 public void setFieldName(String FieldName) { 63 setField(new DatabaseField(FieldName)); 64 } 65 66 protected void writeValueIntoRow(AbstractRecord row, DatabaseField field, Object fieldValue) { 67 row.add(getField(), fieldValue); 68 } 69 } 70 | Popular Tags |