org.jbundle.thin.base.db.FieldList.setAutoSequence()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(108)

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

FieldList.setAutoSequence介绍

[英]Does this fieldlist have a primary key that is auto-sequence. This can be turned off (in thick) by setting table.setProperty(AUTO_SEQUENCE_KEY, FALSE), which is primarily used to restore an archive with changing the autosequenced values. In this is is okay to set this, although usually only set by system functions.
[中]此字段列表是否有自动排序的主键。这可以通过设置表格来关闭(以粗体显示)。setProperty(AUTO_SEQUENCE_KEY,FALSE),主要用于通过更改autosequenced值来恢复存档。在这种情况下,可以进行设置,尽管通常仅由系统功能设置。

代码示例

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

/**
 * Does this fieldlist have a primary key that is auto-sequence.
 * This can be turned off (in thick) by setting table.setProperty(AUTO_SEQUENCE_KEY, FALSE),
 * which is primarily used to restore an archive with changing the autosequenced values.
 * In this is is okay to set this, although usually only set by system functions.
 * @param bIsAutoSequence True if autosequence key.
 */
public boolean setAutoSequence(boolean bIsAutoSequence)
{
  boolean bOldAutoSequence = super.setAutoSequence(bIsAutoSequence);
  String strMode = DBConstants.FALSE;
  if (bIsAutoSequence)
    strMode = DBConstants.TRUE;
  this.getTable().getCurrentTable().setProperty(SQLParams.AUTO_SEQUENCE_ENABLED, strMode);        // Enable/Disable autosequence
  return bOldAutoSequence;
}
/**

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

/**
 * Does this fieldlist have a primary key that is auto-sequence.
 * This can be turned off (in thick) by setting table.setProperty(AUTO_SEQUENCE_KEY, FALSE),
 * which is primarily used to restore an archive with changing the autosequenced values.
 * In this is is okay to set this, although usually only set by system functions.
 * @param bIsAutoSequence True if autosequence key.
 */
public boolean setAutoSequence(boolean bIsAutoSequence)
{
  boolean bOldAutoSequence = super.setAutoSequence(bIsAutoSequence);
  String strMode = DBConstants.FALSE;
  if (bIsAutoSequence)
    strMode = DBConstants.TRUE;
  this.getTable().getCurrentTable().setProperty(SQLParams.AUTO_SEQUENCE_ENABLED, strMode);        // Enable/Disable autosequence
  return bOldAutoSequence;
}
/**

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

/**
 * Does this fieldlist have a primary key that is auto-sequence.
 * This can be turned off (in thick) by setting table.setProperty(AUTO_SEQUENCE_KEY, FALSE),
 * which is primarily used to restore an archive with changing the autosequenced values.
 * In this is is okay to set this, although usually only set by system functions.
 * @param bIsAutoSequence True if autosequence key.
 */
public boolean setAutoSequence(boolean bIsAutoSequence)
{
  boolean bOldAutoSequence = super.setAutoSequence(bIsAutoSequence);
  String strMode = DBConstants.FALSE;
  if (bIsAutoSequence)
    strMode = DBConstants.TRUE;
  this.getTable().getCurrentTable().setProperty(SQLParams.AUTO_SEQUENCE_ENABLED, strMode);        // Enable/Disable autosequence
  return bOldAutoSequence;
}
/**

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

fieldList.setOpenMode(DBConstants.OPEN_NORMAL);
try   {
  fieldList.setAutoSequence(false);  // Disable autoseq temporarily
  if (fieldList instanceof Record)
  ex.printStackTrace();
} finally {
  fieldList.setAutoSequence(bAutoSequence);
  if (rgListeners != null)
    ((Record)fieldList).setEnableListeners(rgListeners);

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

fieldList.setOpenMode(DBConstants.OPEN_NORMAL);
try   {
  fieldList.setAutoSequence(false);  // Disable autoseq temporarily
  if (fieldList instanceof Record)
  ex.printStackTrace();
} finally {
  fieldList.setAutoSequence(bAutoSequence);
  if (rgListeners != null)
    ((Record)fieldList).setEnableListeners(rgListeners);

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

fieldList.setOpenMode(DBConstants.OPEN_NORMAL);
try   {
  fieldList.setAutoSequence(false);  // Disable autoseq temporarily
  if (fieldList instanceof Record)
  ex.printStackTrace();
} finally {
  fieldList.setAutoSequence(bAutoSequence);
  if (rgListeners != null)
    ((Record)fieldList).setEnableListeners(rgListeners);

相关文章