public class BeanStringOperator extends GenericDbOperator<String> implements DBOperator<String>
开发人员: renhui
开发时间: 2013-7-31
Modifier and Type | Field and Description |
---|---|
protected BeanOperatorManager |
manager |
jdbcTemplate
beanDbNameConverter, configuration, schema
DEFAULT_BEAN_TYPE
Constructor and Description |
---|
BeanStringOperator() |
BeanStringOperator(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate,
Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.jdbc.core.SqlParameterValue |
createSqlParameter(Object value,
ColumnConfiguration primaryColumn) |
protected org.springframework.jdbc.core.SqlParameterValue[] |
createSqlParameterValue(Bean bean) |
protected org.springframework.jdbc.core.SqlParameterValue |
createSqlParamter(Object value,
ColumnConfiguration primaryColumn)
Deprecated.
|
int |
getAutoIncreaseKey()
如果是自增长类型的Key返回新增加的值
|
protected List<String> |
getColumnNames(Bean bean)
获取操作的所有数据库字段名称
|
protected List<Integer> |
getDataTypes(Bean bean)
获取操作的所有数据库字段类型
|
protected List<Integer> |
getDataTypes(List<ColumnConfiguration> paramsKeys) |
protected List<List<Object>> |
getDeleteParams(Bean[] beans) |
protected String |
getDeleteSqlByKey(String beanType) |
protected List<org.springframework.jdbc.core.SqlParameterValue[]> |
getInsertParams(Bean[] beans) |
BeanOperatorManager |
getManager() |
protected List<Object> |
getParam(Bean bean,
List<ColumnConfiguration> paramsKeys) |
protected List<List<Object>> |
getParamList(Bean[] beans,
List<ColumnConfiguration> paramsKeys) |
protected List<Object> |
getParams(Bean bean) |
protected List<org.springframework.jdbc.core.SqlParameterValue[]> |
getParams(Bean[] beans,
org.springframework.jdbc.core.SqlParameterValue[] values) |
protected String |
getPrimaryFieldName(DbBaseOperator operator,
String beanType) |
protected String |
getPrimaryKeyValue(DbBaseOperator operator,
Bean bean)
获取主键值
|
protected String |
getQuerySql(String beanType) |
Relation |
getRelation(String beanType)
获取关联操作对象
|
String |
getSchema()
获取schame
|
protected org.springframework.jdbc.core.SqlParameterValue[] |
getSqlParameterValue(Bean bean,
List<String> conditionColumns) |
protected org.springframework.jdbc.core.SqlParameterValue[] |
getSqlParameterValues(Bean bean) |
protected org.springframework.jdbc.core.SqlParameterValue[] |
getSqlParamterValue(Bean bean,
List<String> conditionColumns)
Deprecated.
|
protected String |
getTableNameWithSchame(String tableName) |
void |
setManager(BeanOperatorManager manager) |
getSqlRowSet, getSqlRowSet, getSqlRowSet, getSqlRowSet, queryAllActiveConnection
generateOrderSqlClause, generateQuerySqlClause, generateSelectSqlClause, generateSqlClause, generateSqlClause, getBeans, getBeans, getBeans, getBeans, getBeans, getBeans, getSingleValue, getSingleValue, getSingleValue
account, account, account, account, execute, execute, execute, getBeans, getBeans, getBeans, getBeans, getBeans, getCursorPageBeans, getCursorPageBeans, getCursorPageBeans, getCursorPageBeans, getDialectPageBeans, getDialectPageBeans, getDialectPageBeans, getDialectPageBeans, getPageBeans, getPageBeans, getPageBeans, getPageBeans, getPager, getPager, getPager, getPager, getPager, getSingleValue, getSingleValue, getSingleValue, getSingleValue
batchDelete, batchDelete, batchDelete, batchDelete, batchInsert, batchInsert, batchInsert, batchInsert, batchUpdate, batchUpdate, batchUpdate, batchUpdate, deleteBean, deleteById, deleteById, executeBatch, executeBatchByList, executeBatchByList, executeBatchByMap, getBeans, getBeansById, getBeansById, insertBean, updateBean
beanNotExist, checkMoreToOne, checkOneToMore, createRelationBean, createRelationBeans, delete, deleteById, deleteTopBean, getBean, getRelationBeans, insert, insertTopBean, processRelation, relationProcess, update, update, updateTopBean
account, beginTransaction, checkNullParamList, commitTransaction, deleteNullParamList, execute, executeBatchBySqlParamterValues, executeBatchOperator, executeBatchOperator, executeByArray, executeByList, executeByMap, executeBySqlParameterValue, executeBySqlParameterValues, findBeans, findBeans, findBeansByList, findBeansByListForCursorPage, findBeansByListForDialectPage, findBeansByListForPage, findBeansByMap, findBeansByMapForCursorPage, findBeansByMapForDialectPage, findBeansByMapForPage, findBeansForCursorPage, findBeansForDialectPage, findBeansForPage, getBeanDbNameConverter, getDialect, getParamArray, getTransactionDefinition, getTransactionManager, getUniqueCode, operatorDebugLog, operatorDebugLogNoParam, operatorErrorLog, operatorErrorLogNoParam, queryForInt, queryForIntByList, queryForIntByMap, queryObject, queryObjectByMap, rollbackTransaction, setBeanDbNameConverter, setDialect, setJdbcTemplate, setTransactionDefinition, setTransactionManager
setConfiguration, setSchema, toDelete, toInsert, toSelect, toUpdate
checkBeanPropertyNull, getConditionParams, getConditionSql, getDeleteSql, getFullTableName, getInsertSql, getTableName, getUpdateSql
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAutoIncreaseKey, getBeanDbNameConverter, getDialect, getManager, getSchema, getUniqueCode, setBeanDbNameConverter, setConfiguration, setDialect, setJdbcTemplate, setManager, setSchema
getRelation
delete, deleteById, getBean, insert, update, update
batchDelete, batchDelete, batchDelete, batchDelete, batchInsert, batchInsert, batchInsert, batchInsert, batchUpdate, batchUpdate, batchUpdate, batchUpdate, deleteBean, deleteById, deleteById, executeBatch, executeBatchByList, executeBatchByList, executeBatchByMap, getBeans, getBeansById, getBeansById, insertBean, updateBean
account, account, account, account, execute, execute, execute, getBeans, getBeans, getBeans, getBeans, getBeans, getCursorPageBeans, getCursorPageBeans, getCursorPageBeans, getCursorPageBeans, getDialectPageBeans, getDialectPageBeans, getDialectPageBeans, getDialectPageBeans, getPageBeans, getPageBeans, getPageBeans, getPageBeans, getPager, getPager, getPager, getPager, getPager, getSingleValue, getSingleValue, getSingleValue, getSingleValue
getBeans, getBeans, getBeans, getBeans, getBeans, getBeans, getSingleValue, getSingleValue, getSingleValue
beginTransaction, commitTransaction, execute, rollbackTransaction, setTransactionDefinition, setTransactionManager
getSqlRowSet, getSqlRowSet, getSqlRowSet, getSqlRowSet
queryAllActiveConnection
protected BeanOperatorManager manager
public BeanStringOperator()
public BeanStringOperator(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate, Configuration configuration)
public int getAutoIncreaseKey() throws TinyDbException
DbBaseOperator
getAutoIncreaseKey
in interface DbBaseOperator
TinyDbException
protected String getDeleteSqlByKey(String beanType) throws TinyDbException
TinyDbException
protected List<String> getColumnNames(Bean bean)
getColumnNames
in class StatementTransformAdapter
bean
- protected List<Integer> getDataTypes(Bean bean)
bean
- protected org.springframework.jdbc.core.SqlParameterValue[] getSqlParameterValues(Bean bean)
protected List<Integer> getDataTypes(List<ColumnConfiguration> paramsKeys)
@Deprecated protected org.springframework.jdbc.core.SqlParameterValue createSqlParamter(Object value, ColumnConfiguration primaryColumn)
protected org.springframework.jdbc.core.SqlParameterValue createSqlParameter(Object value, ColumnConfiguration primaryColumn)
@Deprecated protected org.springframework.jdbc.core.SqlParameterValue[] getSqlParamterValue(Bean bean, List<String> conditionColumns) throws TinyDbException
TinyDbException
protected org.springframework.jdbc.core.SqlParameterValue[] getSqlParameterValue(Bean bean, List<String> conditionColumns) throws TinyDbException
TinyDbException
protected List<List<Object>> getParamList(Bean[] beans, List<ColumnConfiguration> paramsKeys)
protected List<Object> getParam(Bean bean, List<ColumnConfiguration> paramsKeys)
protected org.springframework.jdbc.core.SqlParameterValue[] createSqlParameterValue(Bean bean) throws TinyDbException
TinyDbException
protected List<org.springframework.jdbc.core.SqlParameterValue[]> getInsertParams(Bean[] beans) throws TinyDbException
TinyDbException
protected List<org.springframework.jdbc.core.SqlParameterValue[]> getParams(Bean[] beans, org.springframework.jdbc.core.SqlParameterValue[] values)
protected String getQuerySql(String beanType) throws TinyDbException
TinyDbException
protected String getTableNameWithSchame(String tableName)
getTableNameWithSchame
in class StatementTransformAdapter
public String getSchema()
DbBaseOperator
getSchema
in interface DbBaseOperator
getSchema
in class StatementTransformAdapter
public BeanOperatorManager getManager()
getManager
in interface DbBaseOperator
public void setManager(BeanOperatorManager manager)
setManager
in interface DbBaseOperator
public Relation getRelation(String beanType)
DbRelationOperator
getRelation
in interface DbRelationOperator
protected String getPrimaryFieldName(DbBaseOperator operator, String beanType) throws TinyDbException
TinyDbException
protected String getPrimaryKeyValue(DbBaseOperator operator, Bean bean) throws TinyDbException
operator
- bean
- TinyDbException
Copyright © 2006–2018 TinyGroup. All rights reserved.