Index
All Classes and Interfaces|All Packages|Serialized Form
A
- addBlacklistField(String) - Method in class onl.ycode.stormify.StormifyManager
-
Adds a field to the blacklist.
- apply(String, String, String, String, int, int) - Method in interface onl.ycode.stormify.SqlDialect.QueryFormatter
-
Generate a SQL pagination query with the given parameters.
- autoPopulate() - Method in class onl.ycode.stormify.AutoTable
-
Automatically populates the fields of this object.
- AutoTable - Class in onl.ycode.stormify
-
A common abstract class to support auto-populating of fields.
- AutoTable() - Constructor for class onl.ycode.stormify.AutoTable
C
- camelCase - Static variable in interface onl.ycode.stormify.NamingPolicy
-
Use the name as is.
- castTo(Class<T>, F) - Static method in class onl.ycode.stormify.TypeUtils
-
Convert a value to the target class
- checkConsistency() - Method in class onl.ycode.stormify.TableInfo
-
Check the consistency of the table.
- closeDataSource() - Method in class onl.ycode.stormify.StormifyManager
-
Closes the data source used by the controller.
- convert(String) - Method in interface onl.ycode.stormify.NamingPolicy
-
Convert a class or field name to a table or column name.
- creatable() - Element in annotation interface onl.ycode.stormify.DbField
-
Whether the field can be used when creating a new record.
- create() - Method in interface onl.ycode.stormify.CRUDTable
-
Create a new object in the database.
- create(T) - Method in class onl.ycode.stormify.StormifyManager
-
Creates a new entity in the database.
- CRUDTable - Interface in onl.ycode.stormify
-
A common interface for all tables that can perform CRUD operations.
D
- DbField - Annotation Interface in onl.ycode.stormify
-
An annotation to mark a field as a database field.
- DbTable - Annotation Interface in onl.ycode.stormify
-
An annotation to mark a class as a database table.
- delete() - Method in interface onl.ycode.stormify.CRUDTable
-
Delete an existing object from the database.
- delete(T) - Method in class onl.ycode.stormify.StormifyManager
-
Deletes an entity from the database.
E
- equals(Object) - Method in class onl.ycode.stormify.AutoTable
- executeUpdate(String, Object...) - Method in class onl.ycode.stormify.StormifyManager
-
Executes a query and returns the number of rows affected.
F
- FAILSAFE - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
A failsafe dialect, mostly in case of an error.
- FieldInfo - Class in onl.ycode.stormify
-
Information about a field in a class.
- findAll(Class<T>, String, Object...) - Method in class onl.ycode.stormify.StormifyManager
-
Finds all the entities of the given class, while applying the given where clause.
- findById(Class<T>, Object) - Method in class onl.ycode.stormify.StormifyManager
-
Finds the entity of the given class with the given ID.
G
- get() - Method in interface onl.ycode.stormify.SafeSupplier
-
Get a value.
- getClassType() - Method in class onl.ycode.stormify.TableInfo
-
Get the class type of the table.
- getDataSource() - Method in class onl.ycode.stormify.StormifyManager
-
Returns the data source used by the controller.
- getDbField(String) - Method in class onl.ycode.stormify.TableInfo
-
Get a reference of the field, given a specific database column name.
- getDbName() - Method in class onl.ycode.stormify.FieldInfo
-
Get the name of the field, as used for the database queries.
- getDetails(Class<T>) - Method in interface onl.ycode.stormify.CRUDTable
-
In a parent-child relationship, get all the children that have as parent the current object.
- getDetails(Class<T>, String) - Method in interface onl.ycode.stormify.CRUDTable
-
In a parent-child relationship, get all the children that have as parent the current object.
- getDetails(M, Class<D>) - Method in class onl.ycode.stormify.StormifyManager
-
Returns the details of the parent object.
- getDetails(M, Class<D>, String) - Method in class onl.ycode.stormify.StormifyManager
-
Returns the details of the parent object.
- getField(String) - Method in class onl.ycode.stormify.TableInfo
-
Get a reference of the field, given a specific field name.
- getFields() - Method in class onl.ycode.stormify.TableInfo
-
Get a reference of the fields of the table.
- getLogger() - Method in class onl.ycode.stormify.StormifyManager
-
Returns the logger used by the controller.
- getName() - Method in class onl.ycode.stormify.FieldInfo
-
Get the name of the field in the class.
- getNamingPolicy() - Method in class onl.ycode.stormify.StormifyManager
-
Returns the naming policy used by the controller.
- getPrimaryKey() - Method in class onl.ycode.stormify.TableInfo
-
Get the primary key of the table.
- getPrimaryKeys() - Method in class onl.ycode.stormify.TableInfo
-
Get a list of all primary keys of the table.
- getResult() - Method in class onl.ycode.stormify.SPParam
-
Get the result of the stored procedure.
- getSequence() - Method in class onl.ycode.stormify.FieldInfo
-
Get the name of the sequence used for the primary key.
- getSqlDialect() - Method in class onl.ycode.stormify.StormifyManager
-
Returns the SQL dialect used by the controller.
- getTableInfo(Class<?>) - Method in class onl.ycode.stormify.StormifyManager
-
Returns the table information for the given class.
- getTableName() - Method in class onl.ycode.stormify.TableInfo
-
Get the name of the table.
- getType() - Method in class onl.ycode.stormify.FieldInfo
-
Get the type of the field.
- getValue(Object) - Method in class onl.ycode.stormify.FieldInfo
-
Get the value of the field in a given object.
- getWrapper(Class<?>) - Static method in class onl.ycode.stormify.TypeUtils
-
Get the boxed type class for a primitive class
H
- hashCode() - Method in class onl.ycode.stormify.AutoTable
I
- in(Class<T>, T) - Static method in class onl.ycode.stormify.SPParam
-
Create a new IN parameter.
- inout(Class<T>, T) - Static method in class onl.ycode.stormify.SPParam
-
Create a new INOUT parameter.
- isDataSourcePresent() - Method in class onl.ycode.stormify.StormifyManager
-
Checks if the data source is present in the controller.
- isInsertable() - Method in class onl.ycode.stormify.FieldInfo
-
Check if the field is used when creating a new database entry.
- isPrimaryKey() - Method in class onl.ycode.stormify.FieldInfo
-
Check if the field is a primary key.
- isReference() - Method in class onl.ycode.stormify.FieldInfo
-
Check if the field is a reference to another table.
- isStrictMode() - Method in class onl.ycode.stormify.StormifyManager
-
Set the object mapping to strict mode.
- isUpdatable() - Method in class onl.ycode.stormify.FieldInfo
-
Check if the field is used when updating a database entry.
L
- lowerCaseWithUnderscores - Static variable in interface onl.ycode.stormify.NamingPolicy
-
Convert the name to lower case with underscores (snake_case).
M
- MARIA_DB_NEW - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The MariaDB dialect for versions 10.3 and newer.
- MARIA_DB_OLD - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The MariaDB dialect for versions older than 10.3.
- markPopulated() - Method in class onl.ycode.stormify.AutoTable
-
Marks this object as already populated, so no further population needs to be done.
- MYSQL_NEW - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The MySQL dialect for versions 8 and newer.
- MYSQL_OLD - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The MySQL dialect for versions older than 8.
N
- name() - Element in annotation interface onl.ycode.stormify.DbField
-
The name of the field in the database.
- name() - Element in annotation interface onl.ycode.stormify.DbTable
-
The name of the table in the database.
- NamingPolicy - Interface in onl.ycode.stormify
-
Naming policy for converting class names to table names and field names to column names.
O
- onInit(Runnable) - Method in class onl.ycode.stormify.StormifyManager
-
Runs the given code block when the controller is initialized.
- onl.ycode.stormify - package onl.ycode.stormify
-
This package contains the core implementation of the Stormify platform.
- ORACLE_NEW - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The Oracle dialect for versions 12 and newer.
- ORACLE_OLD - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The Oracle dialect for versions older than 12.
- orderByIdDialect - Variable in enum class onl.ycode.stormify.SqlDialect
-
A helper method to ask for order by id on different databases.
- out(Class<T>) - Static method in class onl.ycode.stormify.SPParam
-
Create a new OUT parameter.
P
- populate() - Method in interface onl.ycode.stormify.CRUDTable
-
Populate the fields of the object from the database manually.
- populate(T) - Method in class onl.ycode.stormify.StormifyManager
-
Populates the entity with the data from the database.
- POSTGRESQL - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The PostgreSQL dialect.
- primaryKey() - Element in annotation interface onl.ycode.stormify.DbField
-
Whether the field is a primary key.
- primarySequence() - Element in annotation interface onl.ycode.stormify.DbField
-
The name of the primary key sequence in the database.
Q
- QueryException - Exception in onl.ycode.stormify
-
An exception that is thrown when an error occurs while executing a query.
- QueryException(String) - Constructor for exception onl.ycode.stormify.QueryException
-
Create a new QueryException with a message.
- QueryException(String, Throwable) - Constructor for exception onl.ycode.stormify.QueryException
-
Create a new QueryException with a message and a cause.
- queryFormatter - Variable in enum class onl.ycode.stormify.SqlDialect
-
A query formatter that generates SQL queries with different pagination methods.
R
- read(Class<T>, String, Object...) - Method in class onl.ycode.stormify.StormifyManager
-
Executes a read operation and returns the list of results.
- readCursor(Class<T>, String, Consumer<T>, Object...) - Method in class onl.ycode.stormify.StormifyManager
-
Executes a read operation and returns the number of rows affected.
- readOne(Class<T>, String, Object...) - Method in class onl.ycode.stormify.StormifyManager
-
Executes a read operation and returns a single result.
- registerConversion(Class<F>, Class<T>, Function<F, T>) - Static method in class onl.ycode.stormify.TypeUtils
-
Register a conversion function from sourceClass to targetClass.
- registerPrimaryKeyResolver(int, BiPredicate<String, String>) - Method in class onl.ycode.stormify.StormifyManager
-
Registers a primary key resolver function that will be used to determine the primary key field name for a given table.
- removeBlacklistField(String) - Method in class onl.ycode.stormify.StormifyManager
-
Removes a field from the blacklist.
- run() - Method in interface onl.ycode.stormify.SafeRunnable
-
The code inside the transaction that may throw an exception.
S
- SafeRunnable - Interface in onl.ycode.stormify
-
A functional interface that can be used to run code that may throw an exception.
- SafeSupplier<T> - Interface in onl.ycode.stormify
-
A functional interface that can be used to get a value, and throw an exception if an error occurs.
- sequenceDialect - Variable in enum class onl.ycode.stormify.SqlDialect
-
A helper method to ask for sequences on different databases.
- setDataSource(DataSource) - Method in class onl.ycode.stormify.StormifyManager
-
Sets the data source to be used by the controller.
- setLogger(Logger) - Method in class onl.ycode.stormify.StormifyManager
-
Sets the logger to be used by the controller.
- setNamingPolicy(NamingPolicy) - Method in class onl.ycode.stormify.StormifyManager
-
Sets the naming policy to be used by the controller.
- setStrictMode(boolean) - Method in class onl.ycode.stormify.StormifyManager
-
Set the object mapping to strict mode.
- setValue(Object, Object) - Method in class onl.ycode.stormify.FieldInfo
-
Set the value of the field in a given object.
- SPParam<T> - Class in onl.ycode.stormify
-
This class is used to pass parameters to stored procedures.
- SQL_SERVER_NEW - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The SQL Server dialect for versions 2012 and newer.
- SQL_SERVER_OLD - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The SQL Server dialect for versions older than 2012.
- SqlDialect - Enum Class in onl.ycode.stormify
-
An enumeration of SQL dialects for different databases.
- SqlDialect.QueryFormatter - Interface in onl.ycode.stormify
-
A query builder for various SQL dialects.
- SQLITE - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The SQLite dialect.
- storedProcedure(String, SPParam<?>...) - Method in class onl.ycode.stormify.StormifyManager
-
Executes a stored procedure with the given name and parameters.
- stormify() - Static method in class onl.ycode.stormify.StormifyManager
-
Returns the singleton instance of the controller.
- StormifyManager - Class in onl.ycode.stormify
-
The main controller for the Stormify system.
T
- TableInfo - Class in onl.ycode.stormify
-
Parse a class and handle it as a database table.
- tableName() - Method in interface onl.ycode.stormify.CRUDTable
-
Get the database table name of the object.
- toString() - Method in class onl.ycode.stormify.AutoTable
- toString() - Method in class onl.ycode.stormify.FieldInfo
- toString() - Method in class onl.ycode.stormify.SPParam
- toString() - Method in class onl.ycode.stormify.TableInfo
- transaction(SafeRunnable) - Method in class onl.ycode.stormify.StormifyManager
-
Executes a transaction with the given block of code.
- TypeUtils - Class in onl.ycode.stormify
-
Utility class for converting between different types and handling exceptions.
U
- UNKNOWN - Enum constant in enum class onl.ycode.stormify.SqlDialect
-
The dialect that is used when the database product name cannot be determined.
- updatable() - Element in annotation interface onl.ycode.stormify.DbField
-
Whether the field can be used when updating a record.
- update() - Method in interface onl.ycode.stormify.CRUDTable
-
Update an existing object in the database.
- update(T) - Method in class onl.ycode.stormify.StormifyManager
-
Updates an entity in the database.
- upperCaseWithUnderscores - Static variable in interface onl.ycode.stormify.NamingPolicy
-
Convert the name to upper case with underscores (SCREAMING_SNAKE_CASE).
V
- valueOf(String) - Static method in enum class onl.ycode.stormify.SqlDialect
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class onl.ycode.stormify.SqlDialect
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form