edu.udo.cs.miningmart.m4
Interface PrimaryKey

All Superinterfaces:
Key, M4Data, M4Object
All Known Implementing Classes:
PrimaryKey

public interface PrimaryKey
extends Key

A PrimaryKey models the fact that some Columns of a Columnset enable a unique identification of each row in that Columnset. That is, the combination of entries of the Columns belonging to the PrimaryKey is enough to identify each row. Each PrimaryKey belongs to exactly one Columnset and can have a number of Columns, all of which must belong to that Columnset.

Version:
$Id: PrimaryKey.java,v 1.4 2006/09/27 14:59:58 euler Exp $
Author:
Timm Euler, Daniel Hakenjos

Method Summary
 void addColumn(Column column)
           
 PrimaryKey copy(Columnset newColumnSet)
           
 java.util.Collection getAllColumns()
           
 Columnset getColumnset()
           
 void removeAllColumns()
           
 void removeColumn(java.lang.String name)
           
 void setColumnset(Columnset columnSet)
           
 
Methods inherited from interface edu.udo.cs.miningmart.m4.Key
getForeignKeyColumnset, getPrimaryKeyColumnset, setForeignKeyColumnset, setPrimaryKeyColumnset
 
Methods inherited from interface edu.udo.cs.miningmart.m4.M4Data
deleteSoon, getDocumentation, getValidName, isDirty, isWaitingForDelete, setDocumentation
 
Methods inherited from interface edu.udo.cs.miningmart.m4.M4Object
doPrint, doPrint, equals, executeBusinessSingleValueSqlRead, executeBusinessSingleValueSqlReadL, executeBusinessSqlRead, executeBusinessSqlWrite, executeM4SingleValueSqlRead, executeM4SingleValueSqlReadL, executeM4SqlRead, executeM4SqlWrite, getCasePrintObject, getId, getM4Db, getM4ObjectFromCache, getName, getNextM4SequenceValue, isNew, load, print, putM4ObjectToCache, replaceSpacesInName, setId, setName, setNotNew
 

Method Detail

addColumn

void addColumn(Column column)
               throws M4Exception
Throws:
M4Exception

copy

PrimaryKey copy(Columnset newColumnSet)
                throws M4Exception
Throws:
M4Exception

getColumnset

Columnset getColumnset()

setColumnset

void setColumnset(Columnset columnSet)
                  throws M4Exception
Throws:
M4Exception

getAllColumns

java.util.Collection getAllColumns()
                                   throws M4Exception
Throws:
M4Exception

removeAllColumns

void removeAllColumns()
                      throws M4Exception
Throws:
M4Exception

removeColumn

void removeColumn(java.lang.String name)
                  throws M4Exception
Throws:
M4Exception


Copyright © 2001-2005