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
ConstructorDescriptionDbBeanWithFailOverInstance
(DBEnvSetup dbEnvSetup, MajDataSource source, MajDataSourceName name) -
Method Summary
Modifier and TypeMethodDescriptionboolean
connect()
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:
ClassNotFoundException
SQLException
-
getRepo
-
getBeanNP
public Object getBeanNP(Class beanClass, String table, String sql, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeanNP
in interfaceDbBeanWithFailOverInterface
- Throws:
SQLException
-
getBeanNPWithSelectClause
public Object getBeanNPWithSelectClause(Class beanClass, String table, String sql1, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeanNPWithSelectClause
in interfaceDbBeanWithFailOverInterface
- Throws:
SQLException
-
getBean
public Object getBean(Class beanClass, String table, String sql1, Object[] params) throws SQLException - Specified by:
getBean
in 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:
getBeansNPWithSelectClause
in interfaceDbBeanWithFailOverInterface
- Throws:
SQLException
-
getBeans
public List<Object> getBeans(Class<? extends BaseMajoranaEntity> beanClass, String sql1, Object[] params) throws SQLException - Specified by:
getBeans
in 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:
getBean
in interfaceDbBeanWithFailOverInterface
- Throws:
SQLException
-
getBeansNP
public List<Object> getBeansNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeansNP
in interfaceDbBeanWithFailOverInterface
- Throws:
SQLException
-
getBeanNP
public Object getBeanNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Specified by:
getBeanNP
in interfaceDbBeanWithFailOverInterface
- Throws:
SQLException
-