Esempio n. 1
0
 public void prepareSelectExpressionWithAttributes(
     NSArray nsarray, boolean flag, EOFetchSpecification eofetchspecification) {
   if (!eofetchspecification.promptsAfterFetchLimit()) {
     _fetchLimit = eofetchspecification.fetchLimit();
   }
   super.prepareSelectExpressionWithAttributes(nsarray, flag, eofetchspecification);
 }
Esempio n. 2
0
 /* (non-Javadoc)
  *
  * Overriding super here so we can grab a fetch limit if specified in the EOFetchSpecification.
  *
  * @see com.webobjects.jdbcadaptor.JDBCExpression#prepareSelectExpressionWithAttributes(NSArray, boolean, EOFetchSpecification)
  */
 @Override
 public void prepareSelectExpressionWithAttributes(
     NSArray<EOAttribute> attributes, boolean lock, EOFetchSpecification fetchSpec) {
   if (!fetchSpec.promptsAfterFetchLimit()) {
     _fetchLimit = fetchSpec.fetchLimit();
   }
   super.prepareSelectExpressionWithAttributes(attributes, lock, fetchSpec);
 }
Esempio n. 3
0
 /**
  * Override so that the joinClause can be constructed after super has iterated though all joins
  * and called our assembleJoinClause to create our array of JoinClauseDefinitions.
  *
  * @see com.webobjects.eoaccess.EOSQLExpression#joinExpression()
  */
 @Override
 public void joinExpression() {
   super.joinExpression();
   if (_alreadyJoined.count() > 0) {
     _joinClauseString = joinClauseString();
   } else {
     _joinClauseString = null;
   }
 }
Esempio n. 4
0
 /**
  * Overriding super here so we can grab a fetch range or fetch limit if specified in the
  * EOFetchSpecification. If a fetchRange method returning an NSRange exists in the
  * EOFetchSpecification subclass being passed in, the the fetchLimit will be ignored.
  *
  * @see com.webobjects.jdbcadaptor.JDBCExpression#prepareSelectExpressionWithAttributes(NSArray,
  *     boolean, EOFetchSpecification)
  */
 @Override
 public void prepareSelectExpressionWithAttributes(
     NSArray<EOAttribute> attributes, boolean lock, EOFetchSpecification fetchSpec) {
   try {
     _fetchRange = _fetchRangeSelector.invoke(fetchSpec);
     // We will get an error when not using our custom ERXFetchSpecification subclass
     // We could have added ERExtensions to the classpath and checked for instanceof, but I
     // thought
     // this is a little cleaner since people may be using this PlugIn and not Wonder in some
     // legacy apps.
   } catch (IllegalArgumentException e) {;
   } catch (IllegalAccessException e) {;
   } catch (InvocationTargetException e) {;
   } catch (NoSuchMethodException e) {;
   }
   // Only check for fetchLimit of fetchRange is not provided.
   if (_fetchRange == null && !fetchSpec.promptsAfterFetchLimit()) {
     _fetchLimit = fetchSpec.fetchLimit();
   }
   super.prepareSelectExpressionWithAttributes(attributes, lock, fetchSpec);
 }