org.castor.ddlgen.schemaobject
Class KeyGenerator
- SchemaObject
public abstract class KeyGenerator
Abstract base class for all key generators.
$Revision: 5951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
KeyGenerator(String name, String alias) - Construct key generator with given name and alias.
|
boolean | equals(Object other) -
|
String | getAlias() - Get alias of the key generator.
|
Table | getTable() - Get table the key generator creates keys for.
|
int | hashCode() -
|
void | merge(KeyGenerator keygen) - Check wether this key generator is compatible with the given one to allow merge
of table definitions.
|
void | setAlias(String alias) - Set alias of the key generator.
|
void | setTable(Table table) - Set table the key generator creates keys for.
|
KeyGenerator
protected KeyGenerator(String name,
String alias)
Construct key generator with given name and alias.
name
- Name of the key generator algorithm.alias
- Alias of the key generator.
equals
public final boolean equals(Object other)
getAlias
public final String getAlias()
Get alias of the key generator.
- Alias of the key generator.
getTable
public final Table getTable()
Get table the key generator creates keys for.
- Table the key generator creates keys for.
hashCode
public final int hashCode()
merge
public final void merge(KeyGenerator keygen)
Check wether this key generator is compatible with the given one to allow merge
of table definitions.
keygen
- Key generator to merge.
setAlias
public final void setAlias(String alias)
Set alias of the key generator.
alias
- Alias of the key generator.
setTable
public final void setTable(Table table)
Set table the key generator creates keys for.
table
- Table the key generator creates keys for.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com