WebObjects 5.4.2

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

objectIdentifier

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

name

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

javaValueClassName

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

Returns:
the Java value class name

objCValueClassName

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

Returns:
the Objective-C value class name

valueType

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

filterExpression

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()

createInternalValue

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, JNDIType.valueType()

createBasicAttribute

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

createModificationItem

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

Last updated June 2008

Copyright © 2000-2008 Apple Inc.