Skip to content
On this page

Features

A. Integrate

  • [x] Support the rapid integration of nebula graph and springboot through simple configuration

B. Single Table (vertex, edge) Operation, No Need to Write nGQL | cypher

See【By Basic DAO

APIInstructions
insert(T entity)Insert vertex, null value override
insertSelective(T entity)Insert vertex, write only non empty properties.
selectById(ID id)Get vertex by primary key
selectBySelective(T entity)Query by non empty properties
insertEdge(S startNode, R edge, E endNode)Establish the relationship between two nodes
selectPage(Page<T> page)Paging query
existsEdge(ID startId, Class edgeType, ID endId)Make sure whether there is a certain relationship between the two vertexes
listStartNodes(Class edgeType, ID endId)Find all upstream vertexes in a certain relationship through a specific vertex
startNode(Class edgeType, ID endId)Find the unique upstream vertex of a specific relationship through a specific vertex

C. Use XML to Centrally Manage nGQL | cypher

See【By Custom nGQL

Scan the specified resource package, obtain the nGQL | cypher template, and operate on the basis of the template.

a. Parameter substitution

  • [x] replace parameters with placeholder nGQL | cypher and execute to the database;
    • Write query script template and match parameter control to realize dynamic query
    • Realize batch operation through parameter loop

b. Process the ResultSet through the method signature information of the Dao interface to form the type required by the business

  • [x] Types of Collection

    • Collection<Types of Basic>
    • Collection<Types of Object> The object type refers to the following object support:
  • [x] Types of Basic

    • String
    • Boolean
    • Number (Integer, Long, Float, Double, Byte, Short). Only wrapper classes are supported for the time being
  • [x] Types of Object

    • Object

    • Multiple column return values are converted to map

    • Multiple column return values are converted to POJO

    • Support vertex type conversion to POJO

    • Support edge type conversion to POJO

  • [x] ResultSet If you do not need to use the result processing provided by the framework, you can directly declare the return value ResultSet on the interface and process it yourself

D. Interface of Primary key generation

  • [x] Provide the embedding point of the primary key generator, and developers can customize the primary key generator.