| Package | Description |
|---|---|
| net.pterodactylus.util.database |
Helper and abstraction classes for database interaction.
|
| Modifier and Type | Method and Description |
|---|---|
static <D extends DataObject<D>> |
DataObject.create(Database database,
DataObjectFactory<D> dataObjectFactory,
ValueField... valueFields)
Creates a new data object with the given value fields.
|
static <D extends DataObject<D>> |
DataObject.deleteById(Database database,
DataObjectFactory<D> dataObjectFactory,
long id)
Deletes the data object with the given ID from the database.
|
static <D extends DataObject<D>> |
DataObject.deleteByWhereClause(Database database,
DataObjectFactory<D> dataObjectFactory,
WhereClause whereClause)
Deletes all objects from the database that match the given WHERE clause.
|
static <D extends DataObject<D>> |
DataObject.loadAllByWhereClause(Database database,
DataObjectFactory<D> dataObjectFactory,
WhereClause whereClause,
OrderField... orderFields)
Loads all data objects that match the given where clause from the given
database.
|
static <D extends DataObject<D>> |
DataObject.loadById(Database database,
DataObjectFactory<D> dataObjectFactory,
long id)
Loads a data object from the given database by the given ID.
|
static <D extends DataObject<D>> |
DataObject.loadByWhereClause(Database database,
DataObjectFactory<D> dataObjectFactory,
WhereClause whereClause,
OrderField... orderFields)
Loads the first data object that matches the given where clause from the
given database.
|
| Constructor and Description |
|---|
DataObject(DataObjectFactory<D> dataObjectFactory,
long id)
Creates a new data object.
|
Copyright © 2026. All rights reserved.