org.lexevs.dao.database.key.incrementer
Interface PrimaryKeyIncrementer

All Known Implementing Classes:
AbstractBigIntKeyIncrementer, AbstractKeyIncrementer, MysqlTableBasedBigIntKeyIncrementer, RandomGuidKeyIncrementer, SequenceBasedBigIntKeyIncrementer

public interface PrimaryKeyIncrementer

The Interface PrimaryKeyIncrementer.

Author:
Kevin Peterson

Nested Class Summary
static class PrimaryKeyIncrementer.KeyType
          The Enum KeyType.
 
Method Summary
 void destroy()
          Destroy.
 int getKeyLength()
          Gets the key length.
 PrimaryKeyIncrementer.KeyType getKeyType()
          Gets the key type.
 java.lang.String getName()
          Gets the name.
 void initialize()
          Initialize.
 java.lang.String nextKey()
          Next key.
 java.lang.String stringValue(java.lang.Object key)
          String value.
 boolean supportsDatabases(DatabaseType databaseType)
          Supports databases.
 java.lang.Object valueOf(java.lang.String key)
          Value of.
 

Method Detail

nextKey

java.lang.String nextKey()
Next key.

Returns:
the string

valueOf

java.lang.Object valueOf(java.lang.String key)
Value of.

Parameters:
key - the key
Returns:
the object

getKeyType

PrimaryKeyIncrementer.KeyType getKeyType()
Gets the key type.

Returns:
the key type

stringValue

java.lang.String stringValue(java.lang.Object key)
String value.

Parameters:
key - the key
Returns:
the string

getKeyLength

int getKeyLength()
Gets the key length.

Returns:
the key length

getName

java.lang.String getName()
Gets the name.

Returns:
the name

initialize

void initialize()
Initialize.


destroy

void destroy()
Destroy.


supportsDatabases

boolean supportsDatabases(DatabaseType databaseType)
Supports databases.

Parameters:
databaseType - the database type
Returns:
true, if successful

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.