Index

A B C D F G H I L M N O P R S T U V 
All Classes|All Packages

A

addReads(Collection<Module>) - Static method in class org.panteleyev.mysqlapi.MySqlClient
This method updates module org.panteleyev.mysqlapi to read given modules.
allowPublicKeyRetrieval(boolean) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets allowPublicKeyRetrieval option.

B

build() - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Builds datasource.

C

CASCADE - org.panteleyev.mysqlapi.annotations.ReferenceOption
Delete or update the row from the parent table, and automatically delete or update the matching rows in the child table.
characterEncoding(String) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets character encoding.
column() - Method in annotation type org.panteleyev.mysqlapi.annotations.ForeignKey
Referenced column.
Column - Annotation Type in org.panteleyev.mysqlapi.annotations
Defines database column.
createTables(Connection, List<Class<? extends TableRecord>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
This method creates table for the specified classes according to their annotations.
createTables(List<Class<? extends TableRecord>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
This method creates table for the specified classes according to their annotations.

D

DataSourceBuilder - Class in org.panteleyev.mysqlapi
This class provides MySQL data source builder.
DataSourceBuilder() - Constructor for class org.panteleyev.mysqlapi.DataSourceBuilder
 
delete(K, Class<? extends TableRecord<K>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Deletes record from the database.
delete(TableRecord) - Method in class org.panteleyev.mysqlapi.MySqlClient
Deleted record from the database.
deleteAll(Class<? extends TableRecord>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Deletes all records from table.
deleteAll(Connection, Class<? extends TableRecord>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Deletes all records from table using provided connection.
dropTables(Connection, List<Class<? extends TableRecord>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Drops specified tables according to their annotations.
dropTables(List<Class<? extends TableRecord>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Drops specified tables according to their annotations.

F

ForeignKey - Annotation Type in org.panteleyev.mysqlapi.annotations
Defines foreign key.

G

generatePrimaryKey(Class<? extends TableRecord<K>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Returns next available primary key value.
get(K, Class<? extends T>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Retrieves record from the database using record primary key.
getAll(Class<T>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Retrieves all records of the specified type.
getAll(Class<T>, Map<K, T>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Retrieves all records of the specified type and fills the map.
getAll(Connection, Class<T>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Retrieves all records of the specified type.
getAll(Connection, Class<T>, Map<K, T>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Retrieves all records of the specified type and fills the map.
getConnection() - Method in class org.panteleyev.mysqlapi.MySqlClient
Returns connection for the current data source.
getDataSource() - Method in class org.panteleyev.mysqlapi.MySqlClient
Return current data source object.
getPrimaryKey() - Method in interface org.panteleyev.mysqlapi.TableRecord
Returns primary key value.
getTableName() - Method in interface org.panteleyev.mysqlapi.TableRecord
Returns table name.
getTableName(Class<? extends TableRecord>) - Static method in interface org.panteleyev.mysqlapi.TableRecord
Returns table name for table class.
getTableSize(Class<? extends TableRecord>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Returns amount of rows in the specified table.
getTableSize(Connection, Class<? extends TableRecord>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Returns amount of rows in the specified table.

H

host(String) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets database host.

I

ID - Static variable in annotation type org.panteleyev.mysqlapi.annotations.Column
Most used value for the primary key column.
Index - Annotation Type in org.panteleyev.mysqlapi.annotations
Defines index for the table column.
insert(int, List<T>) - Method in class org.panteleyev.mysqlapi.MySqlClient
This method inserts multiple records with predefined id using batch insert.
insert(Connection, int, List<T>) - Method in class org.panteleyev.mysqlapi.MySqlClient
This method inserts multiple records with predefined id using batch insert.
insert(Connection, TableRecord) - Method in class org.panteleyev.mysqlapi.MySqlClient
This method inserts new record with predefined id into the database.
insert(TableRecord) - Method in class org.panteleyev.mysqlapi.MySqlClient
This method inserts new record with predefined id into the database.
isAutoIncrement() - Method in annotation type org.panteleyev.mysqlapi.annotations.PrimaryKey
Defines if primary key is auto-incremented integer value.
isJson() - Method in annotation type org.panteleyev.mysqlapi.annotations.Column
Defines JSON column.

L

length() - Method in annotation type org.panteleyev.mysqlapi.annotations.Column
Defines length of the column.
LENGTH - Static variable in annotation type org.panteleyev.mysqlapi.annotations.Column
Default column length.

M

MySqlClient - Class in org.panteleyev.mysqlapi
MySQL API entry point.
MySqlClient() - Constructor for class org.panteleyev.mysqlapi.MySqlClient
Creates MySQLClient object.
MySqlClient(DataSource) - Constructor for class org.panteleyev.mysqlapi.MySqlClient
Creates MySQLClient object with predefined data source.

N

name(String) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets database name
NO_ACTION - org.panteleyev.mysqlapi.annotations.ReferenceOption
NONE - org.panteleyev.mysqlapi.annotations.ReferenceOption
No action is specified in the ON DELETE or ON UPDATE clause.
nullable() - Method in annotation type org.panteleyev.mysqlapi.annotations.Column
Defines if the column can be NULL.

O

onDelete() - Method in annotation type org.panteleyev.mysqlapi.annotations.ForeignKey
ON DELETE reference option.
onUpdate() - Method in annotation type org.panteleyev.mysqlapi.annotations.ForeignKey
ON UPDATE reference option.
org.panteleyev.mysqlapi - module org.panteleyev.mysqlapi
Persistence library provides annotation classes for database access.
org.panteleyev.mysqlapi - package org.panteleyev.mysqlapi
This package defines Java API for MySQL.
org.panteleyev.mysqlapi.annotations - package org.panteleyev.mysqlapi.annotations
This package defines annotations applied to Java classes implementing database table records.

P

password(String) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets database password.
port(int) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets database port.
precision() - Method in annotation type org.panteleyev.mysqlapi.annotations.Column
Defines PRECISION.
PRECISION - Static variable in annotation type org.panteleyev.mysqlapi.annotations.Column
Default precision of BigDecimal column.
preload(Collection<Class<? extends TableRecord>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Pre-loads necessary information from the just opened database.
PrimaryKey - Annotation Type in org.panteleyev.mysqlapi.annotations
Defines if annotated column serves as a primary key.

R

RecordBuilder - Annotation Type in org.panteleyev.mysqlapi.annotations
Defines constructor used for record retrieval.
ReferenceOption - Enum in org.panteleyev.mysqlapi.annotations
Foreign key reference option.
resetPrimaryKey(Class<? extends TableRecord>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Resets primary key generation for the given table.
RESTRICT - org.panteleyev.mysqlapi.annotations.ReferenceOption
Rejects the delete or update operation for the parent table.

S

scale() - Method in annotation type org.panteleyev.mysqlapi.annotations.Column
Defines SCALE.
SCALE - Static variable in annotation type org.panteleyev.mysqlapi.annotations.Column
Default scale of BigDecimal column.
serverTimeZone(String) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets server timezone.
SET_NULL - org.panteleyev.mysqlapi.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.mysqlapi.MySqlClient
Sets a new data source.
storeUuidAsBinary() - Method in annotation type org.panteleyev.mysqlapi.annotations.Column
Defines if UUID column should be stored as binary column.

T

table() - Method in annotation type org.panteleyev.mysqlapi.annotations.ForeignKey
Referenced table class.
Table - Annotation Type in org.panteleyev.mysqlapi.annotations
Defines database table.
TableRecord<K> - Interface in org.panteleyev.mysqlapi
Database record.
toString() - Method in enum org.panteleyev.mysqlapi.annotations.ReferenceOption
 
truncate(Connection, List<Class<? extends TableRecord>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Truncates tables removing all records.
truncate(List<Class<? extends TableRecord>>) - Method in class org.panteleyev.mysqlapi.MySqlClient
Truncates tables removing all records.

U

unique() - Method in annotation type org.panteleyev.mysqlapi.annotations.Column
Defines if column should have unique constraint.
unique() - Method in annotation type org.panteleyev.mysqlapi.annotations.Index
Specifies whether this index must be unique.
update(Connection, TableRecord) - Method in class org.panteleyev.mysqlapi.MySqlClient
Updates record in the database.
update(TableRecord) - Method in class org.panteleyev.mysqlapi.MySqlClient
Updates record in the database.
user(String) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets database user name.
useSsl(boolean) - Method in class org.panteleyev.mysqlapi.DataSourceBuilder
Sets useSSL option.

V

value() - Method in annotation type org.panteleyev.mysqlapi.annotations.Column
SQL name of the column.
value() - Method in annotation type org.panteleyev.mysqlapi.annotations.Index
Name of the index.
value() - Method in annotation type org.panteleyev.mysqlapi.annotations.Table
SQL name of the table.
valueOf(String) - Static method in enum org.panteleyev.mysqlapi.annotations.ReferenceOption
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.panteleyev.mysqlapi.annotations.ReferenceOption
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D F G H I L M N O P R S T U V 
All Classes|All Packages