de.hpi.fgis.dude.database.util
Class ColumnInfo

java.lang.Object
  extended by de.hpi.fgis.dude.database.util.ColumnInfo
All Implemented Interfaces:
AutoJsonable

public class ColumnInfo
extends Object
implements AutoJsonable

ColumnInfo represents a column with its name and type.

Author:
Matthias Pohl
See Also:
Schema

Constructor Summary
ColumnInfo(String name, int sqlType)
          Creates a ColumnInfo object with the name and the Types data type representation of the column.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          Returns the column's name.
 int getSQLType()
          Returns the Types datatype of the column.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColumnInfo

public ColumnInfo(String name,
                  int sqlType)
Creates a ColumnInfo object with the name and the Types data type representation of the column.

Parameters:
name - The name of the column.
sqlType - A type value representing the data type of the column.
Method Detail

getName

public String getName()
Returns the column's name.

Returns:
The column's name.

getSQLType

public int getSQLType()
Returns the Types datatype of the column.

Returns:
The column's SQL datatype representation.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.