Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion src/main/java/io/github/mapepire_ibmi/types/ColumnMetadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ public class ColumnMetadata {
@JsonProperty("writeable")
private boolean writeable;

/**
* The column's table name.
*/
@JsonProperty("table")
private String table;

/**
* Construct a new ColumnMetadata instance.
*/
Expand All @@ -87,9 +93,10 @@ public ColumnMetadata() {
* @param readOnly Indicates whether the column is definitely not writable.
* @param writeable Indicates whether it is possible for a write on the
* column to succeed.
* @param table The column's table name.
*/
public ColumnMetadata(int displaySize, String label, String name, String type, int precision, int scale,
boolean autoIncrement, int nullable, boolean readOnly, boolean writeable) {
boolean autoIncrement, int nullable, boolean readOnly, boolean writeable, String table) {
this.displaySize = displaySize;
this.label = label;
this.name = name;
Expand All @@ -100,6 +107,7 @@ public ColumnMetadata(int displaySize, String label, String name, String type, i
this.nullable = nullable;
this.readOnly = readOnly;
this.writeable = writeable;
this.table = table;
}

/**
Expand Down Expand Up @@ -281,4 +289,24 @@ public boolean getWriteable() {
public void setWriteable(boolean writeable) {
this.writeable = writeable;
}

/**
* Get the column's table name.
*
* @return The column's table name.
*/
public String getTable() {
return table;
}

/**
* Set the column's table name.
*
* @param table The column's table name.
*/
public void setTable(String table) {
this.table = table;
}
}


Loading