1 26 27 29 package de.nava.informa.impl.hibernate; 30 31 import de.nava.informa.core.ChannelSubscriptionIF; 32 import de.nava.informa.core.ChannelIF; 33 34 42 public class ChannelSubscription implements ChannelSubscriptionIF, 43 java.io.Serializable { 44 45 private int id; 46 private ChannelIF channel; 47 private boolean active; 48 private int updateInterval; 49 50 public ChannelSubscription() { 51 this(null); 52 } 53 54 58 public ChannelSubscription(ChannelIF channel) { 59 this(channel, false, 3 * 60 * 60); 60 } 61 62 public ChannelSubscription(ChannelIF channel, boolean active, int interval) { 63 this.channel = channel; 64 this.active = active; 65 this.updateInterval = interval; 66 } 67 68 74 public int getIntId() { 75 return id; 76 } 77 78 public void setIntId(int id) { 79 this.id = id; 80 } 81 82 public long getId() { 83 return id; 84 } 85 86 public void setId(long longid) { 87 this.id = (int) longid; 88 } 89 90 94 100 public ChannelIF getChannel() { 101 return channel; 102 } 103 104 public void setChannel(ChannelIF channel) { 105 this.channel = channel; 106 } 107 108 112 public boolean isActive() { 113 return active; 114 } 115 116 public void setActive(boolean active) { 117 this.active = active; 118 } 119 120 124 public int getUpdateInterval() { 125 return updateInterval; 126 } 127 128 public void setUpdateInterval(int interval) { 129 this.updateInterval = interval; 130 } 131 132 } 133 | Popular Tags |