package com.palacesun.masking.log.access;

import java.util.Calendar;

public class SqlValue {
   public int primiteType;
   public Object value;
   public Object rawValue;
   public String type;
   public String targetType;
   public Integer intTargetType;
   public Integer length;
   public Long longLength;
   public Integer scaleOrLength;
   public Calendar calendar;

   public SqlValue() {
   }

   public SqlValue(int primiteType, Object value, Object rawValue) {
      this.primiteType = primiteType;
      this.value = value;
      this.rawValue = rawValue;
   }

   public SqlValue(int primiteType, Object value, Object rawValue, String type, String targetType, Integer length, Long longLength, Calendar calendar) {
      this.primiteType = primiteType;
      this.value = value;
      this.rawValue = rawValue;
      this.type = type;
      this.targetType = targetType;
      this.length = length;
      this.longLength = longLength;
      this.calendar = calendar;
   }

   public SqlValue(int primiteType, Object value, Object rawValue, int targetType, int scaleOrLength) {
      this.primiteType = primiteType;
      this.value = value;
      this.rawValue = rawValue;
      this.intTargetType = targetType;
      this.scaleOrLength = scaleOrLength;
   }
}
