com.gentics.api.lib.datasource
Class DatasourceChannel

java.lang.Object
  extended by com.gentics.api.lib.datasource.DatasourceChannel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DatasourceChannel>

public class DatasourceChannel
extends java.lang.Object
implements java.lang.Comparable<DatasourceChannel>, java.io.Serializable

Class for channels that are written into datasources

See Also:
Serialized Form

Field Summary
protected  int id
          ID of the channel
protected  java.lang.String name
          Name of the channel
 
Constructor Summary
DatasourceChannel(int id, java.lang.String name)
          Create an instance with given id and name
 
Method Summary
 int compareTo(DatasourceChannel that)
           
 boolean equals(DatasourceChannel that)
           
 int getId()
          Get the channel id
 java.lang.String getName()
          Get the channel name
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected int id
ID of the channel


name

protected java.lang.String name
Name of the channel

Constructor Detail

DatasourceChannel

public DatasourceChannel(int id,
                         java.lang.String name)
Create an instance with given id and name

Parameters:
id - id
name - name
Method Detail

getId

public int getId()
Get the channel id

Returns:
channel id

getName

public java.lang.String getName()
Get the channel name

Returns:
channel name

equals

public boolean equals(DatasourceChannel that)

compareTo

public int compareTo(DatasourceChannel that)
Specified by:
compareTo in interface java.lang.Comparable<DatasourceChannel>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Gentics Software GmbH. All Rights Reserved.