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 *)getVariableNameDiscussion
Get variable name.
Declared In
SICDatabaseMappingDescriptor.h
– setVariableName:
Set variable name as per defined in DatabaseMapping.core.xml file.
- (void)setVariableName:(NSString *const)variablenameParameters
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 *)getColumnNameReturn 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)columnnameParameters
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 *)getTypeReturn 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)typeParameters
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 *)getGetterMethodNameReturn 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)getMethodNameParameters
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 *)getSetterMethodNameReturn 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)setMethodNameParameters
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 *)getDefaultValueReturn 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)defaultValueParameters
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 *)getCheckReturn 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)checkParameters
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)isPrimaryKeyReturn 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)primaryKeyParameters
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)isUniqueReturn 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)isUniqueParameters
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)isNotNullReturn 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)isNotNullParameters
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 *)getPropertiesReturn 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 *)nameParameters
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 *)nameParameters
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 *)valueParameters
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 *)nameParameters
name |
Name of the property |
|---|
Discussion
Remove property from the descriptor
Declared In
SICIDescriptor.h