Uses of Class
com.jbstrap.core.dao.base.SQLTransaction
-
Uses of SQLTransaction in com.jbstrap.core.dao.base
Modifier and TypeMethodDescriptionSQLTransaction.commit()
Saves all operations executed in the current transaction instance to the database.SQLTransaction.rollBack()
Rolls back all operations within the current transaction instance.static SQLTransaction
JpaDaoAPI.startTransaction()
Starts a new transaction from the persistence layer.Modifier and TypeMethodDescriptionJpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor) Gets the records of the specified entity based DataDescriptorJpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, int startRow, int endRow, Criteria criteria) Gets the records of the specified entity based DataDescriptor, that meet the specified criteria, between the specified starting and ending rows.JpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, int startRow, int endRow, Criteria criteria, Order order) Gets the records of the specified entity based DataDescriptor, that meet the specified criteria, between the specified starting and ending rows (ordered).JpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, int startRow, int endRow, Criteria criteria, Order... orders) Gets the records of the specified entity based DataDescriptor, that meet the specified criteria, between the specified starting and ending rows (ordered).JpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, int startRow, int endRow, Criteria criteria, List<Order> orders) Gets the records of the specified entity based DataDescriptor, that meet the specified criteria, between the specified starting and ending rows (ordered).JpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Criteria criteria) Gets the records of the specified entity based DataDescriptor, that meet the specified criteriaJpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client) Gets the records of the specified entity based DataDescriptorJpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, int startRow, int endRow, Criteria criteria) Gets the records of the specified entity based DataDescriptor, that meet the specified criteria, between the specified starting and ending rows.JpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, int startRow, int endRow, Criteria criteria, Order order) Gets the records of the specified entity based DataDescriptor, that meet the specified criteria, between the specified starting and ending rows (ordered).JpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, int startRow, int endRow, Criteria criteria, Order... orders) Gets the records of the specified entity based DataDescriptor, that meet the specified criteria, between the specified starting and ending rows (ordered).JpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, int startRow, int endRow, Criteria criteria, List<Order> orders) Gets the records of the specified entity based DataDescriptor, that meet the specified criteria, between the specified starting and ending rows (ordered).JpaDaoAPI.find
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, Criteria criteria) Gets the records of the specified entity based DataDescriptor, that meet the specified criteriaJpaDaoAPI.find
(SQLTransaction transaction, Class<?> type) Gets the records of the specified entityJpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, int startRow, int endRow, Criteria criteria) Gets the records of the specified entity, following the specified parameters, starting from the specified row, and ending at the specified row.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, int startRow, int endRow, Criteria criteria, Order order) Gets the records of the specified entity, following the specified parameters, starting from the specified row, and ending at the specified row.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, int startRow, int endRow, Criteria criteria, Order... orders) Gets the records of the specified entity, following the specified parameters, starting from the specified row, and ending at the specified row.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, int startRow, int endRow, Criteria criteria, List<Order> orders) Gets the records of the specified entity, following the specified parameters, starting from the specified row, and ending at the specified row.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Criteria criteria) Gets the records of the specified entity, following the specified parameters.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Criteria criteria, Order... orders) Gets the records of the specified entity, following the specified parameters.Gets the records of the specified entity, following the specified parameters.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Order... orders) Gets the records of the specified entity, following the specified parameters.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Client client) Gets the records of the specified entityJpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Client client, int startRow, int endRow, Criteria criteria) Gets the records of the specified entity, following the specified parameters, starting from the specified row, and ending at the specified row.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Client client, int startRow, int endRow, Criteria criteria, Order order) Gets the records of the specified entity, following the specified parameters, starting from the specified row, and ending at the specified row.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Client client, int startRow, int endRow, Criteria criteria, Order... orders) Gets the records of the specified entity, following the specified parameters, starting from the specified row, and ending at the specified row.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Client client, int startRow, int endRow, Criteria criteria, List<Order> orders) Gets the records of the specified entity, following the specified parameters, starting from the specified row, and ending at the specified row.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, Client client, Criteria criteria) Gets the records of the specified entity, following the specified parameters.JpaDaoAPI.find
(SQLTransaction transaction, Class<?> type, List<Order> orders) Gets the records of the specified entity, following the specified parameters.static Record
JpaDaoAPI.findById
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, Object id) Gets the entity based DataDescriptor specified in the parameter by its primary key (ID)static Record
JpaDaoAPI.findById
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Object id) Gets the entity based DataDescriptor specified in the parameter by its primary key (ID)static Record
JpaDaoAPI.findById
(SQLTransaction transaction, Class<?> type, Client client, Object id) Gets the entity specified in the parameter by its primary key (ID)static Record
JpaDaoAPI.findById
(SQLTransaction transaction, Class<?> type, Object id) Gets the entity specified in the parameter by its primary key (ID)static long
JpaDaoAPI.getRowCount
(SQLTransaction transaction, JPADataDescriptor dataDescriptor) Counts and returns the rows of the specified entity based DataDescriptor record.static long
JpaDaoAPI.getRowCount
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Criteria criteria) Counts and returns the rows of the specified entity based DataDescriptor record, that meet the criteria.static long
JpaDaoAPI.getRowCount
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client) Counts and returns the rows of the specified entity based DataDescriptor record.static long
JpaDaoAPI.getRowCount
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, Criteria criteria) Counts and returns the rows of the specified entity based DataDescriptor record, that meet the criteria.static long
JpaDaoAPI.getRowCount
(SQLTransaction transaction, Class<?> type) Counts and returns the rows of the specified recordstatic long
JpaDaoAPI.getRowCount
(SQLTransaction transaction, Class<?> type, Criteria criteria) Counts and returns the rows of the specified record, that meet the criteriastatic long
JpaDaoAPI.getRowCount
(SQLTransaction transaction, Class<?> type, Client client) Counts and returns the rows of the specified recordstatic long
JpaDaoAPI.getRowCount
(SQLTransaction transaction, Class<?> type, Client client, Criteria criteria) Counts and returns the rows of the specified entity record, that meet the criteriaJpaDaoAPI.remove
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Record record) Removes the record from the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.remove
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Record... records) Removes the records from the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.remove
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, Record record) Removes the record from the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.remove
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, Record... records) Removes the records from the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.remove
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, List<Record> records) Removes the records from the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.remove
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, List<Record> records) Removes the records from the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.remove
(SQLTransaction transaction, Class<?> type, Record record) Removes the records from the specified entity.JpaDaoAPI.remove
(SQLTransaction transaction, Class<?> type, Record... records) Removes the records from the specified entity.JpaDaoAPI.remove
(SQLTransaction transaction, Class<?> type, Client client, Record record) Removes the records from the specified entity.JpaDaoAPI.remove
(SQLTransaction transaction, Class<?> type, Client client, Record... records) Removes the records from the specified entity.Removes the records from the specified entity.JpaDaoAPI.remove
(SQLTransaction transaction, Class<?> type, List<Record> records) Removes the records from the specified entity.JpaDaoAPI.runNativeSelect
(SQLTransaction transaction, String sql) Runs a native sql query with no parameters By default, field names in returned records are in uppercase.JpaDaoAPI.runNativeSelect
(SQLTransaction transaction, String sql, boolean upperCase) Runs a native sql query with no parametersJpaDaoAPI.runNativeSelect
(SQLTransaction transaction, String sql, boolean upperCase, Object... params) Runs a native sql query with the specified parameters.JpaDaoAPI.runNativeSelect
(SQLTransaction transaction, String sql, Object... params) Runs a native sql query with the specified parameters.static void
JpaDaoAPI.runNativeStatement
(SQLTransaction transaction, String sql) Runs a native sql statement with no parametersstatic void
JpaDaoAPI.runNativeStatement
(SQLTransaction transaction, String sql, Object... params) Runs a native sql statement with the specified parameters.JpaDaoAPI.save
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Record record) Saves the record to the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.save
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Record... records) Saves the records to the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.save
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, Record record) Saves the record to the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.save
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, Record... records) Saves the records to the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.save
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, Client client, List<Record> records) Saves the records to the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.save
(SQLTransaction transaction, JPADataDescriptor dataDescriptor, List<Record> records) Saves the records to the specified entity, that is defined by a DataDescriptor.JpaDaoAPI.save
(SQLTransaction transaction, Class<?> type, Record record) Saves the record to the specified entity.JpaDaoAPI.save
(SQLTransaction transaction, Class<?> type, Record... records) Saves the records to the specified entity.JpaDaoAPI.save
(SQLTransaction transaction, Class<?> type, Client client, Record record) Saves the record to the specified entity.JpaDaoAPI.save
(SQLTransaction transaction, Class<?> type, Client client, Record... records) Saves the records to the specified entity.Saves the records to the specified entity.JpaDaoAPI.save
(SQLTransaction transaction, Class<?> type, List<Record> records) Saves the records to the specified entity. -
Uses of SQLTransaction in com.jbstrap.core.meta
Modifier and TypeMethodDescriptionJPADataDescriptor.openTransaction()
Initiates a transaction with the DataDescriptor type.SQLDataDescriptor.openTransaction()
Initiates a transaction with the DataDescriptor type.Modifier and TypeMethodDescriptionlong
JPADataDescriptor.countData
(SQLTransaction transaction, Client client, Criteria criteria) Gets the number of records in the database.long
SQLDataDescriptor.countData
(SQLTransaction transaction, Client client, Criteria criteria) Gets the number of the record in the database.JPADataDescriptor.find
(SQLTransaction transaction, Client client, Criteria criteria, List<Order> orders, int startRow, int endRow) Initiates a query by using the DataDescriptor.SQLDataDescriptor.find
(SQLTransaction transaction, Client client, Criteria criteria, List<Order> orders, int startRow, int endRow) Initiates a query by using the DataDescriptor.JPADataDescriptor.findById
(SQLTransaction transaction, Client client, Object... id) Fetches a record from the database using the record’s unique ID.SQLDataDescriptor.findById
(SQLTransaction transaction, Client client, Object... id) Fetches a record from the database using the record’s unique ID.JPADataDescriptor.remove
(SQLTransaction transaction, Client client, List<Record> records) Initiates a delete operation by using a DataDescriptor.
Use the method to delete one or more records from the database using a DataDescriptor.SQLDataDescriptor.remove
(SQLTransaction transaction, Client client, List<Record> records) Initiates a delete operation by using a DataDescriptor.
Use the method to delete one or more records from the database using a DataDescriptor.JPADataDescriptor.save
(SQLTransaction transaction, Client client, List<Record> records) Initiates a save operation using a DataDescriptor.
Use the method to save one or more records to the database using the DataDescriptor.SQLDataDescriptor.save
(SQLTransaction transaction, Client client, List<Record> records) Initiates a save operation using a DataDescriptor.
Use the method to save one or more records to the database using the DataDescriptor.