Menu

DataType_Implemented

silex6

DataType framework

In this database software stack, the DataType framework provide generic interfaces to load / store / compare and cast data whatever is the data type. The DataType and Value abstract classes can be used by the different stack layers for data transfer objects that contains data - text, number, dates...

the framework is in org.whitebear.datatype package

Main interfaces

  • TypeFactory is a factory to create DataType instances
  • DataType is a base class that allows to manipulate / load / store characteristics of a data type - as size of a character field. There is a dozen of derived classes that cover the typical SQL data types - as integer, nvarchar and date. The DataType API also contains a generic factory method to load a Value
  • Value is the base class for data transfer objects that contains some data. It provide generic methods to compare, save, hash, and cast values. The base class implements NULL and there is a dozen of concrete classes for the different type of data

Supported types

The data type framework currently support the following data types:

  • integer number types - 16, 32 and 64 bits integer numbers
  • floating point number types - single or double precision
  • text data type - SQL nvarchar
  • date, time and date+time - use ISO-8601 format
  • boolean
  • composite data types - a set of different values from different data types, that can be used as a single value
  • UUIDs
  • a null data type for the NULL keyword

not yet supported: decimal, interval and binary


Related

Wiki: Catalog_Implemented
Wiki: FileLayer_Implemented
Wiki: General_architecture
Wiki: Runtime_Implemented

MongoDB Logo MongoDB