Class nnjl.licurgo.PrimitiveType
Defined in: nnjl.licurgo.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Creates a new Primitive Type.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Name of the field
|
|
|
boolean if the type is nullable or nor
|
|
|
Name of type as it is definied by the RDBMS
|
|
|
Size of the field
|
| Method Attributes | Method Name and Description |
|---|---|
|
Return if the type is nullable
|
|
|
setNullable(nullable)
Set if it's nullable or not
|
|
|
setSize(size)
Set type size
|
|
|
transformNativeValue(value)
Transform from RDBMS native value
|
|
|
transformValue(value)
Transform to RDBMS native value
|
Field Detail
{string}
name
Name of the field
{boolean}
nullable
boolean if the type is nullable or nor
{string}
rdbmsType
Name of type as it is definied by the RDBMS
{int}
size
Size of the field
Method Detail
{boolean}
isNullable()
Return if the type is nullable
- Returns:
- {boolean} true if its nullable type
setNullable(nullable)
Set if it's nullable or not
- Parameters:
- {boolean} nullable
setSize(size)
Set type size
- Parameters:
- {int} size
transformNativeValue(value)
Transform from RDBMS native value
- Parameters:
- value
- Returns:
- transformed value
transformValue(value)
Transform to RDBMS native value
- Parameters:
- value
- Returns:
- transformed value TODO - not sure if this is too much power for js