/** * Return a new field type with a required size defaulting to the defaultSize. */ public FieldTypeDefinition(String databaseTypeName, int defaultSize, int defaultSubSize) { this(); this.name = databaseTypeName; this.defaultSize = defaultSize; this.defaultSubSize = defaultSubSize; this.isSizeRequired = true; setMaxPrecision(defaultSize); setMaxScale(defaultSubSize); }
/** * Return a new field type with a required size defaulting to the defaultSize. */ public FieldTypeDefinition(String databaseTypeName, int defaultSize, int defaultSubSize) { this(); this.name = databaseTypeName; this.defaultSize = defaultSize; this.defaultSubSize = defaultSubSize; this.isSizeRequired = true; setMaxPrecision(defaultSize); setMaxScale(defaultSubSize); }
/** * Return a new field type with a required size defaulting to the defaultSize. */ public FieldTypeDefinition(String databaseTypeName, int defaultSize, int defaultSubSize) { this(); this.name = databaseTypeName; this.defaultSize = defaultSize; this.defaultSubSize = defaultSubSize; this.isSizeRequired = true; setMaxPrecision(defaultSize); setMaxScale(defaultSubSize); }
/** * Set the maximum precision and the minimum and maximum scale. * @return this Allowing the method to be invoked inline with constructor */ public FieldTypeDefinition setLimits(int maxPrecision, int minScale, int maxScale) { setMaxPrecision(maxPrecision); setMinScale(minScale); setMaxScale(maxScale); return this; }
/** * Set the maximum precision and the minimum and maximum scale. * @return this Allowing the method to be invoked inline with constructor */ public FieldTypeDefinition setLimits(int maxPrecision, int minScale, int maxScale) { setMaxPrecision(maxPrecision); setMinScale(minScale); setMaxScale(maxScale); return this; }
/** * Set the maximum precision and the minimum and maximum scale. * @return this Allowing the method to be invoked inline with constructor */ public FieldTypeDefinition setLimits(int maxPrecision, int minScale, int maxScale) { setMaxPrecision(maxPrecision); setMinScale(minScale); setMaxScale(maxScale); return this; }