You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by pavel <pa...@icecentric.com> on 2003/02/19 22:19:33 UTC

getByPosition()

Hello,

Please could you tell me what is the best way to implement a method 
public Object getByPosition(int pos)?

Thank you in advance.

Pavel Kusch



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: getByPosition()

Posted by pavel <pa...@icecentric.com>.
Thank you for reply Fabio. This question is related to Torque. I am 
trying to get a a field from the object by position as specified in a 
database schema. The method is in a class BaseObject and needs to be 
implemented. The way I have implemented this method is that I used 
switch and am returning the field based on the position. There is 
definitely a better way to do it. Thank you.

pavel kusch

Fabio Daprile wrote:

> Hello,
>
> i think this is a little bit generic question.
> Can you specify a little bit more..
>
> greetings
>
> Fabio
>
>
> pavel wrote:
>
>> Hello,
>>
>> Please could you tell me what is the best way to implement a method 
>> public Object getByPosition(int pos)?
>>
>> Thank you in advance.
>>
>> Pavel Kusch
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: getByPosition()

Posted by Fabio Daprile <fa...@wuerth-phoenix.com>.
Hello,

i think this is a little bit generic question.
Can you specify a little bit more..

greetings

Fabio


pavel wrote:

> Hello,
>
> Please could you tell me what is the best way to implement a method 
> public Object getByPosition(int pos)?
>
> Thank you in advance.
>
> Pavel Kusch
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>

-- 
************************************
Würth Phoenix S.r.l.
Fabio Daprile

Via Kravogl 4
I-39100 Bolzano
Phone: +39 0471  564111 (direct 564066)
Fax: +39 0471  564122
mailto:fabio.daprile@wuerth-phoenix.com
http:// www.wuerth-phoenix.com
*************************************




---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: getByPosition()

Posted by pavel <pa...@icecentric.com>.
Please, disregard this email, it belongs to Torque, and anyway it is not 
detailed enough.

Thank you.

pavel wrote:

> Hello,
>
> Please could you tell me what is the best way to implement a method 
> public Object getByPosition(int pos)?
>
> Thank you in advance.
>
> Pavel Kusch
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org