1 19 20 package org.apache.cayenne.access.types; 21 22 import java.sql.CallableStatement ; 23 import java.sql.PreparedStatement ; 24 import java.sql.ResultSet ; 25 26 import org.apache.cayenne.map.DbAttribute; 27 import org.apache.cayenne.validation.ValidationResult; 28 29 35 public interface ExtendedType { 36 37 40 String getClassName(); 41 42 51 boolean validateProperty( 52 Object source, 53 String property, 54 Object value, 55 DbAttribute dbAttribute, 56 ValidationResult validationResult); 57 58 61 void setJdbcObject( 62 PreparedStatement statement, 63 Object value, 64 int pos, 65 int type, 66 int precision) throws Exception ; 67 68 75 Object materializeObject(ResultSet rs, int index, int type) throws Exception ; 76 77 84 Object materializeObject(CallableStatement rs, int index, int type) throws Exception ; 85 } 86 | Popular Tags |