Package org.firebirdsql.jdbc.metadata
Class TypeMetadata.Builder
java.lang.Object
org.firebirdsql.jdbc.metadata.TypeMetadata.Builder
- Enclosing class:
- TypeMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()withCharacterLength(Integer characterLength) Sets the character length (RDB$CHARACTER_LENGTH).withCharacterSetId(Integer characterSetId) Sets the character set id (RDB$CHARACTER_SET_ID).withFieldLength(Integer fieldLength) Sets the field length (RDB$FIELD_LENGTH).withPrecision(Integer precision) Sets the field precision (RDB$FIELD_PRECISION).Sets the field scale (RDB$FIELD_SCALE).withSubType(Integer subType) Sets the field sub type code (RDB$FIELD_SUB_TYPE).withType(int type) Sets the field type code (RDB$FIELD_TYPE).
-
Constructor Details
-
Builder
-
-
Method Details
-
build
-
withType
Sets the field type code (RDB$FIELD_TYPE).- Parameters:
type- Field type code- Returns:
- this builder
-
withSubType
Sets the field sub type code (RDB$FIELD_SUB_TYPE).- Parameters:
subType- Field sub type code- Returns:
- this builder
-
withPrecision
Sets the field precision (RDB$FIELD_PRECISION).- Parameters:
precision- Field precision- Returns:
- this builder
-
withScale
Sets the field scale (RDB$FIELD_SCALE).- Parameters:
scale- Field scale- Returns:
- this builder
-
withCharacterSetId
Sets the character set id (RDB$CHARACTER_SET_ID).- Parameters:
characterSetId- Character set id- Returns:
- this builder
-
withFieldLength
Sets the field length (RDB$FIELD_LENGTH).- Parameters:
fieldLength- Field length- Returns:
- this builder
-
withCharacterLength
Sets the character length (RDB$CHARACTER_LENGTH).- Parameters:
characterLength- Character length- Returns:
- this builder
-