本文整理了Java中org.jbundle.base.db.Record.getNextEnabledListener
方法的一些代码示例,展示了Record.getNextEnabledListener
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getNextEnabledListener
方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:getNextEnabledListener
[英]Get the next enabled listener on the chain.
[中]获取链上下一个启用的侦听器。
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Are all the behaviors enabled or disabled?
* @return false if All the listeners are disabled.
*/
public boolean isAllListenersEnabled()
{
return (this.getNextEnabledListener() != null);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Are all the behaviors enabled or disabled?
* @return false if All the listeners are disabled.
*/
public boolean isAllListenersEnabled()
{
return (this.getNextEnabledListener() != null);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Are all the behaviors enabled or disabled?
* @return false if All the listeners are disabled.
*/
public boolean isAllListenersEnabled()
{
return (this.getNextEnabledListener() != null);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Check to see if this record should be skipped.
* @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 handleRemoteCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
return ((FileListener)nextListener).doRemoteCriteria(strFilter, bIncludeFileName, vParamList);
else
return this.doRemoteCriteria(strFilter, bIncludeFileName, vParamList);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Check to see if this record should be skipped.
* @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 handleRemoteCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
return ((FileListener)nextListener).doRemoteCriteria(strFilter, bIncludeFileName, vParamList);
else
return this.doRemoteCriteria(strFilter, bIncludeFileName, vParamList);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Check to see if this record should be skipped.
* @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 handleRemoteCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList)
{
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
return ((FileListener)nextListener).doRemoteCriteria(strFilter, bIncludeFileName, vParamList);
else
return this.doRemoteCriteria(strFilter, bIncludeFileName, vParamList);
}
/**
代码示例来源: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
/**
* 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
/**
* Called when a error happens on a file operation, return the errorcode, or fix the problem.
* @param iChangeType The type of change that occurred.
* @param iErrorCode The error code encountered on the file operation.
* @return The new error code, or return the original code if you can't fix it.
*/
public int handleErrorReturn(int iChangeType, int iErrorCode) // init this field override for other value
{
BaseListener nextListener = this.getNextEnabledListener();
while (nextListener != null)
{
boolean bOldState = nextListener.setEnabledListener(false); // Don't allow it to be called again
iErrorCode = ((FileListener)nextListener).doErrorReturn(iChangeType, iErrorCode);
nextListener.setEnabledListener(bOldState);
nextListener = nextListener.getNextEnabledListener();
}
iErrorCode = this.doErrorReturn(iChangeType, iErrorCode);
return iErrorCode;
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Called when a error happens on a file operation, return the errorcode, or fix the problem.
* @param iChangeType The type of change that occurred.
* @param iErrorCode The error code encountered on the file operation.
* @return The new error code, or return the original code if you can't fix it.
*/
public int handleErrorReturn(int iChangeType, int iErrorCode) // init this field override for other value
{
BaseListener nextListener = this.getNextEnabledListener();
while (nextListener != null)
{
boolean bOldState = nextListener.setEnabledListener(false); // Don't allow it to be called again
iErrorCode = ((FileListener)nextListener).doErrorReturn(iChangeType, iErrorCode);
nextListener.setEnabledListener(bOldState);
nextListener = nextListener.getNextEnabledListener();
}
iErrorCode = this.doErrorReturn(iChangeType, iErrorCode);
return iErrorCode;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Called when a error happens on a file operation, return the errorcode, or fix the problem.
* @param iChangeType The type of change that occurred.
* @param iErrorCode The error code encountered on the file operation.
* @return The new error code, or return the original code if you can't fix it.
*/
public int handleErrorReturn(int iChangeType, int iErrorCode) // init this field override for other value
{
BaseListener nextListener = this.getNextEnabledListener();
while (nextListener != null)
{
boolean bOldState = nextListener.setEnabledListener(false); // Don't allow it to be called again
iErrorCode = ((FileListener)nextListener).doErrorReturn(iChangeType, iErrorCode);
nextListener.setEnabledListener(bOldState);
nextListener = nextListener.getNextEnabledListener();
}
iErrorCode = this.doErrorReturn(iChangeType, iErrorCode);
return iErrorCode;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* The initial key position is in this record... Save it!
*/
public void handleInitialKey() // init this field override for other value
{
KeyArea keyArea = this.getKeyArea(-1);
if (keyArea == null)
return;
BaseBuffer buffer = new VectorBuffer(null);
boolean[] rgbModified = keyArea.getModified();
boolean[] rgbNullable = keyArea.setNullable(true);
keyArea.setupKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
keyArea.zeroKeyFields(DBConstants.START_SELECT_KEY); // Zero out the key fields
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
((FileListener)nextListener).doInitialKey();
else
this.doInitialKey();
keyArea.setNullable(rgbNullable);
keyArea.setModified(rgbModified);
keyArea.reverseKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* The initial key position is in this record... Save it!
*/
public void handleInitialKey() // init this field override for other value
{
KeyArea keyArea = this.getKeyArea(-1);
if (keyArea == null)
return;
BaseBuffer buffer = new VectorBuffer(null);
boolean[] rgbModified = keyArea.getModified();
boolean[] rgbNullable = keyArea.setNullable(true);
keyArea.setupKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
keyArea.zeroKeyFields(DBConstants.START_SELECT_KEY); // Zero out the key fields
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
((FileListener)nextListener).doInitialKey();
else
this.doInitialKey();
keyArea.setNullable(rgbNullable);
keyArea.setModified(rgbModified);
keyArea.reverseKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* The end key position is in this record... Save it!
*/
public void handleEndKey()
{
KeyArea keyArea = this.getKeyArea(-1);
if (keyArea == null)
return;
BaseBuffer buffer = new VectorBuffer(null);
boolean[] rgbModified = keyArea.getModified();
boolean[] rgbNullable = keyArea.setNullable(true);
keyArea.setupKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
keyArea.zeroKeyFields(DBConstants.END_SELECT_KEY); // Set the key fields to a large value
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
((FileListener)nextListener).doEndKey();
else
this.doEndKey();
keyArea.setNullable(rgbNullable);
keyArea.setModified(rgbModified);
keyArea.reverseKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* The end key position is in this record... Save it!
*/
public void handleEndKey()
{
KeyArea keyArea = this.getKeyArea(-1);
if (keyArea == null)
return;
BaseBuffer buffer = new VectorBuffer(null);
boolean[] rgbModified = keyArea.getModified();
boolean[] rgbNullable = keyArea.setNullable(true);
keyArea.setupKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
keyArea.zeroKeyFields(DBConstants.END_SELECT_KEY); // Set the key fields to a large value
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
((FileListener)nextListener).doEndKey();
else
this.doEndKey();
keyArea.setNullable(rgbNullable);
keyArea.setModified(rgbModified);
keyArea.reverseKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* The initial key position is in this record... Save it!
*/
public void handleInitialKey() // init this field override for other value
{
KeyArea keyArea = this.getKeyArea(-1);
if (keyArea == null)
return;
BaseBuffer buffer = new VectorBuffer(null);
boolean[] rgbModified = keyArea.getModified();
boolean[] rgbNullable = keyArea.setNullable(true);
keyArea.setupKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
keyArea.zeroKeyFields(DBConstants.START_SELECT_KEY); // Zero out the key fields
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
((FileListener)nextListener).doInitialKey();
else
this.doInitialKey();
keyArea.setNullable(rgbNullable);
keyArea.setModified(rgbModified);
keyArea.reverseKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* The end key position is in this record... Save it!
*/
public void handleEndKey()
{
KeyArea keyArea = this.getKeyArea(-1);
if (keyArea == null)
return;
BaseBuffer buffer = new VectorBuffer(null);
boolean[] rgbModified = keyArea.getModified();
boolean[] rgbNullable = keyArea.setNullable(true);
keyArea.setupKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
keyArea.zeroKeyFields(DBConstants.END_SELECT_KEY); // Set the key fields to a large value
BaseListener nextListener = this.getNextEnabledListener();
if (nextListener != null)
((FileListener)nextListener).doEndKey();
else
this.doEndKey();
keyArea.setNullable(rgbNullable);
keyArea.setModified(rgbModified);
keyArea.reverseKeyBuffer(buffer, DBConstants.FILE_KEY_AREA);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
BaseListener nextListener = this.getNextEnabledListener();
while (nextListener != null)
代码示例来源:origin: org.jbundle.base/org.jbundle.base
BaseListener nextListener = this.getNextEnabledListener();
while (nextListener != null)
内容来源于网络,如有侵权,请联系作者删除!