Just what I was looking for :)
thnx
On Saturday, January 25, 2014 8:37:08 PM UTC, Lvc@ wrote:
>
> Hi Stefan,
> you could call this (extracted from OrientVertex class):
>
> /**
> * Creates a temporary vertex. The vertex is not saved and the
> transaction is not started.
> *
> * @param iClassName
> * Vertex's class name
> * @param prop
> * Varargs of properties to set
> * @return
> */
> public OrientVertex addTemporaryVertex(final String iClassName, final
> Object... prop)
>
> Once finished you should call .save(). Or you could use this method:
>
> public OrientVertex addVertex(final Object id, final Object... prop) {
>
> where prop can be:
> - a hashmap with properties as key/values
> - a even numbers of parameters as key/values
>
> This method creates the vertex with all these params, then save it.
>
>
> Lvc@
>
>
>
> On 25 January 2014 19:40, <[email protected] <javascript:>> wrote:
>
>> Hi,
>>
>> What is the best way to create a OrientVertex instance without it it
>> being saved until later? (Access to OrientVertex() is protected.)
>>
>> If orientGraph.addVertex(...) is called then the vertex is saved but I
>> need to add *other properties to it before saving (to avoid multiple save).
>>
>> * I have optional properties that may be null and null properties are not
>> allowed in the constructor.
>>
>> Best regards,
>> -Stefán
>>
>> --
>>
>> ---
>> 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] <javascript:>.
>> 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.