2.17.2: 2011-06-17

net.sf.basedb.core.dbengine
Class TableInfo.PrimaryKeyInfo

java.lang.Object
  extended by net.sf.basedb.core.dbengine.TableInfo.PrimaryKeyInfo
Enclosing class:
TableInfo

public static class TableInfo.PrimaryKeyInfo
extends Object

Holds information about the primary key of a table.


Field Summary
private  Set<String> columns
           
private  String name
           
 
Constructor Summary
TableInfo.PrimaryKeyInfo(String name, Set<String> columns)
          Create a new PrimaryKeyInfo object.
 
Method Summary
 Set<String> getColumns()
           
 String getName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private final String name

columns

private final Set<String> columns
Constructor Detail

TableInfo.PrimaryKeyInfo

public TableInfo.PrimaryKeyInfo(String name,
                                Set<String> columns)
Create a new PrimaryKeyInfo object.

Parameters:
name - The name of the primary
columns - The columns that are part of the primary key
Method Detail

getName

public String getName()

getColumns

public Set<String> getColumns()

toString

public String toString()
Overrides:
toString in class Object

2.17.2: 2011-06-17