A B C D E G M O P Q R S U V 
All Classes All Packages

A

ASQLContext<T> - Interface in com.glyart.asql.common.context
Represents a generic ASQLContext.
async(Runnable) - Method in interface com.glyart.asql.common.context.ContextScheduler
Executes an asynchronous task which will be only ran once.
async(Runnable, long, long) - Method in interface com.glyart.asql.common.context.ContextScheduler
Executes an asynchronous repeating task every given ticks, after the given ticks delay time.

B

BatchPreparedStatementSetter - Interface in com.glyart.asql.common.functions
Represents a batch update callback interface used by the DataTemplate class.
batchUpdate(String, BatchPreparedStatementSetter) - Method in class com.glyart.asql.common.database.DataTemplate
Performs multiple update operations using a single SQL statement.
batchUpdate(String, List<Object[]>) - Method in class com.glyart.asql.common.database.DataTemplate
Performs multiple update operations using a single SQL statement.
batchUpdate(String, List<S>, ParametrizedPreparedStatementSetter<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Performs multiple update operations using a single SQL statement.
build() - Method in class com.glyart.asql.common.database.DataSourceCredentials.DataSourceCredentialsBuilder
Builds a DataSourceCredentials object, ready to be passed to a ASQLContext implementation.
builder() - Static method in class com.glyart.asql.common.database.DataSourceCredentials
 

C

close() - Method in interface com.glyart.asql.common.database.DataSourceHandler
Closes the connection to a data source.
close() - Method in class com.glyart.asql.common.defaults.DefaultDataSourceHandler
 
closeConnection(Connection) - Method in class com.glyart.asql.common.database.DataTemplate
Closes a connection using DataSourceHandler's implementation.
closeResultSet(ResultSet) - Method in class com.glyart.asql.common.database.DataTemplate
Tries to close a ResultSet object.
closeStatement(Statement) - Method in class com.glyart.asql.common.database.DataTemplate
Tries to close a statement (accepts PreparedStatement objects).
com.glyart.asql.common.context - package com.glyart.asql.common.context
Contains an abstract level about the context of aSQL.
com.glyart.asql.common.database - package com.glyart.asql.common.database
Contains classes that handle a data source connection.
com.glyart.asql.common.defaults - package com.glyart.asql.common.defaults
Contains default implementations of some interfaces used by aSQL.
com.glyart.asql.common.functions - package com.glyart.asql.common.functions
Contains useful interfaces that model ways to execute data access operations.
com.glyart.asql.common.utils - package com.glyart.asql.common.utils
 
CONNECTION_POOL - com.glyart.asql.common.database.Strategy
Represents that this DataSourceHandler implementation will be connection-pool based.
ContextScheduler - Interface in com.glyart.asql.common.context
Represents a scheduling behavior.
createPreparedStatement(Connection) - Method in class com.glyart.asql.common.defaults.DefaultCreator
 
createPreparedStatement(Connection) - Method in interface com.glyart.asql.common.functions.PreparedStatementCreator
Creates a PreparedStatement in this connection.

D

DataSourceCredentials - Class in com.glyart.asql.common.database
Represents the credentials for a connection to a data source.
DataSourceCredentials(Properties) - Constructor for class com.glyart.asql.common.database.DataSourceCredentials
Construct a DataSourceCredentials object by a given properties object.
DataSourceCredentials.DataSourceCredentialsBuilder - Class in com.glyart.asql.common.database
Represents a builder for creating an instance of DataSourceCredential.
DataSourceHandler - Interface in com.glyart.asql.common.database
Represents the interaction logic for a data source.
DataTemplate<T extends ASQLContext<?>> - Class in com.glyart.asql.common.database
Represents the final interaction to a data source.
DataTemplate(T) - Constructor for class com.glyart.asql.common.database.DataTemplate
 
DefaultBatchSetter - Class in com.glyart.asql.common.defaults
 
DefaultBatchSetter(List<Object[]>) - Constructor for class com.glyart.asql.common.defaults.DefaultBatchSetter
 
DefaultCreator - Class in com.glyart.asql.common.defaults
 
DefaultCreator(String) - Constructor for class com.glyart.asql.common.defaults.DefaultCreator
 
DefaultCreator(String, boolean) - Constructor for class com.glyart.asql.common.defaults.DefaultCreator
 
DefaultDataSourceHandler - Class in com.glyart.asql.common.defaults
 
DefaultDataSourceHandler(DataSourceCredentials, String) - Constructor for class com.glyart.asql.common.defaults.DefaultDataSourceHandler
 
DefaultExtractor<T> - Class in com.glyart.asql.common.defaults
 
DefaultExtractor(RowMapper<T>) - Constructor for class com.glyart.asql.common.defaults.DefaultExtractor
 
DefaultExtractor(RowMapper<T>, int) - Constructor for class com.glyart.asql.common.defaults.DefaultExtractor
 
DefaultSetter - Class in com.glyart.asql.common.defaults
 
DefaultSetter() - Constructor for class com.glyart.asql.common.defaults.DefaultSetter
 
doInPreparedStatement(PreparedStatement) - Method in interface com.glyart.asql.common.functions.PreparedStatementCallback
doInStatement(Statement) - Method in interface com.glyart.asql.common.functions.StatementCallback
Gets called by DataTemplate.execute.

E

execute(PreparedStatementCreator, PreparedStatementCallback<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a JDBC data access operation, implemented as PreparedStatementCallback callback working on a PreparedStatement.
execute(StatementCallback<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a JDBC data access operation, implemented as StatementCallback callback, using an active connection.
execute(String, PreparedStatementCallback<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a JDBC data access operation, implemented as PreparedStatementCallback callback working on a PreparedStatement.
extractData(ResultSet) - Method in class com.glyart.asql.common.defaults.DefaultExtractor
 
extractData(ResultSet) - Method in interface com.glyart.asql.common.functions.ResultSetExtractor
Implementations of this method must provide the processing logic (data extraction) of the entire ResultSet.

G

getBatchSize() - Method in class com.glyart.asql.common.defaults.DefaultBatchSetter
 
getBatchSize() - Method in interface com.glyart.asql.common.functions.BatchPreparedStatementSetter
Gets the size of the batch.
getConnection() - Method in interface com.glyart.asql.common.database.DataSourceHandler
Gets the existing connection to a data source.
getConnection() - Method in class com.glyart.asql.common.database.DataTemplate
Gets a connection using DataSourceHandler's implementation.
getConnection() - Method in class com.glyart.asql.common.defaults.DefaultDataSourceHandler
 
getDatabase() - Method in class com.glyart.asql.common.database.DataSourceCredentials
 
getDataSourceHandler() - Method in interface com.glyart.asql.common.context.ASQLContext
Gets the data source interaction strategy linked to this ASQLContext.
getDataTemplate() - Method in interface com.glyart.asql.common.context.ASQLContext
Gets the DataTemplate instance linked to this ASQLContext.
getFutureConnection() - Method in class com.glyart.asql.common.database.DataTemplate
Gets a connection using DataSourceHandler's implementation.
getHostname() - Method in class com.glyart.asql.common.database.DataSourceCredentials
 
getLogger() - Method in interface com.glyart.asql.common.context.ASQLContext
Gets the logger used by this ASQLContext.
getPassword() - Method in class com.glyart.asql.common.database.DataSourceCredentials
 
getPlugin() - Method in interface com.glyart.asql.common.context.ASQLContext
Gets the plugin who created this ASQLContext.
getPort() - Method in class com.glyart.asql.common.database.DataSourceCredentials
 
getProperties() - Method in class com.glyart.asql.common.database.DataSourceCredentials
 
getScheduler() - Method in interface com.glyart.asql.common.context.ASQLContext
Gets the scheduling policy linked to this ASQLContext.
getSqlType(Object) - Method in class com.glyart.asql.common.defaults.DefaultBatchSetter
Gets the related type of a given parameter.
getSqlType(Object) - Static method in class com.glyart.asql.common.utils.Utils
Gets the sql type by a given object.
getSQlType(Object) - Method in class com.glyart.asql.common.defaults.DefaultSetter
Gets the related type of a given parameter.
getStrategy() - Method in interface com.glyart.asql.common.database.DataSourceHandler
Gets the implementation's adopted strategy.
getStrategy() - Method in class com.glyart.asql.common.defaults.DefaultDataSourceHandler
 
getUsername() - Method in class com.glyart.asql.common.database.DataSourceCredentials
 

M

map(ResultSet, int) - Method in interface com.glyart.asql.common.functions.RowMapper
Implementations will tell how to map EACH row of the ResultSet.
ResultSet.next() call is not needed: this method should only map values of the current row.

O

open() - Method in interface com.glyart.asql.common.database.DataSourceHandler
Opens the connection to a data source.
open() - Method in class com.glyart.asql.common.defaults.DefaultDataSourceHandler
 

P

ParametrizedPreparedStatementSetter<T> - Interface in com.glyart.asql.common.functions
Represents a callback interface used by the DataTemplate class for executing batch updates.
PreparedStatementCallback<T> - Interface in com.glyart.asql.common.functions
Represents a callback interface for code that operates on a PreparedStatement.
PreparedStatementCreator - Interface in com.glyart.asql.common.functions
Represents a callback interface used by multiple methods of the DataTemplate class.
PreparedStatementSetter - Interface in com.glyart.asql.common.functions
Represents a callback interface used by DataTemplate.

Q

query(PreparedStatementCreator, PreparedStatementSetter, ResultSetExtractor<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query using a PreparedStatement, created by a PreparedStatementCreator and with his values set by a PreparedStatementSetter.
query(PreparedStatementCreator, ResultSetExtractor<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query using a PreparedStatement, then reading the ResultSet with a ResultSetExtractor implementation.
query(PreparedStatementCreator, RowMapper<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query using a PreparedStatement, mapping each row to a result object via a RowMapper implementation.
query(String, PreparedStatementSetter, ResultSetExtractor<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query using a SQL statement, then reading the ResultSet with a ResultSetExtractor implementation.
query(String, PreparedStatementSetter, RowMapper<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query using a SQL statement and a PreparedStatementSetter implementation that will bind values to the query.
query(String, ResultSetExtractor<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query given static SQL statement, then it reads the ResultSet using the ResultSetExtractor implementation.
query(String, Object[], ResultSetExtractor<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query given a SQL statement: it will be used to create a PreparedStatement.
queryForList(String, RowMapper<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query given static SQL statement, then it maps each ResultSet row to a result object using the RowMapper implementation.
queryForList(String, Object[], RowMapper<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query given a SQL statement: it will be used to create a PreparedStatement.
queryForObject(String, RowMapper<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query given static SQL statement, then it maps the first ResultSet row to a result object using the RowMapper implementation.
queryForObject(String, Object[], RowMapper<S>) - Method in class com.glyart.asql.common.database.DataTemplate
Executes a query given a SQL statement: it will be used to create a PreparedStatement.

R

ResultSetExtractor<T> - Interface in com.glyart.asql.common.functions
Represents a callback interface used by DataTemplate's query methods.
RowMapper<T> - Interface in com.glyart.asql.common.functions
Represents an interface used to map rows of a ResultSet.

S

setDatabase(String) - Method in class com.glyart.asql.common.database.DataSourceCredentials.DataSourceCredentialsBuilder
Sets the initial schema to use after the connection to a data source is successfully established.
This will not provide the creation of the schema if it doesn't exist.
setHostName(String) - Method in class com.glyart.asql.common.database.DataSourceCredentials.DataSourceCredentialsBuilder
Sets the hostname for connecting to a data source.
setPassword(String) - Method in class com.glyart.asql.common.database.DataSourceCredentials.DataSourceCredentialsBuilder
Sets the password for connecting to a data source.
setPort(int) - Method in class com.glyart.asql.common.database.DataSourceCredentials.DataSourceCredentialsBuilder
Sets the port for connecting to a data source.
setUsername(String) - Method in class com.glyart.asql.common.database.DataSourceCredentials.DataSourceCredentialsBuilder
Sets the username for connecting to a data source.
setValues(PreparedStatement) - Method in class com.glyart.asql.common.defaults.DefaultSetter
 
setValues(PreparedStatement) - Method in interface com.glyart.asql.common.functions.PreparedStatementSetter
Sets parameter values into the given active PreparedStatement.
setValues(PreparedStatement, int) - Method in class com.glyart.asql.common.defaults.DefaultBatchSetter
 
setValues(PreparedStatement, int) - Method in interface com.glyart.asql.common.functions.BatchPreparedStatementSetter
Sets parameter values on the given PreparedStatement.
setValues(PreparedStatement, T) - Method in interface com.glyart.asql.common.functions.ParametrizedPreparedStatementSetter
Sets the parameter values of the T argument inside the PreparedStatement
SIMPLE_CONNECTION - com.glyart.asql.common.database.Strategy
Represents that this DataSourceHandler implementation will be simple-connection based.
StatementCallback<T> - Interface in com.glyart.asql.common.functions
Represents a callback interface for SQL statements.
Strategy - Enum in com.glyart.asql.common.database
Describes the behavior of a DataSourceHandler implementation.
sync(Runnable) - Method in interface com.glyart.asql.common.context.ContextScheduler
Executes an synchronous task which will be only ran once.
sync(Runnable, long, long) - Method in interface com.glyart.asql.common.context.ContextScheduler
Executes a synchronous repeating task every given ticks, after the given ticks delay time.

U

update(PreparedStatementCreator, boolean) - Method in class com.glyart.asql.common.database.DataTemplate
Performs a single update operation (like insert, delete, update) using a PreparedStatementCreator to to provide SQL and any required parameters.
update(PreparedStatementCreator, PreparedStatementSetter, boolean) - Method in class com.glyart.asql.common.database.DataTemplate
Performs a single update operation (like insert, delete, update) using a PreparedStatementCreator to provide SQL and any required parameters.
update(String, boolean) - Method in class com.glyart.asql.common.database.DataTemplate
Performs a single update operation (like insert, delete, update).
update(String, PreparedStatementSetter, boolean) - Method in class com.glyart.asql.common.database.DataTemplate
Performs a single update operation (like insert, delete, update).
update(String, Object[], boolean) - Method in class com.glyart.asql.common.database.DataTemplate
Performs a single update operation (like insert, update or delete statement) via PreparedStatement, binding the given parameters.
Utils - Class in com.glyart.asql.common.utils
Convenient class for shared (and rewritable) behaviors among implementations.

V

valueOf(String) - Static method in enum com.glyart.asql.common.database.Strategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.glyart.asql.common.database.Strategy
Returns an array containing the constants of this enum type, in the order they are declared.
A B C D E G M O P Q R S U V 
All Classes All Packages