APIdia Launch Partner
Top Fields Constructors Methods
net.ucanaccess.triggers

public final Class AutoNumberManager

extends Object
Class Inheritance
Imports
io.github.spannm.jackcess.Column, io.github.spannm.jackcess.impl.ColumnImpl, net.ucanaccess.jdbc.DBReference, java.util.HashMap, .Map, java.util.concurrent.atomic.AtomicInteger

Field Summary

Modifier and TypeField and Description
private static final Map<Column, AtomicInteger>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static synchronized void
bump(Column col, int newVal)

Bumps the AutoNumber seed to newVal if it is higher than the existing one.

pack-priv static synchronized void
clear()

Clears all AutoNumber column seeds to 0.

pack-priv static synchronized int
getNext(Column col)

Returns the next AutoNumber value, and increments the seed.

public static synchronized void
reset(Column col, int newVal)

Sets the AutoNumber seed to newVal.

private static AtomicInteger
seed(Column col)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

REGISTERback to summary
private static final Map<Column, AtomicInteger> REGISTER

Constructor Detail

AutoNumberManagerback to summary
private AutoNumberManager()

Method Detail

bumpback to summary
public static synchronized void bump(Column col, int newVal)

Bumps the AutoNumber seed to newVal if it is higher than the existing one.

clearback to summary
pack-priv static synchronized void clear()

Clears all AutoNumber column seeds to 0.

getNextback to summary
pack-priv static synchronized int getNext(Column col)

Returns the next AutoNumber value, and increments the seed.

resetback to summary
public static synchronized void reset(Column col, int newVal)

Sets the AutoNumber seed to newVal.

seedback to summary
private static AtomicInteger seed(Column col)