Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 30964 invoked from network); 23 Jun 2007 15:26:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jun 2007 15:26:16 -0000 Received: (qmail 80419 invoked by uid 500); 23 Jun 2007 15:26:19 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 80102 invoked by uid 500); 23 Jun 2007 15:26:18 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 80091 invoked by uid 99); 23 Jun 2007 15:26:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jun 2007 08:26:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ole.ersoy@gmail.com designates 64.233.166.179 as permitted sender) Received: from [64.233.166.179] (HELO py-out-1112.google.com) (64.233.166.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jun 2007 08:26:13 -0700 Received: by py-out-1112.google.com with SMTP id a73so238083pye for ; Sat, 23 Jun 2007 08:25:52 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=SgVv8T4Ru7Vb7qbacWwwhqQxWJD70DNUe4HyrPzvjsiUc+3uOsgED1XBj85kUniBIo4NY4C/vsZxVi/wC49ozLxNHmQHvAIDhQlrFYLLgKypscfJqEFvZIN/EYep2baXp30JEAyJc943fDo5RfcXXOs+20qo+TSpsnsI/H0ZUVU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=som5v06AR5Xs2pQy2RDmz0VROvxXU2J+SxZzGE8ZcTMP/+DYP2MDPlyZmU7vDbDmouIzX9pLfjuwU1Gzqdx0E8dWCmgDiqT/fg0umNCdvEUsYXXlnifgZkjoNySTiSi36u7V4vnBXLz9dK92xIPEXKpCXw/FidrniQJCwnlkftc= Received: by 10.35.82.16 with SMTP id j16mr4752069pyl.1182612352450; Sat, 23 Jun 2007 08:25:52 -0700 (PDT) Received: from ?192.168.1.6? ( [24.13.179.233]) by mx.google.com with ESMTP id j4sm3108952nzd.2007.06.23.08.25.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 23 Jun 2007 08:25:51 -0700 (PDT) Message-ID: <467D3ABF.6050201@gmail.com> Date: Sat, 23 Jun 2007 10:22:39 -0500 From: Ole Ersoy User-Agent: Thunderbird 2.0.0.0 (X11/20070419) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [Java to LDAP Type Mapping] Double, Long, etc. References: <467970BB.5030707@gmail.com> <46797AD5.6000502@apache.org> <4679809E.5000300@gmail.com> <4679A76E.7000005@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Alex Karasulu wrote: > Using serialization may present issues when trying to figure out how to > create indices that allow for correct sorting to evaluate ordering > assertions > like for example: > > (foo > 2.95) > > Just a thought. There's got to be existing data types out there in LDAP > that map well to Java types that are part of existing published schemas. Yeah - I was hoping to find something like like this: http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/mapping.html This has a table that maps sql types to java types. I did do quite a bit of searching for something similar for LDAP. Right now the DAS maps everything that is not a Boolean or Integer to the LDAP String syntax, and then restores correct type on a read, much like an IoC container. Even though this probably covers 90% of the use cases, from a Marketing point of view I think it sounds much better to say that ApacheDS supports decimals and queries on decimals. Might be something for the road map. Cheers, - Ole SNIP