public interface

IDGenerator

org.apache.commons.betwixt.io.IDGenerator
Known Indirect Subclasses

Class Overview

Interface allowing pluggable ID attribute value generators.

IDGenerator's are used to generate ID attribute values by BeanWriter. A user can specify the generation mechanism by passing an implementation to setIdGenerator(IDGenerator).

Standard implementations are included with that supply random and sequantial values.

Summary

Public Methods
abstract String getLastId()
Get the last ID value generated.
abstract String nextId()
Generate a new ID attribute value.

Public Methods

public abstract String getLastId ()

Get the last ID value generated.

Returns
  • the last value generated

public abstract String nextId ()

Generate a new ID attribute value.

Returns
  • next value