public void addColumn(Column column, boolean isInsertable, boolean isUpdatable) { int index = columns.indexOf( column ); if ( index == -1 ) { columns.add(column); insertability.add( isInsertable ); updatability.add( isUpdatable ); } else { if ( insertability.get( index ) != isInsertable ) { throw new IllegalStateException( "Same column is added more than once with different values for isInsertable" ); } if ( updatability.get( index ) != isUpdatable ) { throw new IllegalStateException( "Same column is added more than once with different values for isUpdatable" ); } } column.setValue( this ); column.setTypeIndex( columns.size() - 1 ); }
/** * Shallow copy, the value is not copied */ @Override public Column clone() { Column copy = new Column(); copy.setLength( length ); copy.setScale( scale ); copy.setValue( value ); copy.setTypeIndex( typeIndex ); copy.setName( getQuotedName() ); copy.setNullable( nullable ); copy.setPrecision( precision ); copy.setUnique( unique ); copy.setSqlType( sqlType ); copy.setSqlTypeCode( sqlTypeCode ); copy.uniqueInteger = uniqueInteger; //usually useless copy.setCheckConstraint( checkConstraint ); copy.setComment( comment ); copy.setDefaultValue( defaultValue ); copy.setCustomRead( customRead ); copy.setCustomWrite( customWrite ); return copy; }
public void addColumn(Column column) { if ( !columns.contains(column) ) columns.add(column); column.setValue(this); column.setTypeIndex( columns.size()-1 ); }
public void addColumn(Column column) { if ( !columns.contains(column) ) columns.add(column); column.setValue(this); column.setTypeIndex( columns.size()-1 ); }
public void addColumn(Column column) { if ( !columns.contains(column) ) columns.add(column); column.setValue(this); column.setTypeIndex( columns.size()-1 ); }
public void addColumn(Column column) { if ( !columns.contains(column) ) columns.add(column); column.setValue(this); column.setTypeIndex( columns.size()-1 ); }
Column column = new Column(); column.setValue( simpleValue ); column.setTypeIndex( count++ ); bindColumn( columnElement, column, isNullable ); column.setName( mappings.getNamingStrategy().columnName(
/** * Shallow copy, the value is not copied */ protected Object clone() { Column copy = new Column(); copy.setLength( length ); copy.setScale( scale ); copy.setValue( value ); copy.setTypeIndex( typeIndex ); copy.setName( getQuotedName() ); copy.setNullable( nullable ); copy.setPrecision( precision ); copy.setUnique( unique ); copy.setSqlType( sqlType ); copy.setSqlTypeCode( sqlTypeCode ); copy.uniqueInteger = uniqueInteger; //usually useless copy.setCheckConstraint( checkConstraint ); copy.setComment( comment ); copy.setDefaultValue( defaultValue ); return copy; }
Column column = new Column(); column.setValue( simpleValue ); column.setTypeIndex( count++ ); bindColumn( columnElement, column, isNullable ); final String columnName = columnElement.attributeValue( "name" );
Column column = new Column(); column.setValue( simpleValue ); column.setTypeIndex( count++ ); bindColumn( columnElement, column, isNullable ); final String columnName = columnElement.attributeValue( "name" );
Column column = new Column(); column.setValue( simpleValue ); column.setTypeIndex( count++ ); bindColumn( columnElement, column, isNullable ); String logicalColumnName = mappings.getNamingStrategy().logicalColumnName(
/** * Shallow copy, the value is not copied */ protected Object clone() { Column copy = new Column(); copy.setLength( length ); copy.setScale( scale ); copy.setValue( value ); copy.setTypeIndex( typeIndex ); copy.setName( getQuotedName() ); copy.setNullable( nullable ); copy.setPrecision( precision ); copy.setUnique( unique ); copy.setSqlType( sqlType ); copy.setSqlTypeCode( sqlTypeCode ); copy.uniqueInteger = uniqueInteger; //usually useless copy.setCheckConstraint( checkConstraint ); copy.setComment( comment ); copy.setDefaultValue( defaultValue ); copy.setCustomRead( customRead ); copy.setCustomWrite( customWrite ); return copy; }
/** * Shallow copy, the value is not copied */ protected Object clone() { Column copy = new Column(); copy.setLength( length ); copy.setScale( scale ); copy.setValue( value ); copy.setTypeIndex( typeIndex ); copy.setName( getQuotedName() ); copy.setNullable( nullable ); copy.setPrecision( precision ); copy.setUnique( unique ); copy.setSqlType( sqlType ); copy.setSqlTypeCode( sqlTypeCode ); copy.uniqueInteger = uniqueInteger; //usually useless copy.setCheckConstraint( checkConstraint ); copy.setComment( comment ); copy.setDefaultValue( defaultValue ); copy.setCustomRead( customRead ); copy.setCustomWrite( customWrite ); return copy; }