Tuscany DAS for Relational Databases

org.apache.tuscany.das.rdb
Class Key

java.lang.Object
  extended by org.apache.tuscany.das.rdb.Key

public class Key
extends java.lang.Object

A key instance is used to describe a Table key definition. This is used primarily for compound keys since simple keys are described with a name.


Constructor Summary
Key(java.lang.String columnName)
          Contructor for a single column key
Key(java.lang.String[] columns)
          Constructor for a compound key
 
Method Summary
 java.util.List getColumNames()
          Returns a List of column names that compose the key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Key

public Key(java.lang.String columnName)
Contructor for a single column key

Parameters:
columnName - The single column fo rthe key

Key

public Key(java.lang.String[] columns)
Constructor for a compound key

Parameters:
columns - The array of column names that compose the key
Method Detail

getColumNames

public java.util.List getColumNames()
Returns a List of column names that compose the key

Returns:
a list of column names

Tuscany DAS for Relational Databases

-