/*
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
*/
|
package com.megatim.fdxcommons.tools.database.tables.dto;
|
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/**
|
*
|
* @author ASUS
|
*/
|
public class FdxTableColumnDataDto implements Serializable {
|
|
private Object value;
|
private String name;
|
private int position;
|
private int sqlDataType;
|
|
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
|
@JsonSubTypes({
|
@JsonSubTypes.Type(value = BigDecimal.class, name = "BigDecimal"),
|
@JsonSubTypes.Type(value = Long.class, name = "Long"),
|
@JsonSubTypes.Type(value = String.class, name = "String"),
|
@JsonSubTypes.Type(value = LocalDateTime.class, name = "LocalDateTime")}
|
)
|
public Object getValue() {
|
return value;
|
}
|
|
public void setValue(Object value) {
|
this.value = value;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public int getPosition() {
|
return position;
|
}
|
|
public void setPosition(int position) {
|
this.position = position;
|
}
|
|
public int getSqlDataType() {
|
return sqlDataType;
|
}
|
|
public void setSqlDataType(int sqlDataType) {
|
this.sqlDataType = sqlDataType;
|
}
|
|
}
|