PATH  WebObjects 4.0 Documentation > SybaseEOAdaptor Reference



SybaseSQLExpression

Inherits From:
EOSQLExpression : NSObject

Declared in: SybaseEOAdaptor/SybaseSQLExpression.h


Class Description

SybaseSQLExpression defines how to build SQL statements for SybaseChannels.


Method Types

Generating SQL for attributes and values
+ formatValue:forAttribute:
Getting the server type ID
+ serverTypeIdForName:
Getting the lock clause
- lockClause

Class Methods


formatValue:forAttribute:

+ (NSString *)formatValue: (id)value forAttribute: (EOAttribute *)attribute

Overrides the EOSQLExpression method formatValue:forAttribute: to return a formatted string representation of value for attribute that is suitable for use in a SQL statement.


serverTypeIdForName:

+ (int)serverTypeIdForName: (NSString *)typeName

Returns the Sybase type code (such as 47, 56, or 55) for typeName (such as "char", "int", or "decimal").


Instance Methods


lockClause

- (NSString *)lockClause

Overrides the EOSQLExpression method lockClause to return the SQL string used in a SELECT statement to lock selected rows, which is @"HOLDLOCK".





Copyright © 1998, Apple Computer, Inc. All rights reserved.