SICAttribute Class Reference

Inherits from NSObject
Conforms to SICIDescriptor
Declared in SICDatabaseMappingDescriptor.h
SICDatabaseMappingDescriptor.m
SICEntityDescriptor.h
SICEntityDescriptor.m

Overview

Exposes methods to GET and SET Column information as per define in DatabaseMappingDescriptor.si.xml file by application.

Example:

<database-mapping>

    <table table_name="LIQUOR" class_name="siminov.core.sample.model.Liquor">

        <column variable_name="liquorType" column_name="LIQUOR_TYPE">
            <property name="type">TEXT</property>
            <property name="primary_key">true</property>
            <property name="not_null">true</property>
            <property name="unique">true</property>
        </column>

</database-mapping>

Other Methods

– getVariableName

Get variable name.

- (NSString *)getVariableName

Discussion

Get variable name.

Declared In

SICDatabaseMappingDescriptor.h

– setVariableName:

Set variable name as per defined in DatabaseMapping.core.xml file.

- (void)setVariableName:(NSString *const)variablename

Parameters

variablename

Name of variable.

Discussion

Set variable name as per defined in DatabaseMapping.core.xml file.

Declared In

SICDatabaseMappingDescriptor.h

– getColumnName

Get column name.

- (NSString *)getColumnName

Return Value

Name Of Column.

Discussion

Get column name.

Declared In

SICDatabaseMappingDescriptor.h

– setColumnName:

Set column name as per defined in DatabaseMapping.core.xml file.

- (void)setColumnName:(NSString *const)columnname

Parameters

columnname

Name of column name.

Discussion

Set column name as per defined in DatabaseMapping.core.xml file.

Declared In

SICDatabaseMappingDescriptor.h

– getType

Get type of column.

- (NSString *)getType

Return Value

Type of column.

Discussion

Get type of column.

Declared In

SICDatabaseMappingDescriptor.h

– setType:

Set type of column as per defined in DatabaseMapping.core.xml file.

- (void)setType:(NSString *const)type

Parameters

type

Type of column.

Discussion

Set type of column as per defined in DatabaseMapping.core.xml file.

Declared In

SICDatabaseMappingDescriptor.h

– getGetterMethodName

Get POJO class column getter method name.

- (NSString *)getGetterMethodName

Return Value

POJO class column getter method name.

Discussion

Get POJO class column getter method name.

Declared In

SICDatabaseMappingDescriptor.h

– setGetterMethodName:

Set POJO class column getter method name.

- (void)setGetterMethodName:(NSString *const)getMethodName

Parameters

getMethodName

POJO class coumn getter method name.

Discussion

Set POJO class column getter method name.

Declared In

SICDatabaseMappingDescriptor.h

– getSetterMethodName

Get POJO class column setter method name.

- (NSString *)getSetterMethodName

Return Value

POJO class column setter method name.

Discussion

Get POJO class column setter method name.

Declared In

SICDatabaseMappingDescriptor.h

– setSetterMethodName:

Set POJO class column setter method name.

- (void)setSetterMethodName:(NSString *const)setMethodName

Parameters

setMethodName

POJO class column setter method name.

Discussion

Set POJO class column setter method name.

Declared In

SICDatabaseMappingDescriptor.h

– getDefaultValue

Get default value of column.

- (NSString *)getDefaultValue

Return Value

Default value of column.

Discussion

Get default value of column.

Declared In

SICDatabaseMappingDescriptor.h

– setDefaultValue:

Set default value of column as per defined in DatabaseMapping.core.xml file.

- (void)setDefaultValue:(NSString *const)defaultValue

Parameters

defaultValue

Default value of column.

Discussion

Set default value of column as per defined in DatabaseMapping.core.xml file.

Declared In

SICDatabaseMappingDescriptor.h

– getCheck

Get check constraint of column.

- (NSString *)getCheck

Return Value

Check constraint of column.

Discussion

Get check constraint of column.

Declared In

SICDatabaseMappingDescriptor.h

– setCheck:

Set check constraint of column as per defined in DatabaseMapping.core.xml file.

- (void)setCheck:(NSString *const)check

Parameters

check

Check constraint.

Discussion

Set check constraint of column as per defined in DatabaseMapping.core.xml file.

Declared In

SICDatabaseMappingDescriptor.h

– isPrimaryKey

Check whether column is primary key.

- (BOOL)isPrimaryKey

Return Value

TRUE: If column is primary key, FALSE: If column is not primary key.

Discussion

Check whether column is primary key.

Declared In

SICDatabaseMappingDescriptor.h

– setPrimaryKey:

Set column as primary key or not.

- (void)setPrimaryKey:(BOOL const)primaryKey

Parameters

primaryKey

TRUE: If column is primary key, FALSE: If column is not primary key.

Discussion

Set column as primary key or not.

Declared In

SICDatabaseMappingDescriptor.h

– isUnique

Check whether column is unique or not.

- (BOOL)isUnique

Return Value

TRUE: If column is unique, FALSE: If column is not unique.

Discussion

Check whether column is unique or not.

Declared In

SICDatabaseMappingDescriptor.h

– setUnique:

Set whether column is unique or not.

- (void)setUnique:(BOOL const)isUnique

Parameters

isUnique

TRUE: If column is unique, FALSE: If column is not unique

Discussion

Set whether column is unique or not.

Declared In

SICDatabaseMappingDescriptor.h

– isNotNull

Check whether column value can be not or not.

- (BOOL)isNotNull

Return Value

TRUE: If column value can be null, FALSE: If column value can not be null.

Discussion

Check whether column value can be not or not.

Declared In

SICDatabaseMappingDescriptor.h

– setNotNull:

Set whether column can be null or not.

- (void)setNotNull:(BOOL const)isNotNull

Parameters

isNotNull

TRUE: If column value can be null, FALSE: If column value can not be null.

Discussion

Set whether column can be null or not.

Declared In

SICDatabaseMappingDescriptor.h

Protocol Methods

– getProperties

Get all the properties of descriptor

- (NSEnumerator *)getProperties

Return Value

All properties

Discussion

Get all the properties of descriptor

Declared In

SICIDescriptor.h

– getProperty:

Get the property value based on the property name

- (NSString *)getProperty:(NSString *)name

Parameters

name

Name of the property

Return Value

Value of the property

Discussion

Get the property value based on the property name

Declared In

SICIDescriptor.h

– containProperty:

Check whether property exists or not

- (BOOL)containProperty:(NSString *)name

Parameters

name

Name of the property

Return Value

(true/false) TRUE: If property exists | FALSE: If property does not exists.

Discussion

Check whether property exists or not

Declared In

SICIDescriptor.h

– addProperty:value:

Add property to the descriptor

- (void)addProperty:(NSString *)name value:(NSString *)value

Parameters

name

Name of the property

value

Value of the property

Discussion

Add property to the descriptor

Declared In

SICIDescriptor.h

– removeProperty:

Remove property from the descriptor

- (void)removeProperty:(NSString *)name

Parameters

name

Name of the property

Discussion

Remove property from the descriptor

Declared In

SICIDescriptor.h