DASchemaCommand

Overview

The DASchemaCommand object defines an abstract and database-independed command that can be based on a stored procedure or a custom SQL statement. A DASchemaCommand can be used for getting data from the database or for applying changes for a given DASchemaDataTable.

There is no necessity to deal with the DASchemaCommand directly. You can create new and modify existing commands using the Schema Modeler application.

Location

 

appendServerScript:

Method that appends given business rules script to the DASchemaCommand

- (void) appendServerScript:(NSString *)script

Parameters:

  • script: String containing JavaScript we want to append to the DASchemaCommand

businessClassId  retain

This property is not used in DA for Xcode. It has been added for compatibility with DA for Delphi where it is used for establishing mapping between schema objects and custom business classes.

@property (retain) NSString *businessClassId

customAttributes  retain    (declared in DASchemaSqlObject)

@property (retain) NSString *customAttributes

dynamicWhere  retain    (declared in DASchemaSqlObject)

@property (retain) NSString *dynamicWhere

initWithName:    (declared in DASchemaBaseObject)

- (InstanceType) initWithName:(NSString *)aName

Parameters:

  • aName:

initWithXml:    (declared in DASchemaBaseObject)

- (InstanceType) initWithXml:(NSString *)anXml

Parameters:

  • anXml:

isPublic  assign    (declared in DASchemaSqlObject)

@property (assign) BOOL isPublic

name  retain    (declared in DASchemaBaseObject)

Represents the name of the schema object. Name is a mandatory property and an exception will be raised if its value is nil or empty. Only alpha-numeric characters are allowed in the Name value.

@property (retain) NSString *name

note  retain    (declared in DASchemaBaseObject)

Description for schema object

@property (retain) NSString *note

parameterByName:    (declared in DASchemaSqlObject)

- (DASchemaParameter *) parameterByName:(NSString *)parameterName

Parameters:

  • parameterName:

parameters  retain    (declared in DASchemaSqlObject)

@property (retain) NSMutableArray *parameters

serverBusinessRuleScript  retain

Represents server-side business rule script

@property (retain) DASchemaServerBusinessRuleScript *serverBusinessRuleScript

statementByName:    (declared in DASchemaSqlObject)

- (DASchemaStatement *) statementByName:(NSString *)statementName

Parameters:

  • statementName:

statements  retain    (declared in DASchemaSqlObject)

@property (retain) NSMutableArray *statements

 

businessClassId  retain

This property is not used in DA for Xcode. It has been added for compatibility with DA for Delphi where it is used for establishing mapping between schema objects and custom business classes.

@property (retain) NSString *businessClassId

customAttributes  retain    (declared in DASchemaSqlObject)

@property (retain) NSString *customAttributes

dynamicWhere  retain    (declared in DASchemaSqlObject)

@property (retain) NSString *dynamicWhere

isPublic  assign    (declared in DASchemaSqlObject)

@property (assign) BOOL isPublic

name  retain    (declared in DASchemaBaseObject)

Represents the name of the schema object. Name is a mandatory property and an exception will be raised if its value is nil or empty. Only alpha-numeric characters are allowed in the Name value.

@property (retain) NSString *name

note  retain    (declared in DASchemaBaseObject)

Description for schema object

@property (retain) NSString *note

parameters  retain    (declared in DASchemaSqlObject)

@property (retain) NSMutableArray *parameters

serverBusinessRuleScript  retain

Represents server-side business rule script

@property (retain) DASchemaServerBusinessRuleScript *serverBusinessRuleScript

statements  retain    (declared in DASchemaSqlObject)

@property (retain) NSMutableArray *statements

 

appendServerScript:

Method that appends given business rules script to the DASchemaCommand

- (void) appendServerScript:(NSString *)script

Parameters:

  • script: String containing JavaScript we want to append to the DASchemaCommand

initWithName:    (declared in DASchemaBaseObject)

- (InstanceType) initWithName:(NSString *)aName

Parameters:

  • aName:

initWithXml:    (declared in DASchemaBaseObject)

- (InstanceType) initWithXml:(NSString *)anXml

Parameters:

  • anXml:

parameterByName:    (declared in DASchemaSqlObject)

- (DASchemaParameter *) parameterByName:(NSString *)parameterName

Parameters:

  • parameterName:

statementByName:    (declared in DASchemaSqlObject)

- (DASchemaStatement *) statementByName:(NSString *)statementName

Parameters:

  • statementName: