• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to get the type of an attribute in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get the type of an attribute in code


  • Subject: Re: how to get the type of an attribute in code
  • From: Farrukh Ijaz <email@hidden>
  • Date: Wed, 27 Oct 2010 18:39:22 +0300

Wow!!

This is called actual stuff! Superlative integration techniques. Good Luck!

Farrukh

Sent from my iPhone

On 2010-10-27, at 5:50 PM, Simon <email@hidden> wrote:

> we're implementing the google wire protocol for google visualizations.
> we're using ERRest to get the data we want to visualise, and we're
> writing a custom errest writer to output the data in the format we
> need. part of the process is to produce a DataTable that a google
> library then converts to wire data. as part of that process we need to
> know what the value type of the attributes we're using.
>
> we're just looking at pascal's suggestion which looks pretty smack on
> for what we need.
>
> simon
>
>
>
> On 27 October 2010 14:55, David Avendasora <email@hidden> wrote:
>> Hi Simon,
>>
>> My question is why do you need it? If it's not for something UI-specific, then you may be doing something in a not-so-optimal way...
>>
>> I'm not saying you _are_ doing something wrong, just that any time I think of using instanceof or similar, I stop and review my design decisions to make sure I haven't gone wrong somewhere.
>>
>> Dave
>>
>> On Oct 27, 2010, at 9:44 AM, Simon wrote:
>>
>>> brilliant - thanks to all for the input !!
>>>
>>> Simon
>>>
>>> On 27 October 2010 14:08, Farrukh Ijaz
>>> <email@hidden> wrote:
>>>> Hi Simon,
>>>> Does this make sense to you?
>>>> EOModelGroup.defaultGroup().entityNamed("EntityName")._attributeForPath("attributeName").className()
>>>> Farrukh
>>>> On 2010-10-27, at 3:57 PM, Simon wrote:
>>>>
>>>> hi all - is there an easy / quick way to figure out the type of a
>>>> particular attribute in code ?
>>>>
>>>> e.g. i want to know what type (ie. Integer, BigDecimal, String) the
>>>> column X is of entity Y
>>>>
>>>> thanks, simon
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list      (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>>
>>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list      (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>>
>>>
>>
>>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >how to get the type of an attribute in code (From: Simon <email@hidden>)
 >Re: how to get the type of an attribute in code (From: Farrukh Ijaz <email@hidden>)
 >Re: how to get the type of an attribute in code (From: Simon <email@hidden>)
 >Re: how to get the type of an attribute in code (From: David Avendasora <email@hidden>)
 >Re: how to get the type of an attribute in code (From: Simon <email@hidden>)

  • Prev by Date: Documenting REST services
  • Next by Date: Re: New instances on a new host not getting any requests
  • Previous by thread: Re: how to get the type of an attribute in code
  • Next by thread: Re: how to get the type of an attribute in code
  • Index(es):
    • Date
    • Thread