| Package | Description |
|---|---|
| net.pterodactylus.util.database |
Helper and abstraction classes for database interaction.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AndWhereClause
WhereClause implementation that performs an AND conjunction of an
arbitrary amount of where clauses. |
class |
MatchAllWhereClause
TODO
|
class |
OrWhereClause
WhereClause implementation that performs an OR conjunction of an
arbitrary amount of where clauses. |
class |
ValueFieldWhereClause
A WHERE clause that requires a field to match a value.
|
| Modifier and Type | Method and Description |
|---|---|
OrWhereClause |
OrWhereClause.add(WhereClause whereClause)
Adds the given WHERE clause.
|
AndWhereClause |
AndWhereClause.add(WhereClause whereClause)
Adds the given WHERE clause.
|
void |
Query.addWhereClause(WhereClause... whereClauses)
Adds one or more WHERE clauses to this query.
|
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.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 |
|---|
AndWhereClause(WhereClause... whereClauses)
Creates a new AND where clause.
|
OrWhereClause(WhereClause... whereClauses)
Creates a new OR where clause.
|
| Constructor and Description |
|---|
AndWhereClause(Collection<WhereClause> whereClauses)
Creates a new AND where clause.
|
OrWhereClause(Collection<WhereClause> whereClauses)
Creates a new OR where clause.
|
Copyright © 2026. All rights reserved.