EOQualifier qualifier = entity.restrictingQualifier();
if (qualifier != null) {
EOAdaptor adaptor = EOAdaptor.adaptorWithName("JDBC");
adaptor.setConnectionDictionary(_sourceDictionary);
EOSQLExpressionFactory factory = adaptor.expressionFactory();
EOSQLExpression sqlExpression = factory.createExpression(entity);
String sqlString = EOQualifierSQLGeneration.Support._sqlStringForSQLExpression(qualifier, sqlExpression);
selectBuf.append(" where ").append(sqlString);
}
selectBuf.append(';');
String sql = selectBuf.toString();