objective-c-sql-query-builder
Public Member Functions | Protected Attributes
ZIMSqlCreateViewStatement Class Reference

#import <ZIMSqlCreateViewStatement.h>

Inheritance diagram for ZIMSqlCreateViewStatement:
<ZIMSqlStatement> <ZIMSqlDataDefinitionCommand>

List of all members.

Public Member Functions

(id) - initWithXmlSchema:error:
(id) - init
(void) - view:
(void) - view:temporary:
(void) - sql:
(NSString *) - statement
(void) - parser:didStartElement:namespaceURI:qualifiedName:attributes: [implementation]
(void) - parser:didEndElement:namespaceURI:qualifiedName: [implementation]
(void) - parser:foundCDATA: [implementation]
(void) - parser:parseErrorOccurred: [implementation]

Protected Attributes

NSString_view
BOOL _temporary
NSString_statement
NSMutableArray * _stack
NSString_cdata
NSUInteger _counter
NSError * _error

Detailed Description

Discussion:
This class represents an SQL create view statement.
Updated:
2012-03-18
See also:
http://www.sqlite.org/lang_createview.html

Member Function Documentation

- (instancetype) init
Signature:
init
Discussion:
This method initializes the class.
Returns:
An instance of this class.
Updated:
2012-03-20
- (instancetype) initWithXmlSchema: (NSData *)  xml
error: (NSError **)  error 
Signature:
initWithXmlSchema:error:
Discussion:
This method initializes the class via an XML file following Ziminji's "XML to DDL" schema.
Parameters:
xmlThe UTF-8 encoded string of XML.
errorUsed when an error occurs while processing the XML data. May be NULL.
Returns:
An instance of this class.
Updated:
2011-10-19
See also:
http://db.apache.org/ddlutils/
http://db.apache.org/ddlutils/schema/
- (void) parser: (NSXMLParser *)  parser
didEndElement: (NSString *)  element
namespaceURI: (NSString *)  namespaceURI
qualifiedName: (NSString *)  qualifiedName 
[implementation]
- (void) parser: (NSXMLParser *)  parser
didStartElement: (NSString *)  element
namespaceURI: (NSString *)  namespaceURI
qualifiedName: (NSString *)  qualifiedName
attributes: (NSDictionary *)  attributes 
[implementation]
- (void) parser: (NSXMLParser *)  parser
foundCDATA: (NSData *)  CDATABlock 
[implementation]
- (void) parser: (NSXMLParser *)  parser
parseErrorOccurred: (NSError *)  error 
[implementation]
- (void) sql: (NSString *)  statement
Signature:
sql:
Discussion:
This method will set the SQL statement that will be used.
Parameters:
statementThe SQL statement to be masked.
Updated:
2011-07-27
- (NSString *) statement
Signature:
statement
Discussion:
This method will return the SQL statement.
Returns:
The SQL statement that was constructed.
Updated:
2011-10-19

Reimplemented from <ZIMSqlStatement>.

- (void) view: (NSString *)  view
Signature:
view:
Discussion:
This method sets the name for the view in the SQL statement.
Parameters:
viewThe view's name.
Updated:
2011-06-26
- (void) view: (NSString *)  view
temporary: (BOOL)  temporary 
Signature:
view:temporary:
Discussion:
This method sets the name for the view in the SQL statement and whether it is temporary or not.
Parameters:
viewThe view's name.
temporaryThis establishes whether the view will be temporary.
Updated:
2011-10-30

Member Data Documentation

- (NSString*) _cdata [protected]
- (NSUInteger) _counter [protected]
- (NSError*) _error [protected]
- (NSMutableArray*) _stack [protected]
- (NSString*) _statement [protected]
- (BOOL) _temporary [protected]
- (NSString*) _view [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Properties Defines