Class nnjl.licurgo.Type
Defined in: nnjl.licurgo.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
nnjl.licurgo.Type(name, datasource)
Creates a new nnjl.licurgo.Type
|
| Field Attributes | Field Name and Description |
|---|---|
|
The datasource that manager this Type
|
|
|
The name of the type, usually equals as the table name
|
|
|
Primary key name, or in other words, the name of the property that is the PK
|
|
|
All the properties / fields of the type in a hashmap
|
|
|
All the properties / fields of the type in a hashmap
|
| Method Attributes | Method Name and Description |
|---|---|
|
addProperties(properties)
Add properties/columns to the type.
|
|
|
getName()
|
|
Class Detail
nnjl.licurgo.Type(name, datasource)
Creates a new nnjl.licurgo.Type
- Parameters:
- {string} name
- {Datasource} datasource
Field Detail
{Datasource}
datasource
The datasource that manager this Type
{string}
name
The name of the type, usually equals as the table name
{String}
primaryKey
Primary key name, or in other words, the name of the property that is the PK
{nnjl.licurgo.Property[Map]}
properties
All the properties / fields of the type in a hashmap
{nnjl.licurgo.Property[]}
propertiesAsCollection
All the properties / fields of the type in a hashmap
Method Detail
addProperties(properties)
Add properties/columns to the type. Properties could be an array of Property objects or an array of javascript
object with all the necesary data.
propertydata = [
{
name: "propertyname",
type: "string",
size: 255, //is optional
nullable: true //is optional default is true
}
];
- Parameters:
- properties
{String}
getName()
- Returns:
- {String} The name of the Type
{String}
getPrimaryKey()
- Returns:
- {String} The name of the PrimatyKey Property