Package com.majorana.maj_orm.ORM_ACCESS
Class DbBean
java.lang.Object
com.majorana.maj_orm.ORM_ACCESS.DbBean
- All Implemented Interfaces:
DbBeanInterface
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static DbBeanInstanceprotected static HashMap<Class,DbBeanGenericInstance> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanconnect()deleteBeanById(MultiId mid, BaseMajoranaEntity bde) deleteBeanByParams(MultiId mid, BaseMajoranaEntity bde) intdeleteBeans(Class beanClass, String table, String[] paramNames, Object[] params) Deprecated.voidexecSQLNoResult(String sql, Object... params) booleangetBeanNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) getBeanNPWithSelectClause(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) getBeanNPWithSelectClause(Class beanClass, String table, String sql, String[] paramNames, Object[] params) getBeans(Class<? extends BaseMajoranaEntity> beanClass, String sql1, Object[] params) Object[]getBeansArray(Class<? extends BaseMajoranaEntity> beanClass, 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) Object[]getBeansArrayNPWithSelectClause(Class beanClass, String table, 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) com.datastax.oss.driver.api.core.cql.PreparedStatementprotected MajoranaDBConnectionFactorygetFailoverBean(List<MajDataSourceName> names) getIdField(Class T) protected static DbBeanInstancegetParamMap(String[] named, Object[] params) voidprotected static DbBeanInstancegetSingletonLazy(Map<String, String> inMap) <T extends BaseMajoranaEntity>
DbBeanGenericInterface<T>getTypedBean(Class<? extends BaseMajoranaEntity> T) protected DbBeanGenericInstance<T> List<T>static intmapParams(PreparedStatement ps, Object[] args) voidprotected voidputTypedBeanToStore(Class s, DbBeanGenericInstance<? extends BaseMajoranaEntity> b) floatreadJavaObject(String sql, Object[] params) updateBean(MultiId mid, BaseMajoranaEntity bde) intlongwriteJavaObject(Object object, String sql)
-
Field Details
-
mainBean
-
typeBeans
-
-
Constructor Details
-
DbBean
public DbBean()
-
-
Method Details
-
getMainBean
-
getTypedList
-
getTypedBean
public <T extends BaseMajoranaEntity> DbBeanGenericInterface<T> getTypedBean(Class<? extends BaseMajoranaEntity> T) throws ClassNotFoundException, SQLException - Throws:
ClassNotFoundExceptionSQLException
-
getFactory
-
getIdField
- Specified by:
getIdFieldin interfaceDbBeanInterface
-
getIdFieldName
-
getSingletonLazy
public void getSingletonLazy() -
getTypedBeanFromStore
-
putTypedBeanToStore
-
getFailoverBean
-
getCassPreparedStatement
- Specified by:
getCassPreparedStatementin interfaceDbBeanInterface
-
preloadEntities
public void preloadEntities()- Specified by:
preloadEntitiesin interfaceDbBeanInterface
-
getSingletonLazy
-
connect
- Specified by:
connectin interfaceDbBeanInterface- Throws:
ClassNotFoundExceptionSQLException
-
close
- Specified by:
closein interfaceDbBeanInterface- Throws:
SQLException
-
execSQL
Deprecated.- Specified by:
execSQLin interfaceDbBeanInterface- Throws:
SQLException
-
execSQLNoResult
- Throws:
SQLException
-
execSQL
- Specified by:
execSQLin interfaceDbBeanInterface- Throws:
SQLException
-
existsSQL
- Specified by:
existsSQLin interfaceDbBeanInterface- Throws:
SQLException
-
updateSQL
- Specified by:
updateSQLin interfaceDbBeanInterface- Throws:
SQLException
-
getRepo
- Specified by:
getRepoin interfaceDbBeanInterface
-
getRepo
- Specified by:
getRepoin interfaceDbBeanInterface
-
getBeansNP
public List<Object> getBeansNP(Class beanClass, String table, String sql1, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansNPWithSelectClause
public List<Object> getBeansNPWithSelectClause(Class beanClass, String table, String sql1, 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 - Throws:
SQLException
-
getBeans
public List<Object> getBeans(Class beanClass, String table, String sql1, Object[] params) throws SQLException - Throws:
SQLException
-
getBeans
public List<Object> getBeans(Class<? extends BaseMajoranaEntity> beanClass, 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
-
getBeansArrayNP
public Object[] getBeansArrayNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansArrayNPWithSelectClause
public Object[] getBeansArrayNPWithSelectClause(Class beanClass, String table, 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
-
getBeanNP
public Object getBeanNP(Class beanClass, String table, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeanNPWithSelectClause
public Object getBeanNPWithSelectClause(Class beanClass, String table, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeanNPWithSelectClause
public Object getBeanNPWithSelectClause(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeansNP
public List<Object> getBeansNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBean
public Object getBean(Class beanClass, String table, String sql, Object[] params) throws SQLException - Throws:
SQLException
-
getParamMap
- Specified by:
getParamMapin interfaceDbBeanInterface
-
deleteBeans
public int deleteBeans(Class beanClass, String table, String[] paramNames, Object[] params) throws SQLException - Specified by:
deleteBeansin interfaceDbBeanInterface- Throws:
SQLException
-
getFields
-
getFields
-
storeBean
- Specified by:
storeBeanin interfaceDbBeanInterface- Throws:
SQLException
-
updateBean
- Specified by:
updateBeanin interfaceDbBeanInterface- Throws:
SQLException
-
getUUID
-
deleteBeanById
- Specified by:
deleteBeanByIdin interfaceDbBeanInterface- Throws:
SQLException
-
deleteBeanByParams
- Specified by:
deleteBeanByParamsin interfaceDbBeanInterface- Throws:
SQLException
-
getBean
- Throws:
SQLException
-
getBeanNP
public Object getBeanNP(Class<? extends BaseMajoranaEntity> beanClass, String sql, String[] paramNames, Object[] params) throws SQLException - Throws:
SQLException
-
getBeans
public List getBeans(Class beanClass, String table, String sql, String... params) throws SQLException - Throws:
SQLException
-
mapParams
- Throws:
SQLException
-
readFloat
- Specified by:
readFloatin interfaceDbBeanInterface- Throws:
Exception
-
writeJavaObject
- Specified by:
writeJavaObjectin interfaceDbBeanInterface- Throws:
Exception
-
readJavaObject
- Specified by:
readJavaObjectin interfaceDbBeanInterface- Throws:
Exception
-