/* 65 */ if (entity.getMetaData().hasRowLocking())
/* */ {
/* 67 */ JDBCEntityPersistenceStore manager = entity.getManager();
/* 68 */ JDBCTypeFactory typeFactory = manager.getJDBCTypeFactory();
/* 69 */ JDBCTypeMappingMetaData typeMapping = typeFactory.getTypeMapping();
/* 70 */ JDBCFunctionMappingMetaData rowLockingTemplate = typeMapping.getRowLockingTemplate();
/* */
/* 72 */ if (rowLockingTemplate == null)
/* */ {
/* 74 */ throw new DeploymentException("Row locking template is not defined for mapping: " + typeMapping.getName());
/* */ }
/* */
/* 77 */ this.sql = rowLockingTemplate.getFunctionSql(new Object[] { selectColumns, entity.getQualifiedTableName(), whereColumns, null }, new StringBuffer()).toString();
/* */ }
/* */ else
/* */ {
/* 83 */ this.sql = "select ";
/* 84 */ this.sql += selectColumns;