Examples of sqlStringForSelector()


Examples of com.webobjects.eoaccess.EOSQLExpression.sqlStringForSelector()

      long pk;
      EOSQLExpression selectExpression = _factory.expressionForEntity(null);

      String columnList = VALUE_COLUMN_NAME;
      String tableList = ERX_SEQUENCE_TABLE;
      String whereSelector = selectExpression.sqlStringForSelector(EOQualifier.QualifierOperatorEqual, name());
      String whereClause = NAME_COLUMN_NAME + " " + whereSelector + " '" + name() + "'";
      String lockClause = selectExpression.lockClause();

      String selectStatement = selectExpression.assembleSelectStatementWithAttributes(null, true, null, null, "SELECT ", columnList , tableList, whereClause, null, null, lockClause);
      ResultSet resultSet = con.createStatement().executeQuery(selectStatement);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.