Package com.majorana.maj_orm.ORM_ACCESS
Class DbBeanWithFailOverInstance
java.lang.Object
com.majorana.maj_orm.ORM_ACCESS.DbBeanWithFailOverInstance
- All Implemented Interfaces:
DbBeanWithFailOverInterface
-
Constructor Summary
ConstructorsConstructorDescriptionDbBeanWithFailOverInstance(DBEnvSetup dbEnvSetup, MajDataSource source, MajDataSourceName name) -
Method Summary
Modifier and TypeMethodDescriptionbooleanconnect()getBean(Class<? extends BaseMajoranaEntity> beanClass, String sql, Object[] params) getBeanNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) getBeanNPWithSelectClause(Class beanClass, String table, String sql1, String[] paramNames, Object[] params) getBeans(Class<? extends BaseMajoranaEntity> beanClass, String sql1, Object[] params) Object[]getBeansArray(Class<? extends BaseMajoranaEntity> beanClass, String sql, Object[] params) Object[]getBeansArray(Class beanClass, String table, String sql, Object[] params) Object[]getBeansArrayNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) Object[]Object[]getBeansArrayNPWithSelectClause(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) getBeansNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) getBeansNPWithSelectClause(Class<? extends BaseMajoranaEntity> beanClass, String sql1, String[] paramNames, Object[] params) getBeansNPWithSelectClause(Class beanClass, String table, String sql1, String[] paramNames, Object[] params) getParamMap(String[] named, Object[] params) void
-
Constructor Details
-
DbBeanWithFailOverInstance
public DbBeanWithFailOverInstance(DBEnvSetup dbEnvSetup, MajDataSource source, MajDataSourceName name)
-
-
Method Details
-
setNext
-
connect
- Throws:
ClassNotFoundExceptionSQLException
-
getRepo
-
getBeanNP
public Object getBeanNP(Class beanClass, String table, String sql, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeanNPin interfaceDbBeanWithFailOverInterface- Throws:
SQLException
-
getBeanNPWithSelectClause
public Object getBeanNPWithSelectClause(Class beanClass, String table, String sql1, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeanNPWithSelectClausein interfaceDbBeanWithFailOverInterface- Throws:
SQLException
-
getBean
public Object getBean(Class beanClass, String table, String sql1, Object[] params) throws SQLException - Specified by:
getBeanin interfaceDbBeanWithFailOverInterface- Throws:
SQLException
-
getBeans
public List<Object> getBeans(Class beanClass, String table, String sql1, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansArrayNP
public Object[] getBeansArrayNP(Class beanClass, String table, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansArray
public Object[] getBeansArray(Class beanClass, String table, String sql, Object[] params) throws SQLException - Throws:
SQLException
-
getParamMap
-
getBeansNPWithSelectClause
public List<Object> getBeansNPWithSelectClause(Class beanClass, String table, String sql1, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansNP
public List<Object> getBeansNP(Class beanClass, String table, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansNPWithSelectClause
public List<Object> getBeansNPWithSelectClause(Class<? extends BaseMajoranaEntity> beanClass, String sql1, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeansNPWithSelectClausein interfaceDbBeanWithFailOverInterface- Throws:
SQLException
-
getBeans
public List<Object> getBeans(Class<? extends BaseMajoranaEntity> beanClass, String sql1, Object[] params) throws SQLException - Specified by:
getBeansin interfaceDbBeanWithFailOverInterface- Throws:
SQLException
-
getBeansArrayNP
public Object[] getBeansArrayNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansArrayNPWithSelectClause
public Object[] getBeansArrayNPWithSelectClause(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansArray
public Object[] getBeansArray(Class<? extends BaseMajoranaEntity> beanClass, String sql, Object[] params) throws SQLException - Throws:
SQLException
-
getBean
public Object getBean(Class<? extends BaseMajoranaEntity> beanClass, String sql, Object[] params) throws SQLException - Specified by:
getBeanin interfaceDbBeanWithFailOverInterface- Throws:
SQLException
-
getBeansNP
public List<Object> getBeansNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeansNPin interfaceDbBeanWithFailOverInterface- Throws:
SQLException
-
getBeanNP
public Object getBeanNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeanNPin interfaceDbBeanWithFailOverInterface- Throws:
SQLException
-