public class OperationsInterfaceRepositoryImpl<T> extends OperationsUtils<T> implements OperationsInterfaceRepository<T>
connection, entity, INSERT, SINGLE_ELEMENT_COLLECTION, UPDATE| Constructor and Description |
|---|
OperationsInterfaceRepositoryImpl(java.lang.Class<T> entity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(java.lang.Class<T> entity,
java.lang.Object id) |
java.util.List<T> |
getAll() |
T |
save(T entity) |
T |
save(T entity,
java.lang.String table) |
T |
save(T entity,
java.lang.String[] columns) |
T |
save(T entity,
java.lang.String table,
java.lang.String[] columns) |
T |
searchById(java.lang.Object id) |
T |
update(T entity) |
T |
update(T entity,
java.lang.Long id) |
defineTableName, getAutoIncrementIdentifierValue, getIdName, getIdValue, mountSQLDelete, mountSQLGetAll, mountSQLInsert, mountSQLInsert, mountSQLSearchById, mountSQLUpdate, mountSQLUpdate, processDelete, processInsertUpdate, processSelectpublic OperationsInterfaceRepositoryImpl(java.lang.Class<T> entity) throws NotPersistentClassException
NotPersistentClassExceptionpublic T save(T entity) throws java.sql.SQLException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, NotPersistentClassException
save in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionNotPersistentClassExceptionpublic T save(T entity, java.lang.String table) throws java.sql.SQLException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, NotPersistentClassException
save in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionNotPersistentClassExceptionpublic T save(T entity, java.lang.String[] columns) throws java.sql.SQLException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, NotPersistentClassException
save in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionNotPersistentClassExceptionpublic T save(T entity, java.lang.String table, java.lang.String[] columns) throws java.sql.SQLException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, NotPersistentClassException
save in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionNotPersistentClassExceptionpublic T update(T entity, java.lang.Long id) throws java.sql.SQLException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
update in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic T update(T entity) throws java.sql.SQLException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
update in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionpublic boolean delete(java.lang.Class<T> entity, java.lang.Object id) throws java.sql.SQLException
delete in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionpublic java.util.List<T> getAll() throws java.sql.SQLException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.NoSuchMethodException, java.lang.reflect.InvocationTargetException
getAll in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionjava.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetExceptionpublic T searchById(java.lang.Object id) throws java.sql.SQLException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.InstantiationException
searchById in interface OperationsInterfaceRepository<T>java.sql.SQLExceptionjava.lang.NoSuchMethodExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionjava.lang.InstantiationExceptionCopyright © 2020. All Rights Reserved.