WebObjects 5.2.3

com.webobjects.jndiadaptor
Interface JNDIType


public interface JNDIType

The JNDIType class represents the external type of an EOAttribute.


Method Summary
 BasicAttribute createBasicAttribute(String id, Object internal)
          Creates an instance of BasicAttribute with the specified id and internal value.
 Object createInternalValue(Attribute attribute, String valueType)
          Creates an internal value with the specified instance of Attribute and value type.
 ModificationItem createModificationItem(String id, Object oldInternal, Object newInternal)
          Creates an instance of ModificationItem with the specified id, old external value, and new internal value.
 String filterExpression(Object internal)
          Creates a filter expression with the specified internal value.
 String javaValueClassName()
          Gets the Java value class name.
 String name()
          Gets the name.
 String objCValueClassName()
          Gets the Objective-C value class name.
 String objectIdentifier()
          Gets the object identifier.
 String valueType()
          Gets the value type.
 

Method Detail

createBasicAttribute

public BasicAttribute createBasicAttribute(String id,
                                           Object internal)
Creates an instance of BasicAttribute with the specified id and internal value.

Parameters:
id - - the column name
internal - - the value of a row
Returns:
instance of BasicAttribute
See Also:
BasicAttribute

createInternalValue

public Object createInternalValue(Attribute attribute,
                                  String valueType)
Creates an internal value with the specified instance of Attribute and value type.

Parameters:
attribute - - the instance of Attribute
valueType - - the value type
Returns:
value of a row
See Also:
Attribute, valueType()

createModificationItem

public ModificationItem createModificationItem(String id,
                                               Object oldInternal,
                                               Object newInternal)
Creates an instance of ModificationItem with the specified id, old external value, and new internal value.

Parameters:
id - - the column name
oldInternal - - the old value of a row
newInternal - - the new value of a row
Returns:
instance of ModificationItem
See Also:
ModificationItem

filterExpression

public String filterExpression(Object internal)
Creates a filter expression with the specified internal value. A filter expression is a string that represents the value of a row within an expression on the server, such as an LDAP search filter. For simple objects, the toString implementation will suffice. See RFC 2254 The String Representation of LDAP Search Filters.

Parameters:
internal - - the value of a row
Returns:
filter expression
See Also:
Object.toString()

javaValueClassName

public String javaValueClassName()
Gets the Java value class name. For example, "java.lang.String".

Returns:
the Java value class name

name

public String name()
Gets the name. The name is a human-readable string that uniquely identifies an attribute type, e.g., "Directory String". See RFC 2252 Attribute Syntax Definitions.

Returns:
the name

objCValueClassName

public String objCValueClassName()
Gets the Objective-C value class name. For example, "NSString".

Returns:
the Objective-C value class name

objectIdentifier

public String objectIdentifier()
Gets the object identifier. The object identifier is a numeric string that uniquely identifies an attribute type, e.g., "1.3.6.1.4.1.1466.115.121.1.15". See RFC 2252 Attribute Syntax Definitions.

Returns:
the object identifier

valueType

public String valueType()
Gets the value type. For example, "i" for Integer. The empty string indicates the absence of a value type.

Returns:
the value type

Last updated Thu Oct 21 15:04:16 PDT 2004.

Copyright © 2004 Apple Computer, Inc.