public class AbstractJDBCHashSet<K,T extends JDBCHashedTable>
Base class for JDBC backed hash set that delegates to a JDBC backed hash map where the values are all Unit and not actually persisted. Iteration order is order of insertion. Iterators can remove().
See class AbstractJDBCHashMap
for implementation details.
class AbstractJDBCHashMap
Constructor and Description |
---|
AbstractJDBCHashSet(T table,
boolean loadOnInit,
int maxBuckets)
Base class for JDBC backed hash set that delegates to a JDBC backed hash map where the values are all
Unit and not actually persisted. Iteration order is order of insertion. Iterators can remove().
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(K element) |
void |
addElementToInsert(org.jetbrains.exposed.sql.statements.InsertStatement insert,
K entry,
java.util.List<kotlin.jvm.functions.Function0> finalizables)
Implementation should marshall the element to the insert statement.
|
void |
clear() |
boolean |
contains(java.lang.Object element) |
K |
elementFromRow(org.jetbrains.exposed.sql.ResultRow row)
Implementation should return the element object marshalled from the database table row.
|
AbstractJDBCHashMap<K,kotlin.Unit,T> |
getInnerMap() |
int |
getSize() |
T |
getTable() |
boolean |
isEmpty() |
java.util.Iterator<K> |
iterator() |
boolean |
remove(java.lang.Object element) |
int |
size() |
public AbstractJDBCHashSet(T table, boolean loadOnInit, int maxBuckets)
Base class for JDBC backed hash set that delegates to a JDBC backed hash map where the values are all Unit and not actually persisted. Iteration order is order of insertion. Iterators can remove().
See class AbstractJDBCHashMap
for implementation details.
class AbstractJDBCHashMap
public AbstractJDBCHashMap<K,kotlin.Unit,T> getInnerMap()
public boolean add(K element)
public void clear()
public java.util.Iterator<K> iterator()
public boolean remove(java.lang.Object element)
public int getSize()
public int size()
public boolean contains(java.lang.Object element)
public boolean isEmpty()
public K elementFromRow(org.jetbrains.exposed.sql.ResultRow row)
Implementation should return the element object marshalled from the database table row.
See example implementations in class JDBCHashSet
.
class JDBCHashSet
public void addElementToInsert(org.jetbrains.exposed.sql.statements.InsertStatement insert, K entry, java.util.List<kotlin.jvm.functions.Function0> finalizables)
Implementation should marshall the element to the insert statement.
If some cleanup is required after the insert statement is executed, such as closing a Blob, then add a closure to the finalizables to do so.
See example implementations in class JDBCHashSet
.
class JDBCHashSet
public T getTable()