本文整理了Java中org.jbundle.base.db.Record.getDatabaseName
方法的一些代码示例,展示了Record.getDatabaseName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getDatabaseName
方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:getDatabaseName
[英]Get the Database Name. Always override this method.
[中]获取数据库名称。始终重写此方法。
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Get the Database Name.
* Always override this method.
* @return The database name.
*/
public String getDatabaseName()
{
// ****Override this****, If not, try to figure it out
if (m_vRecordList != null)
if (this.getRecordlistAt(0) != null)
return this.getRecordlistAt(0).getDatabaseName();
return super.getDatabaseName(); // Blank
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Get the Database Name.
* Always override this method.
* @return The database name.
*/
public String getDatabaseName()
{
// ****Override this****, If not, try to figure it out
if (m_vRecordList != null)
if (this.getRecordlistAt(0) != null)
return this.getRecordlistAt(0).getDatabaseName();
return super.getDatabaseName(); // Blank
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Get the Database Name.
* Always override this method.
* @return The database name.
*/
public String getDatabaseName()
{
// ****Override this****, If not, try to figure it out
if (m_vRecordList != null)
if (this.getRecordlistAt(0) != null)
return this.getRecordlistAt(0).getDatabaseName();
return DBConstants.BLANK; // Blank
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
databaseName = record.getDatabaseName();
Utility.getLogger().info("Record: " + filename + " Database: " + databaseName);// + " Path: " + fileDir.getPath());
if (!this.importXML(record, file.getPath(), null))
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
databaseName = record.getDatabaseName();
Utility.getLogger().info("Record: " + filename + " Database: " + databaseName);// + " Path: " + fileDir.getPath());
if (!this.importXML(record, file.getPath(), null))
代码示例来源:origin: org.jbundle.base/org.jbundle.base
if (!ENGLISH.equals(strLanguage))
String strLocaleDBName = record.getDatabaseName() + "_" + strLanguage;
if (!strLocaleDBName.equals(this.getDatabaseName(false)))
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
if (!ENGLISH.equals(strLanguage))
String strLocaleDBName = record.getDatabaseName() + "_" + strLanguage;
if (!strLocaleDBName.equals(this.getDatabaseName(false)))
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
if (!ENGLISH.equals(strLanguage))
String strLocaleDBName = record.getDatabaseName() + "_" + strLanguage;
if (!strLocaleDBName.equals(this.getDatabaseName(false)))
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Get the table for this record.
* This is the same as getFieldTable, but casts the class up.
* @return The table for this record.
*/
public BaseTable getTable()
{
BaseTable table = (BaseTable)super.getTable();
if (table == null) // It's possible that m_table was set in an overriding init method.
{
DatabaseOwner databaseOwner = null;
if (this.getRecordOwner() != null)
databaseOwner = this.getRecordOwner().getDatabaseOwner();
if (databaseOwner != null)
{
BaseDatabase database = databaseOwner.getDatabase(this.getDatabaseName(), this.getDatabaseType(), null);
m_table = database.makeTable(this);
}
}
return (BaseTable)super.getTable();
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
String strSource = this.getSourceType() + HANDLE_SEPARATOR + this.getRecord().getDatabaseName() + HANDLE_SEPARATOR + this.getRecord().getTableNames(false);
try {
if (iHandleType == DBConstants.FULL_OBJECT_HANDLE)
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Get the table for this record.
* This is the same as getFieldTable, but casts the class up.
* @return The table for this record.
*/
public BaseTable getTable()
{
BaseTable table = (BaseTable)super.getTable();
if (table == null) // It's possible that m_table was set in an overriding init method.
{
DatabaseOwner databaseOwner = null;
if (this.getRecordOwner() != null)
databaseOwner = this.getRecordOwner().getDatabaseOwner();
if (databaseOwner != null)
{
BaseDatabase database = databaseOwner.getDatabase(this.getDatabaseName(), this.getDatabaseType(), null);
m_table = database.makeTable(this);
}
}
return (BaseTable)super.getTable();
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Get the table for this record.
* This is the same as getFieldTable, but casts the class up.
* @return The table for this record.
*/
public BaseTable getTable()
{
BaseTable table = (BaseTable)super.getTable();
if (table == null) // It's possible that m_table was set in an overriding init method.
{
DatabaseOwner databaseOwner = null;
if (this.getRecordOwner() != null)
databaseOwner = this.getRecordOwner().getDatabaseOwner();
if (databaseOwner != null)
{
BaseDatabase database = (BaseDatabase)databaseOwner.getDatabase(this.getDatabaseName(), this.getDatabaseType(), null);
m_table = database.makeTable(this);
}
}
return (BaseTable)super.getTable();
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
String strSource = this.getSourceType() + HANDLE_SEPARATOR + this.getRecord().getDatabaseName() + HANDLE_SEPARATOR + this.getRecord().getTableNames(false);
try {
if (iHandleType == DBConstants.FULL_OBJECT_HANDLE)
代码示例来源:origin: org.jbundle.base/org.jbundle.base
String strSource = this.getSourceType() + HANDLE_SEPARATOR + this.getRecord().getDatabaseName() + HANDLE_SEPARATOR + this.getRecord().getTableNames(false);
try {
if (iHandleType == DBConstants.FULL_OBJECT_HANDLE)
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Unlock this record if it is locked.
* @param record The record to unlock.
* @param The bookmark to unlock (all if null).
* @return true if successful (it is usually okay to ignore this return).
*/
public boolean unlockIfLocked(Record record, Object bookmark) throws DBException
{
if (record != null)
{ // unlock record
BaseApplication app = null;
org.jbundle.model.Task task = null;
if (record.getRecordOwner() != null)
task = record.getRecordOwner().getTask();
if (task != null)
app = (BaseApplication)record.getRecordOwner().getTask().getApplication();
Environment env = null;
if (app != null)
env = app.getEnvironment();
else
env = Environment.getEnvironment(null);
return env.getLockManager().unlockThisRecord(task, record.getDatabaseName(), record.getTableNames(false), bookmark);
}
return true;
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base
/**
* Unlock this record if it is locked.
* @param record The record to unlock.
* @param The bookmark to unlock (all if null).
* @return true if successful (it is usually okay to ignore this return).
*/
public boolean unlockIfLocked(Record record, Object bookmark) throws DBException
{
if (record != null)
{ // unlock record
BaseApplication app = null;
org.jbundle.model.Task task = null;
if (record.getRecordOwner() != null)
task = record.getRecordOwner().getTask();
if (task != null)
app = (BaseApplication)record.getRecordOwner().getTask().getApplication();
Environment env = null;
if (app != null)
env = app.getEnvironment();
else
env = Environment.getEnvironment(null);
return env.getLockManager().unlockThisRecord(task, record.getDatabaseName(), record.getTableNames(false), bookmark);
}
return true;
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
/**
* Unlock this record if it is locked.
* @param record The record to unlock.
* @param The bookmark to unlock (all if null).
* @return true if successful (it is usually okay to ignore this return).
*/
public boolean unlockIfLocked(Record record, Object bookmark) throws DBException
{
if (record != null)
{ // unlock record
BaseApplication app = null;
org.jbundle.model.Task task = null;
if (record.getRecordOwner() != null)
task = record.getRecordOwner().getTask();
if (task != null)
app = (BaseApplication)record.getRecordOwner().getTask().getApplication();
Environment env = null;
if (app != null)
env = app.getEnvironment();
else
env = Environment.getEnvironment(null);
return env.getLockManager().unlockThisRecord(task, record.getDatabaseName(), record.getTableNames(false), bookmark);
}
return true;
}
/**
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
else
env = Environment.getEnvironment(null);
iErrorCode = env.getLockManager().lockThisRecord(task, record.getDatabaseName(), record.getTableNames(false), bookmark, strUserName, record.getOpenMode());
代码示例来源:origin: org.jbundle.base/org.jbundle.base
else
env = Environment.getEnvironment(null);
iErrorCode = env.getLockManager().lockThisRecord(task, record.getDatabaseName(), record.getTableNames(false), bookmark, strUserName, record.getOpenMode());
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
else
env = Environment.getEnvironment(null);
iErrorCode = env.getLockManager().lockThisRecord(task, record.getDatabaseName(), record.getTableNames(false), bookmark, strUserName, record.getOpenMode());
内容来源于网络,如有侵权,请联系作者删除!