org.dspace.storage.rdbms
Class ColumnInfo

java.lang.Object
  extended by org.dspace.storage.rdbms.ColumnInfo

public class ColumnInfo
extends Object

Represents a column in an RDBMS table.


Method Summary
 boolean equals(Object other)
           
 String getCanonicalizedName()
          Return the column name.
 String getName()
          Return the column name.
 int getType()
          Return the JDBC type.
 int hashCode()
           
 boolean isPrimaryKey()
          Return true if this column is a primary key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public String getName()
Return the column name.

Returns:
- The column name

getCanonicalizedName

public String getCanonicalizedName()
Return the column name.

Returns:
- The column name

getType

public int getType()
Return the JDBC type. This is one of the constants from java.sql.Types.

Returns:
- The JDBC type
See Also:
Types

isPrimaryKey

public boolean isPrimaryKey()
Return true if this column is a primary key.

Returns:
True if this column is a primary key, false otherwise.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 DuraSpace. All Rights Reserved.