Kenmegne
7 days ago 23a46b4be35277e06ec89f48730eeb694e686be8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 * 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;
    }
 
}