Package com.majorana.maj_orm.ORM_ACCESS
Class DbBeanGenericInstance<T extends BaseMajoranaEntity>
java.lang.Object
com.majorana.maj_orm.ORM_ACCESS.DbBeanGenericInstance<T>
- All Implemented Interfaces:
DbBeanGenericInterface<T>
public class DbBeanGenericInstance<T extends BaseMajoranaEntity>
extends Object
implements DbBeanGenericInterface<T>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
protected class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteBeanById
(MultiId mid) deleteBeanByParams
(MultiId mid, BaseMajoranaEntity bde) int
deleteBeans
(String[] paramNames, Object[] params) getBeanNPWithSelectClause
(String sql, String[] paramNames, Object[] params) T[]
getBeansArray
(String sql, Object[] params) T[]
getBeansArray
(String sql, String[] paramNames, Object[] params) T[]
getBeansArrayNP
(String sql, String[] paramNames, Object[] params) T[]
getBeansArrayNPWithSelectClause
(String sql, String[] paramNames, Object[] params) getBeansNP
(String sql, String[] paramNames, Object[] params) getBeansNPWithSelectClause
(String sql1, String[] paramNames, Object[] params) getParamMap
(String[] named, Object[] params) getRepo()
static int
mapParams
(PreparedStatement ps, Object[] args) int
updateAltIds
(MultiId mid, T bde) updateBean
(MultiId mid, T bde)
-
Constructor Details
-
DbBeanGenericInstance
-
-
Method Details
-
getRepo
- Specified by:
getRepo
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
-
getIdField
- Specified by:
getIdField
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
-
getBean
- Throws:
SQLException
-
getBeansArray
- Throws:
SQLException
-
getBeansArrayNP
- Specified by:
getBeansArrayNP
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
getBeansArrayNPWithSelectClause
public T[] getBeansArrayNPWithSelectClause(String sql, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeansArrayNPWithSelectClause
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
getBeanNP
- Specified by:
getBeanNP
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
getBeanNPWithSelectClause
public T getBeanNPWithSelectClause(String sql, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeanNPWithSelectClause
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
getParamMap
- Specified by:
getParamMap
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
-
getFields
- Specified by:
getFields
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
-
getFields
- Specified by:
getFields
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
-
getIdFieldName
- Specified by:
getIdFieldName
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
-
getBeans
- Throws:
SQLException
-
deleteBeans
- Specified by:
deleteBeans
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
updateAltIds
- Specified by:
updateAltIds
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
storeBean
- Specified by:
storeBean
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
updateBean
- Specified by:
updateBean
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
deleteBeanById
public MultiId deleteBeanById(MultiId mid) throws SQLException, InstantiationException, IllegalAccessException - Specified by:
deleteBeanById
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
InstantiationException
IllegalAccessException
-
deleteBeanByParams
- Specified by:
deleteBeanByParams
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
getBean
- Throws:
SQLException
-
getBeansArray
- Specified by:
getBeansArray
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
getBeansNP
- Specified by:
getBeansNP
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
-
getBeansNPWithSelectClause
- Specified by:
getBeansNPWithSelectClause
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
-
getBeans
- Specified by:
getBeans
in interfaceDbBeanGenericInterface<T extends BaseMajoranaEntity>
- Throws:
SQLException
-
mapParams
- Throws:
SQLException
-