public class IdManager
extends java.lang.Object
mkt.DoIdent
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_ID |
Constructor and Description |
---|
IdManager(java.sql.Connection connection)
Constructs a new ID manager for the specified database connection.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
free()
Frees external resources.
|
static java.lang.String |
getIdEntityColumnName() |
static java.lang.String |
getIdTableName() |
static java.lang.String |
getIdValueColumnName() |
Identifier |
getNewIdentifier(java.lang.String entityName)
Returns a new identifier of the specified entity.
|
static void |
setIdTableNames(java.lang.String idTableName,
java.lang.String idEntityColumnName,
java.lang.String idValueColumnName)
Sets the table names for internal numbers if it differs from "IdentCnt", "Entity" and "IdentNr".
|
public static final int ERROR_ID
public IdManager(java.sql.Connection connection)
public static void setIdTableNames(java.lang.String idTableName, java.lang.String idEntityColumnName, java.lang.String idValueColumnName)
idTableName
- the table nameidEntityColumnName
- the column nameidValueColumnName
- the column name containing the valuepublic static java.lang.String getIdTableName()
public static java.lang.String getIdEntityColumnName()
public static java.lang.String getIdValueColumnName()
public Identifier getNewIdentifier(java.lang.String entityName)
entityName
- the name of the entity to retrieve the identifierpublic void free()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de