SICIndex 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 Reference Map information as per define in DatabaseMappingDescriptor.si.xml file by application.
Example:
<index name="LIQUOR_INDEX_BASED_ON_LINK" unique="true">
<column>HISTORY</column>
</index>
Other Methods
– getName
Get index name.
- (NSString *)getNameReturn Value
Index Name.
Discussion
Get index name.
Declared In
SICDatabaseMappingDescriptor.h
– setName:
Set index name as per defined in DatabaseMapping.core.xml file.
- (void)setName:(NSString *)nameParameters
name |
Index Name. |
|---|
Discussion
Set index name as per defined in DatabaseMapping.core.xml file.
Declared In
SICDatabaseMappingDescriptor.h
– isUnique
Check whether index should be unique or not.
- (BOOL)isUniqueReturn Value
TRUE: If index is unique, FALSE: If index is not unqiue.
Discussion
Check whether index should be unique or not.
Declared In
SICDatabaseMappingDescriptor.h
– setUnique:
Set whether unqiue is unique or not.
- (void)setUnique:(BOOL const)uniqueParameters
unique |
TRUE: If index is unique, FALSE: If index is not unique. |
|---|
Discussion
Set whether unqiue is unique or not.
Declared In
SICDatabaseMappingDescriptor.h
– containsColumn:
Check whether index contain column or not.
- (BOOL)containsColumn:(NSString *const)columnParameters
column |
Name of column. |
|---|
Return Value
TRUE: If index contains column, FALSE: If index does not contain column.
Discussion
Check whether index contain column or not.
Declared In
SICDatabaseMappingDescriptor.h
– getColumns
Get all columns.
- (NSEnumerator *)getColumnsReturn Value
Iterator which contain all columns.
Discussion
Get all columns.
Declared In
SICDatabaseMappingDescriptor.h
– addColumn:
Add column to index.
- (void)addColumn:(NSString *const)columnParameters
column |
Name of column. |
|---|
Discussion
Add column to index.
Declared In
SICDatabaseMappingDescriptor.h
– removeColumn:
Remove column from index.
- (void)removeColumn:(NSString *const)columnParameters
column |
Name of column. |
|---|
Discussion
Remove column from index.
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