C D F G I L N O P R S T U V
C
- CASCADE - org.panteleyev.persistence.annotations.ReferenceOption
-
Delete or update the row from the parent table, and automatically delete or update the matching rows in the child table.
- createTables(List<Class<? extends Record>>) - Method in class org.panteleyev.persistence.DAO
-
This method creates table for the specified classes according to their annotations.
D
- DAO - Class in org.panteleyev.persistence
-
Persistence API entry point.
- DAO() - Constructor for class org.panteleyev.persistence.DAO
- DAO(DataSource) - Constructor for class org.panteleyev.persistence.DAO
- delete(Integer, Class<? extends Record>) - Method in class org.panteleyev.persistence.DAO
-
Deletes record from the database.
- delete(Record) - Method in class org.panteleyev.persistence.DAO
-
Deleted record from the database.
- deleteAll(Class<? extends Record>) - Method in class org.panteleyev.persistence.DAO
-
Deletes all records from table.
- deleteAll(Connection, Class<? extends Record>) - Method in class org.panteleyev.persistence.DAO
-
Deletes all records from table using provided connection.
- dropTables(List<Class<? extends Record>>) - Method in class org.panteleyev.persistence.DAO
-
Drops specified tables according to their annotations.
F
- Field - Annotation Type in org.panteleyev.persistence.annotations
-
Defines database record field.
- ForeignKey - Annotation Type in org.panteleyev.persistence.annotations
-
Defines foreign key.
G
- generatePrimaryKey(Class<? extends Record>) - Method in class org.panteleyev.persistence.DAO
-
Returns next available primary key value.
- get(Integer, Class<? extends T>) - Method in class org.panteleyev.persistence.DAO
-
Retrieves record from the database using record ID.
- getAll(Class<T>) - Method in class org.panteleyev.persistence.DAO
-
Retrieves all records of the specified type.
- getAll(Class<T>, Map<Integer, T>) - Method in class org.panteleyev.persistence.DAO
-
Retrieves all records of the specified type and fills the map.
- getConnection() - Method in class org.panteleyev.persistence.DAO
-
Returns connection for the current data source.
- getDataSource() - Method in class org.panteleyev.persistence.DAO
-
Return current data source object.
- getId() - Method in interface org.panteleyev.persistence.Record
-
Returns id of the record.
- getTableName() - Method in interface org.panteleyev.persistence.Record
-
Returns table name.
- getTableName(Class<? extends Record>) - Static method in interface org.panteleyev.persistence.Record
-
Returns table name for table class.
I
- ID - Static variable in annotation type org.panteleyev.persistence.annotations.Field
-
Most used value for the primary key field.
- Index - Annotation Type in org.panteleyev.persistence.annotations
-
Defines index for the table field.
- insert(int, List<T>) - Method in class org.panteleyev.persistence.DAO
-
This method inserts multiple records with predefined id using batch insert.
- insert(Connection, int, List<T>) - Method in class org.panteleyev.persistence.DAO
-
This method inserts multiple records with predefined id using batch insert.
- insert(Connection, T) - Method in class org.panteleyev.persistence.DAO
-
This method inserts new record with predefined id into the database.
- insert(T) - Method in class org.panteleyev.persistence.DAO
-
This method inserts new record with predefined id into the database.
L
- LENGTH - Static variable in annotation type org.panteleyev.persistence.annotations.Field
-
Default field length.
N
- NO_ACTION - org.panteleyev.persistence.annotations.ReferenceOption
-
Same as
ReferenceOption.RESTRICT - NONE - org.panteleyev.persistence.annotations.ReferenceOption
-
No action is specified in the ON DELETE or ON UPDATE clause.
O
- org.panteleyev.persistence - module org.panteleyev.persistence
-
Persistence library provides annotation classes for database access.
- org.panteleyev.persistence - package org.panteleyev.persistence
-
This package defines persistence API.
- org.panteleyev.persistence.annotations - package org.panteleyev.persistence.annotations
-
This package defines annotations applied to Java classes implementing database table records.
P
- PRECISION - Static variable in annotation type org.panteleyev.persistence.annotations.Field
-
Default precision of BigDecimal field.
- preload(Collection<Class<? extends Record>>) - Method in class org.panteleyev.persistence.DAO
-
Pre-loads necessary information from the just opened database.
R
- Record - Interface in org.panteleyev.persistence
-
Database record.
- RecordBuilder - Annotation Type in org.panteleyev.persistence.annotations
-
Defines constructor used for record retrieval.
- ReferenceOption - Enum in org.panteleyev.persistence.annotations
-
Foreign key reference option.
- resetPrimaryKey(Class<? extends Record>) - Method in class org.panteleyev.persistence.DAO
-
Resets primary key generation for the given table.
- RESTRICT - org.panteleyev.persistence.annotations.ReferenceOption
-
Rejects the delete or update operation for the parent table.
S
- SCALE - Static variable in annotation type org.panteleyev.persistence.annotations.Field
-
Default scale of BigDecimal field.
- SET_NULL - org.panteleyev.persistence.annotations.ReferenceOption
-
Delete or update the row from the parent table, and set the foreign key column or columns in the child table to NULL.
- setDataSource(DataSource) - Method in class org.panteleyev.persistence.DAO
-
Sets a new data source.
- setId(int) - Method in interface org.panteleyev.persistence.Record
-
Sets id of the record.
T
- Table - Annotation Type in org.panteleyev.persistence.annotations
-
Defines database table.
- toString() - Method in enum org.panteleyev.persistence.annotations.ReferenceOption
- truncate(List<Class<? extends Record>>) - Method in class org.panteleyev.persistence.DAO
-
Truncates tables removing all records.
U
- update(Connection, T) - Method in class org.panteleyev.persistence.DAO
-
Updates record in the database.
- update(T) - Method in class org.panteleyev.persistence.DAO
-
Updates record in the database.
V
- valueOf(String) - Static method in enum org.panteleyev.persistence.annotations.ReferenceOption
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.panteleyev.persistence.annotations.ReferenceOption
-
Returns an array containing the constants of this enum type, in the order they are declared.