2004.04.29


com.jdc.rdb.tbl
Class IdGenerator

java.lang.Object
  |
  +--com.jdc.rdb.tbl.IdGenerator

public class IdGenerator
extends Object

IdGenerator generates a unique identifier number for the specified database table row identifier column. This class has not been fully implemented.

Version:
1.0
Author:
Jay Damon

Constructor Summary
IdGenerator(String schemaName, String tableName, String columnName)
          Constructs a new IdGenerator object for the specified schema, table, and identity column with a starting value and increment.
IdGenerator(String schemaName, String tableName, String columnName, int startId, int increment)
          Constructs a new IdGenerator object for the specified schema, table, and identity column with a starting value and increment.
 
Method Summary
 String getColumnName()
          Returns the database table identity column name.
 int getIncrement()
          Returns the database table identity column increment.
 String getSchemaName()
          Returns the database schema name.
 int getStartId()
          Returns the database table identity column starting value.
 String getTableName()
          Returns the database table name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdGenerator

public IdGenerator(String schemaName,
                   String tableName,
                   String columnName)
Constructs a new IdGenerator object for the specified schema, table, and identity column with a starting value and increment.


IdGenerator

public IdGenerator(String schemaName,
                   String tableName,
                   String columnName,
                   int startId,
                   int increment)
Constructs a new IdGenerator object for the specified schema, table, and identity column with a starting value and increment.

Method Detail

getColumnName

public String getColumnName()
Returns the database table identity column name.

Returns:
The database table identity column name.

getIncrement

public int getIncrement()
Returns the database table identity column increment.

Returns:
The database table identity column increment.

getSchemaName

public String getSchemaName()
Returns the database schema name.

Returns:
The database schema name.

getStartId

public int getStartId()
Returns the database table identity column starting value.

Returns:
The database table identity column starting value.

getTableName

public String getTableName()
Returns the database table name.

Returns:
The database table name.

2004.04.29



Copyright © 2004 J. Damon & Co.; All Rights Reserved WorldWide.