本文整理了Java中net.sourceforge.squirrel_sql.fw.util.Utilities.cloneObject()
方法的一些代码示例,展示了Utilities.cloneObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.cloneObject()
方法的具体详情如下:
包路径:net.sourceforge.squirrel_sql.fw.util.Utilities
类名称:Utilities
方法名:cloneObject
暂无
代码示例来源:origin: net.sf.squirrel-sql.plugins/codecompletion
public void sessionCreated(ISession session)
{
CodeCompletionPreferences prefs = (CodeCompletionPreferences) Utilities.cloneObject(_newSessionPrefs, getClass().getClassLoader());
session.putPluginObject(this, PLUGIN_OBJECT_PREFS_KEY, prefs);
}
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
SchemaLoadInfo[] getMatchingSchemaLoadInfos(String schemaName, String[] tableTypes)
{
if(null == schemaName)
{
return getAllSchemaLoadInfos();
}
SchemaLoadInfo[] schemaLoadInfos = getAllSchemaLoadInfos();
for (int i = 0; i < schemaLoadInfos.length; i++)
{
if(null == schemaLoadInfos[i].schemaName || schemaLoadInfos[i].schemaName.equals(schemaName))
{
// null == schemaLoadInfos[0].schemaName is the case when there are no _schemas specified
// schemaLoadInfos.length will then be 1.
schemaLoadInfos[i].schemaName = schemaName;
if(null != tableTypes)
{
SchemaLoadInfo buf = (SchemaLoadInfo) Utilities.cloneObject(
schemaLoadInfos[i], getClass().getClassLoader());
buf.tableTypes = tableTypes;
return new SchemaLoadInfo[]{buf};
}
return new SchemaLoadInfo[]{schemaLoadInfos[i]};
}
}
throw new IllegalArgumentException("Unknown Schema " + schemaName);
}
代码示例来源:origin: realXuJiang/bigtable-sql
SchemaLoadInfo[] getMatchingSchemaLoadInfos(String schemaName, String[] tableTypes)
{
if(null == schemaName)
{
return getAllSchemaLoadInfos();
}
SchemaLoadInfo[] schemaLoadInfos = getAllSchemaLoadInfos();
for (int i = 0; i < schemaLoadInfos.length; i++)
{
if(null == schemaLoadInfos[i].schemaName || schemaLoadInfos[i].schemaName.equals(schemaName))
{
// null == schemaLoadInfos[0].schemaName is the case when there are no _schemas specified
// schemaLoadInfos.length will then be 1.
schemaLoadInfos[i].schemaName = schemaName;
if(null != tableTypes)
{
SchemaLoadInfo buf = (SchemaLoadInfo) Utilities.cloneObject(
schemaLoadInfos[i], getClass().getClassLoader());
buf.tableTypes = tableTypes;
return new SchemaLoadInfo[]{buf};
}
return new SchemaLoadInfo[]{schemaLoadInfos[i]};
}
}
throw new IllegalArgumentException("Unknown Schema " + schemaName);
}
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
SchemaLoadInfo buf = (SchemaLoadInfo) Utilities.cloneObject(
schemaLoadInfos[0], getClass().getClassLoader());
buf.schemaName = allowedSchemas[i];
代码示例来源:origin: realXuJiang/bigtable-sql
SchemaLoadInfo buf = (SchemaLoadInfo) Utilities.cloneObject(
schemaLoadInfos[0], getClass().getClassLoader());
buf.schemaName = allowedSchemas[i];
代码示例来源:origin: realXuJiang/bigtable-sql
setDriverProperties(rhs.getDriverPropertiesClone());
_schemaProperties =
(SQLAliasSchemaProperties) Utilities.cloneObject(rhs._schemaProperties,
getClass().getClassLoader());
_colorProperties =
(SQLAliasColorProperties) Utilities.cloneObject(rhs._colorProperties, getClass().getClassLoader());
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
setDriverProperties(rhs.getDriverPropertiesClone());
_schemaProperties =
(SQLAliasSchemaProperties) Utilities.cloneObject(rhs._schemaProperties,
getClass().getClassLoader());
_colorProperties =
(SQLAliasColorProperties) Utilities.cloneObject(rhs._colorProperties, getClass().getClassLoader());
内容来源于网络,如有侵权,请联系作者删除!