public class GXTableColumnCollection extends Object implements GXITableColumnCollection, Externalizable
Constructor and Description |
---|
GXTableColumnCollection() |
Modifier and Type | Method and Description |
---|---|
void |
addColumn(GXITableColumn column)
Adds a new column to the schema.
|
boolean |
equals(Object obj) |
GXITableColumn |
getColumn(int columnIndex) |
GXITableColumn |
getColumn(String columnName) |
int |
getColumnCount() |
GXITableColumn[] |
getColumns() |
void |
readExternal(ObjectInput in) |
void |
removeColumn(int columnIndex)
Removes a column from the column's schema only, and not the actual column's data.
|
void |
removeColumn(String columnName)
Removes a column from the column's schema only, and not the actual column's data.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public GXITableColumn[] getColumns()
getColumns
in interface GXITableColumnCollection
public int getColumnCount()
getColumnCount
in interface GXITableColumnCollection
public GXITableColumn getColumn(int columnIndex)
getColumn
in interface GXITableColumnCollection
columnIndex
- the index of the column to retrieve. Should range between 0 and columnCount.GXITableColumnCollection.getColumnCount()
public GXITableColumn getColumn(String columnName)
getColumn
in interface GXITableColumnCollection
columnName
- the name of the column to retrieve.public void addColumn(GXITableColumn column)
GXITableColumnCollection
addColumn
in interface GXITableColumnCollection
column
- the new column to add.public void removeColumn(int columnIndex)
GXITableColumnCollection
removeColumn
in interface GXITableColumnCollection
columnIndex
- the index of the column to remove. Should range between 0 and columnCount.GXITable.removeColumn(int columnIndex)
,
GXITableColumnCollection.getColumnCount()
public void removeColumn(String columnName)
GXITableColumnCollection
removeColumn
in interface GXITableColumnCollection
columnName
- the name of the column to remove.GXITable.removeColumn(String columnName)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright 2021 Software AG. All rights reserved. Use is subject to license terms.