|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.impl.hibernate.ChannelSubscription
public class ChannelSubscription
Hibernate implementation of the ChannelSubscriptionIF interface.
Constructor Summary | |
---|---|
ChannelSubscription()
|
|
ChannelSubscription(ChannelIF channel)
Default constructor sets to an inactive channel (with an update interval of 3 hours, used when activated). |
|
ChannelSubscription(ChannelIF channel,
boolean active,
int interval)
|
Method Summary | |
---|---|
ChannelIF |
getChannel()
|
long |
getId()
|
int |
getUpdateInterval()
|
boolean |
isActive()
|
void |
setActive(boolean active)
Activate/Deactivate channel update behaviour. |
void |
setChannel(ChannelIF channel)
|
void |
setId(long id)
|
void |
setUpdateInterval(int interval)
Sets the interval time between channel updates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelSubscription()
public ChannelSubscription(ChannelIF channel)
public ChannelSubscription(ChannelIF channel, boolean active, int interval)
Method Detail |
---|
public long getId()
public void setId(long id)
public ChannelIF getChannel()
getChannel
in interface WithChannelMIF
public void setChannel(ChannelIF channel)
setChannel
in interface WithChannelMIF
channel
- the channel, this object is related topublic boolean isActive()
isActive
in interface ChannelSubscriptionIF
public void setActive(boolean active)
ChannelSubscriptionIF
setActive
in interface ChannelSubscriptionIF
active
- - wether this channel should be updated at all or
not.public int getUpdateInterval()
getUpdateInterval
in interface ChannelSubscriptionIF
public void setUpdateInterval(int interval)
ChannelSubscriptionIF
setUpdateInterval
in interface ChannelSubscriptionIF
interval
- - time in seconds between channel update
retrievals.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |