Uses of Class
wbs.utils.util.database.WbsField
Packages that use WbsField
Package
Description
A variety of database utilities, primarily making use of SQLite, with some utils for generic games.
-
Uses of WbsField in wbs.utils.util.database
Methods in wbs.utils.util.database that return WbsFieldModifier and TypeMethodDescription@Nullable WbsField@Nullable WbsFieldWbsField.setNotNull(boolean notNull) WbsField.setPrimaryKey(boolean primaryKey) Methods in wbs.utils.util.database that return types with arguments of type WbsFieldMethods in wbs.utils.util.database with parameters of type WbsFieldModifier and TypeMethodDescriptionvoidbooleanWbsTable.addFieldIfNotExists(WbsField field) Adds a field if it doesn't already exist.booleanWbsTable.addNewField(WbsField field) Add a new field, updating the underlying database.WbsRecord.getOrDefault(WbsField field) <T> TWbsRecord.getOrDefault(WbsField field, Class<T> clazz) <T> TbooleanbooleanChecks if a given field on this object matches the default for the field.voidWbsFieldType.prepare(PreparedStatement statement, int index, Object value, WbsField field) booleanWbsTable.removeField(WbsField field) WbsTable.selectOnField(@NotNull WbsField field, @Nullable Object match) WbsTable.selectOnField(@NotNull WbsField field, @Nullable Object match, @Nullable CollateFunction collate) booleanbooleanWbsTable.updateField(WbsField field) Update the definition of a field.
Note that this change is potentially destructive, as it requireMethod parameters in wbs.utils.util.database with type arguments of type WbsFieldModifier and TypeMethodDescriptionWbsTable.selectOnFields(Collection<WbsField> fields, Collection<?> matches) Constructors in wbs.utils.util.database with parameters of type WbsFieldModifierConstructorDescriptionWbsTable(WbsDatabase database, String tableName, @NotNull WbsField... primaryKey) Constructor parameters in wbs.utils.util.database with type arguments of type WbsField