1 package de.webman.acl.db; 2 3 import java.sql.SQLException ; 4 import com.teamkonzept.db.TKDBTableData; 5 import com.teamkonzept.db.TKQuery; 6 7 19 public class EventCollectionDBData 20 extends ObjectCollectionDBData 21 { 22 23 25 28 private Integer login = null; 29 30 33 private Integer context = null; 34 35 38 private Integer type = null; 39 40 43 private Integer reference = null; 44 45 48 private String access = null; 49 50 51 53 62 public EventCollectionDBData (Integer login, 63 Integer context, 64 Integer type, 65 Integer reference, 66 String access) 67 { 68 super(null, 69 null, 70 EventDBInterface.PRIMARY_KEY_NAME, 71 null); 72 73 this.login = login; 74 this.context = context; 75 this.type = type; 76 this.reference = reference; 77 this.access = access; 78 } 79 80 81 83 89 public void insertIntoQuery (TKQuery query) 90 throws SQLException  91 { 92 query.setQueryParams(LoginDBInterface.PRIMARY_KEY_NAME, this.login); 93 query.setQueryParams(ContextDBInterface.PRIMARY_KEY_NAME, this.context); 94 query.setQueryParams("OBJECT_TYPE", this.type); 95 query.setQueryParams("OBJECT_REFERENCE", this.reference); 96 query.setQueryParams("POLICY_ACCESS", this.access); 97 } 98 99 } 100 | Popular Tags |