public void replaceMeta( BaseLogTable baseLogTable ) { this.space = baseLogTable.space; this.databasesInterface = baseLogTable.databasesInterface; this.connectionName = baseLogTable.connectionName; this.schemaName = baseLogTable.schemaName; this.tableName = baseLogTable.tableName; this.timeoutInDays = baseLogTable.timeoutInDays; fields.clear(); for ( LogTableField field : baseLogTable.fields ) { try { fields.add( (LogTableField) field.clone() ); } catch ( CloneNotSupportedException e ) { throw new RuntimeException( "Clone problem with the base log table", e ); } } }
@Override public Object clone() { try { ChannelLogTable table = (ChannelLogTable) super.clone(); table.fields = new ArrayList<LogTableField>(); for ( LogTableField field : this.fields ) { table.fields.add( (LogTableField) field.clone() ); } return table; } catch ( CloneNotSupportedException e ) { return null; } }
@Override public Object clone() { try { PerformanceLogTable table = (PerformanceLogTable) super.clone(); table.fields = new ArrayList<LogTableField>(); for ( LogTableField field : this.fields ) { table.fields.add( (LogTableField) field.clone() ); } return table; } catch ( CloneNotSupportedException e ) { return null; } }
@Override public Object clone() { try { TransLogTable table = (TransLogTable) super.clone(); table.fields = new ArrayList<LogTableField>(); for ( LogTableField field : this.fields ) { table.fields.add( (LogTableField) field.clone() ); } return table; } catch ( CloneNotSupportedException e ) { return null; } }
@Override public Object clone() { try { JobLogTable table = (JobLogTable) super.clone(); table.fields = new ArrayList<LogTableField>(); for ( LogTableField field : this.fields ) { table.fields.add( (LogTableField) field.clone() ); } return table; } catch ( CloneNotSupportedException e ) { return null; } }
@Override public Object clone() { try { JobEntryLogTable table = (JobEntryLogTable) super.clone(); table.fields = new ArrayList<LogTableField>(); for ( LogTableField field : this.fields ) { table.fields.add( (LogTableField) field.clone() ); } return table; } catch ( CloneNotSupportedException e ) { return null; } }
@Override public Object clone() { try { MetricsLogTable table = (MetricsLogTable) super.clone(); table.fields = new ArrayList<LogTableField>(); for ( LogTableField field : this.fields ) { table.fields.add( (LogTableField) field.clone() ); } return table; } catch ( CloneNotSupportedException e ) { return null; } }
@Override public Object clone() { try { StepLogTable table = (StepLogTable) super.clone(); table.fields = new ArrayList<LogTableField>(); for ( LogTableField field : this.fields ) { table.fields.add( (LogTableField) field.clone() ); } return table; } catch ( CloneNotSupportedException e ) { return null; } }