net.sourceforge.squirrel_sql.fw.util.Utilities.cloneObject()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(120)

本文整理了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

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());

相关文章