1 56 package org.objectstyle.cayenne.access.types; 57 58 import java.sql.CallableStatement ; 59 import java.sql.PreparedStatement ; 60 import java.sql.ResultSet ; 61 62 import org.objectstyle.cayenne.map.DbAttribute; 63 import org.objectstyle.cayenne.validation.ValidationResult; 64 65 71 public interface ExtendedType { 72 73 76 String getClassName(); 77 78 86 boolean validateProperty( 87 Object source, 88 String property, 89 Object value, 90 DbAttribute dbAttribute, 91 ValidationResult validationResult); 92 93 96 void setJdbcObject( 97 PreparedStatement statement, 98 Object value, 99 int pos, 100 int type, 101 int precision) throws Exception ; 102 103 110 Object materializeObject(ResultSet rs, int index, int type) throws Exception ; 111 112 119 Object materializeObject(CallableStatement rs, int index, int type) throws Exception ; 120 } 121 | Popular Tags |