PATH  WebObjects 4.0 Documentation > InformixEOAdaptor Reference

[TOC]  [Prev]  [Next]  [Show Frames]  [Hide Frames]

InformixSQLExpression

Inherits From:
EOSQLExpression : NSObject

Inherits From:
com.apple.yellow.informixeoadaptor


Class Description

InformixSQLExpression defines how to build SQL statements for InformixChannels.


Bind Variables

The InformixAdaptor uses bind variables. A bind variable is a placeholder used in an SQL statement that is replaced with an actual value after the database server determines an execution plan. You use the following methods to operate on bind variables:



formatValueForAttribute

public static java.lang.String formatValueForAttribute(java.lang.Object value, com.apple.yellow.eoaccess.EOAttribute attribute)

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


serverTypeIdForName

public static int serverTypeIdForName(java.lang.String typeName)

Returns the Informix type code (such as InfDecimal, InfDate, or InfCHAR) for typeName (such as "DECIMAL", "DATE", or "CHAR").


Instance Methods


bindVariableDictionaryForAttribute

public com.apple.yellow.foundation.NSMutableDictionary bindVariableDictionaryForAttribute(com.apple.yellow.eoaccess.EOAttribute attribute,
java.lang.Object value)

Overrides the EOSQLExpression method bindVariableDictionaryForAttribute to return the receiver's bind variable dictionaries. For more information on bind variables, see the discussion in the class description.

See also: mustUseBindVariableForAttribute, shouldUseBindVariableForAttribute


mustUseBindVariableForAttribute

public boolean mustUseBindVariableForAttribute(com.apple.yellow.eoaccess.EOAttribute attribute)

Overrides the EOSQLExpression method mustUseBindVariableForAttribute to return YES if the receiver must use bind variables for attribute, NO otherwise. A returned value of YES indicates that the underlying RDBMS requires that bind variables be used for attributes with attribute's external type.

See also: bindVariableDictionaryForAttribute, shouldUseBindVariableForAttribute


shouldUseBindVariableForAttribute

public boolean shouldUseBindVariableForAttribute(com.apple.yellow.eoaccess.EOAttribute attribute)

Overrides the EOSQLExpression method shouldUseBindVariableForAttribute to return YES if the receiver can provide a bind variable dictionary for attribute, NO otherwise. A returned value of YES indicates that the receiver should use bind variables for attributes with attribute's external type.

See also: bindVariableDictionaryForAttribute, mustUseBindVariableForAttribute



[TOC] [Prev] [Next]

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