public interface MaskValueMetadata
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN_LENGTH_SENTINEL |
static long |
UNLIMITED_LENGTH_SENTINEL |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDataPathFieldName()
Get the field or column name of the data this metadata applies to, or null if no path
information is available.
|
java.lang.String |
getDataPathParentName()
Get the record or table name of the data this metadata applies to, or null if no path
information is available.
|
java.time.format.DateTimeFormatter |
getDateTimeFormatter()
Get a formatter appropriate for converting String values to and from LocalDateTime objects.
|
MaskingAlgorithm.MaskingType |
getMaskingType()
Get the
MaskingAlgorithm.MaskingType type of the values being masked. |
long |
getMaxLength()
Get the maximum size of the value being masked.
|
int |
getNumericPrecision()
Get the numeric precision, in digits, of the field.
|
UnderlyingDataType |
getStorageType()
Get the
UnderlyingDataType value indicating the storage type of the value masked. |
java.lang.String |
getStringCharsetName()
Get the name of the
Charset used to encode string values in the underlying data
format. |
int |
getStringMaxLength()
Get the maximum length of String that will fit in the field.
|
boolean |
isAutoIncrementField()
Get a boolean value indicating whether the field is AUTO_INCREMENT.
|
boolean |
isStringMaxLengthEncoded()
Get a boolean value indicating whether the value returned by
getStringMaxLength() method represents the maximum Java String length
in characters (false), or a byte length limit that should be applied to the encoded String
(true). |
static final long UNKNOWN_LENGTH_SENTINEL
static final long UNLIMITED_LENGTH_SENTINEL
UnderlyingDataType getStorageType()
Get the UnderlyingDataType
value indicating the storage type of the value masked.
This information more precisely reflects storage type of the value than MaskingType. The
result will be null when this information is not available.
The special values UNKNOWN_LENGTH_SENTINEL
and UNLIMITED_LENGTH_SENTINEL
represent special case values for maximum length. Presence of these sentinels typically means
no length restriction will be applied to the mask value.
long getMaxLength()
isStringMaxLengthEncoded()
returns
true.java.time.format.DateTimeFormatter getDateTimeFormatter()
int getStringMaxLength()
boolean isStringMaxLengthEncoded()
getStringMaxLength()
method represents the maximum Java String length
in characters (false), or a byte length limit that should be applied to the encoded String
(true).java.lang.String getStringCharsetName()
Charset
used to encode string values in the underlying data
format.Charset
.int getNumericPrecision()
Get the numeric precision, in digits, of the field. This is the maximum number of base 10 digits that can be store in the field without rounding. This value is approximate when storageType is LONG or DOUBLE, and indicates the number of full decimal digits the field can carry. For example, a 16-bit integer will show value of 4, since the values from 32,768 - 99,999 cannot be represented.
This value is undefined for storage types other than BIG_DECIMAL, LONG and DOUBLE.
A value of 0 will be returned if the numeric precision is known
MaskingAlgorithm.MaskingType getMaskingType()
MaskingAlgorithm.MaskingType
type of the values being masked. This
information is provided to allow ADVANCED_OBJECT type algorithms to determine the underlying
object type for values being masked.@Nullable java.lang.String getDataPathFieldName()
@Nullable java.lang.String getDataPathParentName()
boolean isAutoIncrementField()