Package io.vertigo.basics.constraint
Class ConstraintLongLength
java.lang.Object
io.vertigo.basics.constraint.ConstraintLongLength
Contrainte vérifiant que l'objet est :
On rappelle que le maximum d'un type Long est compris entre 1O^18 et 10^19
On conseille donc d'utiliser 10^18 comme structure de stockage max en BDD : donc number(18)
Si vous souhaitez flirter avec les 10^19 alors n'utilisez pas de contraintes.
- soit un Long comprenant au maximum le nombre de chiffres précisé à la construction (nombres de digits)
- soit null
On rappelle que le maximum d'un type Long est compris entre 1O^18 et 10^19
On conseille donc d'utiliser 10^18 comme structure de stockage max en BDD : donc number(18)
Si vous souhaitez flirter avec les 10^19 alors n'utilisez pas de contraintes.
- Author:
- pchretien
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckConstraint(Long value) io.vertigo.core.locale.LocaleMessageTextfinal intfinal io.vertigo.datamodel.smarttype.definitions.Propertyfinal Integer
-
Constructor Details
-
Method Details
-
checkConstraint
-
getErrorMessage
public io.vertigo.core.locale.LocaleMessageText getErrorMessage() -
getMaxLength
public final int getMaxLength()- Returns:
- int Nombre maximum de caractères, de chiffres...
-
getProperty
public final io.vertigo.datamodel.smarttype.definitions.Property getProperty()- Specified by:
getPropertyin interfaceio.vertigo.datamodel.smarttype.definitions.Constraint<Integer,D>
-
getPropertyValue
- Specified by:
getPropertyValuein interfaceio.vertigo.datamodel.smarttype.definitions.Constraint<Integer,D>
-