de.nava.informa.impl.hibernate
Class ChannelGroup

java.lang.Object
  extended by de.nava.informa.impl.hibernate.ChannelGroup
All Implemented Interfaces:
ChannelGroupIF, WithChildrenMIF, WithIdMIF, WithTitleMIF, Serializable

public class ChannelGroup
extends Object
implements ChannelGroupIF

Hibernate implementation of the ChannelGroupIF interface.

Author:
Niko Schmuck (niko@nava.de)
See Also:
Serialized Form

Constructor Summary
ChannelGroup()
           
ChannelGroup(ChannelGroupIF parent, String title)
           
ChannelGroup(String title)
           
 
Method Summary
 void add(ChannelIF channel)
           
 void addChild(ChannelGroupIF child)
           
 Collection<ChannelIF> getAll()
           
 ChannelIF getById(long channelId)
           
 Set<ChannelIF> getChannels()
           
 Collection<ChannelGroupIF> getChildren()
           
 long getId()
           
 ChannelGroupIF getParent()
           
 String getTitle()
           
 void remove(ChannelIF channel)
           
 void removeChild(ChannelGroupIF child)
           
 void setChannels(Set<ChannelIF> aChannels)
           
 void setChildren(Collection<ChannelGroupIF> aChildren)
           
 void setId(long id)
           
 void setParent(ChannelGroupIF group)
           
 void setTitle(String aTitle)
           
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelGroup

public ChannelGroup()

ChannelGroup

public ChannelGroup(String title)

ChannelGroup

public ChannelGroup(ChannelGroupIF parent,
                    String title)
Method Detail

getId

public long getId()
Specified by:
getId in interface WithIdMIF
Returns:
integer representation of identity.

setId

public void setId(long id)
Specified by:
setId in interface WithIdMIF
Parameters:
id - the identifier of the object to be set.

getTitle

public String getTitle()
Specified by:
getTitle in interface WithTitleMIF
Returns:
title.

setTitle

public void setTitle(String aTitle)
Specified by:
setTitle in interface WithTitleMIF
Parameters:
aTitle - the title of the object to be set

getChannels

public Set<ChannelIF> getChannels()
Returns:
channels.

setChannels

public void setChannels(Set<ChannelIF> aChannels)

add

public void add(ChannelIF channel)
Specified by:
add in interface ChannelGroupIF

remove

public void remove(ChannelIF channel)
Specified by:
remove in interface ChannelGroupIF

getAll

public Collection<ChannelIF> getAll()
Specified by:
getAll in interface ChannelGroupIF
Returns:
A collection of ChannelIF objects.

getById

public ChannelIF getById(long channelId)
Specified by:
getById in interface ChannelGroupIF

getParent

public ChannelGroupIF getParent()
Specified by:
getParent in interface ChannelGroupIF
Returns:
parent group.

setParent

public void setParent(ChannelGroupIF group)
Specified by:
setParent in interface ChannelGroupIF

getChildren

public Collection<ChannelGroupIF> getChildren()
Specified by:
getChildren in interface WithChildrenMIF
Returns:
children.

setChildren

public void setChildren(Collection<ChannelGroupIF> aChildren)

addChild

public void addChild(ChannelGroupIF child)
Specified by:
addChild in interface ChannelGroupIF

removeChild

public void removeChild(ChannelGroupIF child)
Specified by:
removeChild in interface ChannelGroupIF

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a string representation of the object.


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.