org.jbundle.base.db.Record.doLocalCriteria()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(61)

本文整理了Java中org.jbundle.base.db.Record.doLocalCriteria方法的一些代码示例,展示了Record.doLocalCriteria的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.doLocalCriteria方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:doLocalCriteria

Record.doLocalCriteria介绍

[英]Set up/do the local criteria. Generally, you use a remote criteria.
[中]制定/执行当地标准。通常,您使用远程标准。

代码示例

代码示例来源:origin: org.jbundle.base/org.jbundle.base

/**
 * Check to see if this record should be skipped.
 * Generally, you use a remote criteria.
 * @param strFilter The current SQL WHERE string.
 * @param bIncludeFileName Include the Filename.fieldName in the string.
 * @param vParamList The list of params.
 * @return true if the criteria passes.
 * @return false if the criteria fails, and returns without checking further.
 */
public boolean handleLocalCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
  BaseListener  nextListener = this.getNextEnabledListener();
  boolean bDontSkip = true;
  if (nextListener != null)
    bDontSkip = ((FileListener)nextListener).doLocalCriteria(strFilter, bIncludeFileName, vParamList);
  else
    bDontSkip = this.doLocalCriteria(strFilter, bIncludeFileName, vParamList);
  if (bDontSkip == false)
    return bDontSkip; // skip it
  return this.getTable().doLocalCriteria(strFilter, bIncludeFileName, vParamList);    // Give the table a shot at it
}
/**

代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db

/**
 * Check to see if this record should be skipped.
 * Generally, you use a remote criteria.
 * @param strFilter The current SQL WHERE string.
 * @param bIncludeFileName Include the Filename.fieldName in the string.
 * @param vParamList The list of params.
 * @return true if the criteria passes.
 * @return false if the criteria fails, and returns without checking further.
 */
public boolean handleLocalCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
  BaseListener  nextListener = this.getNextEnabledListener();
  boolean bDontSkip = true;
  if (nextListener != null)
    bDontSkip = ((FileListener)nextListener).doLocalCriteria(strFilter, bIncludeFileName, vParamList);
  else
    bDontSkip = this.doLocalCriteria(strFilter, bIncludeFileName, vParamList);
  if (bDontSkip == false)
    return bDontSkip; // skip it
  return this.getTable().doLocalCriteria(strFilter, bIncludeFileName, vParamList);    // Give the table a shot at it
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * Check to see if this record should be skipped.
 * Generally, you use a remote criteria.
 * @param strFilter The current SQL WHERE string.
 * @param bIncludeFileName Include the Filename.fieldName in the string.
 * @param vParamList The list of params.
 * @return true if the criteria passes.
 * @return false if the criteria fails, and returns without checking further.
 */
public boolean handleLocalCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
  BaseListener  nextListener = this.getNextEnabledListener();
  boolean bDontSkip = true;
  if (nextListener != null)
    bDontSkip = ((FileListener)nextListener).doLocalCriteria(strFilter, bIncludeFileName, vParamList);
  else
    bDontSkip = this.doLocalCriteria(strFilter, bIncludeFileName, vParamList);
  if (bDontSkip == false)
    return bDontSkip; // skip it
  return this.getTable().doLocalCriteria(strFilter, bIncludeFileName, vParamList);    // Give the table a shot at it
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed

/**
 * Set up/do the local criteria.
 * @param strbFilter The SQL query string to add to.
 * @param bIncludeFileName Include the file name with this query?
 * @param vParamList The param list to add the raw data to (for prepared statements).
 * @return True if you should not skip this record (does a check on the local data).
 */
public boolean doLocalCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
  boolean bDontSkip = true;
  FileListener nextListener = (FileListener)this.getNextEnabledListener();
  if (nextListener != null)
  {
    boolean bOldState = nextListener.setEnabledListener(false);  // Don't allow it to be called again
    bDontSkip = nextListener.doLocalCriteria(strbFilter, bIncludeFileName, vParamList);
    nextListener.setEnabledListener(bOldState);
  }
  else if (this.getOwner() != null)
    bDontSkip = this.getOwner().doLocalCriteria(strbFilter, bIncludeFileName, vParamList);
  return bDontSkip; // Don't skip (no criteria)
}
/**

代码示例来源:origin: org.jbundle.base/org.jbundle.base

/**
 * Set up/do the local criteria.
 * @param strbFilter The SQL query string to add to.
 * @param bIncludeFileName Include the file name with this query?
 * @param vParamList The param list to add the raw data to (for prepared statements).
 * @return True if you should not skip this record (does a check on the local data).
 */
public boolean doLocalCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
  boolean bDontSkip = true;
  FileListener nextListener = (FileListener)this.getNextEnabledListener();
  if (nextListener != null)
  {
    boolean bOldState = nextListener.setEnabledListener(false);  // Don't allow it to be called again
    bDontSkip = nextListener.doLocalCriteria(strbFilter, bIncludeFileName, vParamList);
    nextListener.setEnabledListener(bOldState);
  }
  else if (this.getOwner() != null)
    bDontSkip = this.getOwner().doLocalCriteria(strbFilter, bIncludeFileName, vParamList);
  return bDontSkip; // Don't skip (no criteria)
}
/**

代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db

/**
 * Set up/do the local criteria.
 * @param strbFilter The SQL query string to add to.
 * @param bIncludeFileName Include the file name with this query?
 * @param vParamList The param list to add the raw data to (for prepared statements).
 * @return True if you should not skip this record (does a check on the local data).
 */
public boolean doLocalCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
  boolean bDontSkip = true;
  FileListener nextListener = (FileListener)this.getNextEnabledListener();
  if (nextListener != null)
  {
    boolean bOldState = nextListener.setEnabledListener(false);  // Don't allow it to be called again
    bDontSkip = nextListener.doLocalCriteria(strbFilter, bIncludeFileName, vParamList);
    nextListener.setEnabledListener(bOldState);
  }
  else if (this.getOwner() != null)
    bDontSkip = this.getOwner().doLocalCriteria(strbFilter, bIncludeFileName, vParamList);
  return bDontSkip; // Don't skip (no criteria)
}
/**

相关文章

微信公众号

最新文章

更多

Record类方法