If you are using the Blueprints, you can try Frames from 
http://www.tinkerpop.com/.  It's kind of an odd API in that it uses 
annotated interfaces and an abstract inner class that implements the 
interface to handle @JavaHandler annotations (which I think is what you 
would want).  Here's an example interface with two @Property which is 
automatically wraps a property and @JavaHandler which allows you to provide 
an implementation:

public interface Car {
    @Property("color")
    public String getColor();

    @JavaHandler
    public Color getColorAsObject();
    
    public abstract Impl implements Car, JavaHandlerContext<Vertex> {
        @Override
        public Color getColorAsObject() {
            return new Color(getColor());
        }
    }
}

There's more to it of course but it does allow you to provide your own 
setter/getter (or any type of method) implementations and only expose 
certain properties.

On Tuesday, January 21, 2014 1:37:51 PM UTC-5, TedS wrote:
>
> Sorry. Imeant Object level .i.e. JavaBean. Doing so would follow the 
> encapulation of getter/setter advantange
>
> On Tuesday, January 21, 2014 1:22:35 PM UTC-5, Lvc@ wrote:
>>
>> Hi,
>> what API? Document, Graph or Object?
>>
>> Lvc@
>>
>>
>> On 21 January 2014 19:08, TedS <[email protected]> wrote:
>>
>>> Hi:
>>>
>>> Is it possible to config (or through annonation) OrientDB to force only 
>>> using getter/setter for property values,
>>> instead of directly using the field values? 
>>>
>>> Thanks
>>>
>>> -- 
>>>  
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "OrientDB" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to