本文整理了Java中org.jbundle.base.db.Record.setTable
方法的一些代码示例,展示了Record.setTable
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.setTable
方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:setTable
暂无
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Initialize the table.
* Adds the record's current table to my chain, and sets the record's table to this new table.
* @param database Should be null, as the last table on the chain contains the database.
* @param record The record's current table will be changed to this table and moved down my list.
*/
public void init(BaseDatabase database, Record record)
{
m_tableNext = null;
database = null; // Use the database of the last table on the chain!
super.init(database, record);
if (record.getTable() != this)
m_tableNext = record.getTable();
record.setTable(this); // Make sure the record sees me first
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
record.setTable(table);
代码示例来源:origin: org.jbundle.base/org.jbundle.base
record.setTable(table);
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Initialize the table.
* Adds the record's current table to my chain, and sets the record's table to this new table.
* @param database Should be null, as the last table on the chain contains the database.
* @param record The record's current table will be changed to this table and moved down my list.
*/
public void init(BaseDatabase database, Record record)
{
m_tableNext = null;
database = null; // Use the database of the last table on the chain!
super.init(database, record);
if (record.getTable() != this)
m_tableNext = record.getTable();
record.setTable(this); // Make sure the record sees me first
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
record.setTable(table);
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Initialize the table.
* Adds the record's current table to my chain, and sets the record's table to this new table.
* @param database Should be null, as the last table on the chain contains the database.
* @param record The record's current table will be changed to this table and moved down my list.
*/
public void init(BaseDatabase database, Record record)
{
m_tableNext = null;
database = null; // Use the database of the last table on the chain!
super.init(database, record);
if (record.getTable() != this)
m_tableNext = record.getTable();
record.setTable(this); // Make sure the record sees me first
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* If one exists, set up the Local version of this record.
* Do this by opening a local version of this database and attaching a ResourceTable
* to the record.
* @param record The record to set up.
* @param table The table for the record.
* @return The new locale-sensitive table that has been setup for this record.
*/
public BaseTable makeResourceTable(Record record, BaseTable table, BaseDatabase databaseBase, boolean bHierarchicalTable)
{ // Create a mirrored record in the locale database
Record record2 = (Record)ClassServiceUtility.getClassService().makeObjectFromClassName(record.getClass().getName());
if (record2 != null)
{
BaseTable table2 = databaseBase.makeTable(record2);
record2.setTable(table2);
RecordOwner recordOwner = Record.findRecordOwner(record);
record2.init(recordOwner);
recordOwner.removeRecord(record2); // This is okay as ResourceTable will remove this table on close.
record.setTable(table); // This is necessary to link-up ResourceTable
if (!bHierarchicalTable)
table = new org.jbundle.base.db.util.ResourceTable(null, record);
else
table = new org.jbundle.base.db.util.HierarchicalTable(null, record);
table.addTable(table2);
}
return table;
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* If one exists, set up the Local version of this record.
* Do this by opening a local version of this database and attaching a ResourceTable
* to the record.
* @param record The record to set up.
* @param table The table for the record.
* @return The new locale-sensitive table that has been setup for this record.
*/
public BaseTable makeResourceTable(Record record, BaseTable table, BaseDatabase databaseBase, boolean bHierarchicalTable)
{ // Create a mirrored record in the locale database
Record record2 = (Record)ClassServiceUtility.getClassService().makeObjectFromClassName(record.getClass().getName());
if (record2 != null)
{
BaseTable table2 = databaseBase.makeTable(record2);
record2.setTable(table2);
RecordOwner recordOwner = Utility.getRecordOwner(record);
record2.init(recordOwner);
recordOwner.removeRecord(record2); // This is okay as ResourceTable will remove this table on close.
record.setTable(table); // This is necessary to link-up ResourceTable
if (!bHierarchicalTable)
table = new org.jbundle.base.db.util.ResourceTable(null, record);
else
table = new org.jbundle.base.db.util.HierarchicalTable(null, record);
table.addTable(table2);
}
return table;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* If one exists, set up the Local version of this record.
* Do this by opening a local version of this database and attaching a ResourceTable
* to the record.
* @param record The record to set up.
* @param table The table for the record.
* @return The new locale-sensitive table that has been setup for this record.
*/
public BaseTable makeResourceTable(Record record, BaseTable table, BaseDatabase databaseBase, boolean bHierarchicalTable)
{ // Create a mirrored record in the locale database
Record record2 = (Record)ClassServiceUtility.getClassService().makeObjectFromClassName(record.getClass().getName());
if (record2 != null)
{
BaseTable table2 = databaseBase.makeTable(record2);
record2.setTable(table2);
RecordOwner recordOwner = Utility.getRecordOwner(record);
record2.init(recordOwner);
recordOwner.removeRecord(record2); // This is okay as ResourceTable will remove this table on close.
record.setTable(table); // This is necessary to link-up ResourceTable
if (!bHierarchicalTable)
table = new org.jbundle.base.db.util.ResourceTable(null, record);
else
table = new org.jbundle.base.db.util.HierarchicalTable(null, record);
table.addTable(table2);
}
return table;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
BaseTable table = recMenus.getTable();
table = new SyncTable(table.getDatabase(), recMenus); // Fix concurrency issues
recMenus.setTable(table); // This is necessary to link-up ResourceTable
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
record.setTable(database.makeTable(record)); // This record uses the same database.
代码示例来源:origin: org.jbundle.base/org.jbundle.base
record.setTable(database.makeTable(record)); // This record uses the same database.
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
record.setTable(database.makeTable(record)); // This record uses the same database.
内容来源于网络,如有侵权,请联系作者删除!