Added static method in OJSONWriter to convert a list of records in JSON.
Added testcase.

git-svn-id: http://orient.googlecode.com/svn/trunk@5931 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fixed bug reported by Michael Hieß about multiple database with the same name but different paths. Added also a new test case.

git-svn-id: http://orient.googlecode.com/svn/trunk@5932 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fixed bug reported by Michael Hieß about multiple database with the same name but different paths. Added also a new test case.

git-svn-id: http://orient.googlecode.com/svn/trunk@5935 3625ad7b-9c83-922f-a72b-73d79161f2ea
Refactored SQL commands with a shorter way to parse them. Why I haven't thought it before? :-(

git-svn-id: http://orient.googlecode.com/svn/trunk@5937 3625ad7b-9c83-922f-a72b-73d79161f2ea
I know the 1.1.0 is supposed to be the "distributed" release, but I couldn't avoid to create these 2 new SQL commands to simplify working with graphs:
CREATE VERTEX: http://code.google.com/p/orient/wiki/SQLCreateVertex 
CREATE EDGE: http://code.google.com/p/orient/wiki/SQLCreateEdge 
These 2 new commands avoid you to go crazy using multiple SQL INSERT+UPDATE. Below the syntax and some examples.

CREATE VERTEX:

CREATE VERTEX [<class-name>] [SET <field> = <expression>[,]*]

Examples:
> create vertex
> create class V1 extends V

> create vertex V1
> create vertex set brand = 'fiat'
> create vertex V1 set brand = 'fiat', name = 'wow'
CREATE EDGE:

CREATE EDGE [<class-name>] FROM <FROM_RID> TO <TO_RID> [SET <field> = <expression>[,]*]

Examples:
> create edge from #10:3 to #11:4
> create class E1 extends E

> create edge E1 from #10:3 to #11:4
> create edge from #10:3 to #11:4 set brand = 'fiat'
> create edge E1 from #10:3 to #11:4 set brand = 'fiat', name = 'wow'


git-svn-id: http://orient.googlecode.com/svn/trunk@5944 3625ad7b-9c83-922f-a72b-73d79161f2ea
Implemented new "create vertex" and "create edge" commands in console too.

git-svn-id: http://orient.googlecode.com/svn/trunk@5945 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fixed problem on fetching with null values in arrays

git-svn-id: http://orient.googlecode.com/svn/trunk@5946 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fixed problem with server's database path

git-svn-id: http://orient.googlecode.com/svn/trunk@5947 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fixed reuse of Data Segment as bug reported by Ford in ML

git-svn-id: http://orient.googlecode.com/svn/trunk@5949 3625ad7b-9c83-922f-a72b-73d79161f2ea
Committed patch by Artyom

git-svn-id: http://orient.googlecode.com/svn/trunk@5950 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fixed problem with server's database path

git-svn-id: http://orient.googlecode.com/svn/trunk@5951 3625ad7b-9c83-922f-a72b-73d79161f2ea
Patch by Ford on reuse of data-segments + empty position management

git-svn-id: http://orient.googlecode.com/svn/trunk@5952 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fixed issue #916. Refactored the entire way to parse SQL commands. Only few converted but now it's much simpler, readable and efficient to create a new SQL command.

git-svn-id: http://orient.googlecode.com/svn/trunk@5953 3625ad7b-9c83-922f-a72b-73d79161f2ea
Changed db cfg storage file from mmap to classic

git-svn-id: http://orient.googlecode.com/svn/trunk@5954 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fixed many problems on clustering and alignment. Now everything seems to work even in case of crashes

git-svn-id: http://orient.googlecode.com/svn/trunk@5955 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fix by Ford on create class command to get multiple cluster ids

git-svn-id: http://orient.googlecode.com/svn/trunk@5956 3625ad7b-9c83-922f-a72b-73d79161f2ea
I reverted last changes to leave things like before: the database MUST be unique in a server. In case of databases with the same name in multiple servers, the user can use the $ as separator instead of /.

OrientDB will convert $ to / at file system level, but it will register 2 different database. Example:

db1 = test/customers
db2 = production/customers

The database must be opened as:

new ODatabaseDocumentTx("remote:localhost/test$customers");
new ODatabaseDocumentTx("remote:localhost/production$customers");

git-svn-id: http://orient.googlecode.com/svn/trunk@5957 3625ad7b-9c83-922f-a72b-73d79161f2ea
Restored missed MVCC check on update and delete

git-svn-id: http://orient.googlecode.com/svn/trunk@5958 3625ad7b-9c83-922f-a72b-73d79161f2ea
Fix for bug with MVCC enabled

git-svn-id: http://orient.googlecode.com/svn/trunk@5959 3625ad7b-9c83-922f-a72b-73d79161f2ea
Improved management of cluster-wide alignment during node startup

git-svn-id: http://orient.googlecode.com/svn/trunk@5962 3625ad7b-9c83-922f-a72b-73d79161f2ea