pl.kernelpanic.dbmonster.generator
Interface KeyGenerator

All Known Implementing Classes:
MaxKeyGenerator, StringKeyGenerator

public interface KeyGenerator

The interface which every key generator must implement.

Version:
$Id: KeyGenerator.java,v 1.2 2004/06/14 19:26:16 majek Exp $
Author:
Piotr Maj <pm@jcake.com>

Method Summary
 List generate()
          Generates a primary key.
 List getColumns()
          Returns columns.
 Key getKey()
          Returns the key
 void setKey(Key key)
          Sets the key.
 

Method Detail

setKey

void setKey(Key key)
Sets the key.

Parameters:
key - a key

getKey

Key getKey()
Returns the key


getColumns

List getColumns()
Returns columns.

Returns:
a list of columns

generate

List generate()
              throws Exception
Generates a primary key.

Returns:
a list of generated Columns.
Throws:
Exception - if generation is not possible


Copyright © 2003-2006 .:. kernelpanic.pl .:.. All Rights Reserved.