4748495051525354555657
if (entity == null) { entity = visitor.getEntity(entityName); } if (entity == null) { throw new DruidMappingException("entity not found : " + entityName); } if (x.getParent() instanceof SQLSelectQueryBlock) { SQLSelectQueryBlock queryBlock = (SQLSelectQueryBlock) x.getParent(); if (queryBlock.getAttribute(MAPPING_ENTITY) == null) {
128129130131132133134135136137138
return false; } property = entity.getProperty(propertyName); if (property == null) { throw new DruidMappingException("property not found : " + propertyName); } String dbColumName = visitor.resovleColumnName(entity, property); x.setName(dbColumName); x.putAttribute(MAPPING_PROPERTY, property);
2728293031323334353637
String entityName = tableExpr.getName(); Entity entity = visitor.getEntity(entityName); if (entity == null) { throw new DruidMappingException("entity not foudn : " + entityName); } tableExpr.setName(entity.getTableName()); }
6869707172737475767778
break; } } if (property == null) { throw new DruidMappingException("property not found : " + propertyName); } String dbColumName = property.getDbColumnName(); x.setName(dbColumName);
617618619620621622623624625
} else if (val instanceof Float) { stmt.setFloat(paramIndex, (Float) val); } else if (val instanceof Double) { stmt.setDouble(paramIndex, (Double) val); } else { throw new DruidMappingException("not support parameters : " + val); } } }
6162636465666768697071
142143144145146147148149150151152
4647484950515253545556
127128129130131132133134135136137