Java Code Examples for com.orientechnologies.orient.core.metadata.schema.OType#LINKLIST

The following examples show how to use com.orientechnologies.orient.core.metadata.schema.OType#LINKLIST . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InitTestModule.java    From Orienteer with Apache License 2.0 5 votes vote down vote up
/**
 * Employee
 * name - String
 * id - Integer
 * roles - LinkedList
 * workPlace - Link (inverse with WorkPlace.employees)
 *
 * WorkPlace
 * name - String
 * id - Integer
 * employees - LinkList (inverse with Employee.workPlace)
 *
 * EmployeeRole
 * name - String
 * id - Integer
 * privilege - EmbeddedMap
 */
@Provides
@Singleton
public List<OArchitectOClass> provideTestClasses() {
    OArchitectOClass employee = new OArchitectOClass("Employee");
    OArchitectOClass workPlace = new OArchitectOClass("WorkPlace");

    OArchitectOProperty workPlaceProp = new OArchitectOProperty("workPlace", OType.LINK);
    OArchitectOProperty employees = new OArchitectOProperty("employees", OType.LINKLIST);

    workPlaceProp.setLinkedClass("WorkPlace")
            .setInversePropertyEnable(true)
            .setInverseProperty(employees);

    employees.setLinkedClass("Employee")
            .setInversePropertyEnable(true)
            .setInverseProperty(workPlaceProp);

    employee.setProperties(asList(
            new OArchitectOProperty("name", OType.STRING).setOrder(0),
            new OArchitectOProperty("id", OType.INTEGER).setOrder(10),
            workPlaceProp.setOrder(20),
            new OArchitectOProperty("testLink", OType.LINK).setOrder(30).setLinkedClass("WorkPlace")
    ));

    workPlace.setProperties(asList(
            new OArchitectOProperty("name", OType.STRING).setOrder(0),
            new OArchitectOProperty("id", OType.INTEGER).setOrder(10),
            employees.setOrder(20)
    ));

    return Arrays.asList(employee, workPlace);
}
 
Example 2
Source File: IONotification.java    From Orienteer with Apache License 2.0 4 votes vote down vote up
@DAOField(linkedClass = IONotificationStatusHistory.CLASS_NAME, type = OType.LINKLIST, inverse = "notification")
List<ODocument> getStatusHistories();
 
Example 3
Source File: SuggestVisualizer.java    From Orienteer with Apache License 2.0 4 votes vote down vote up
public SuggestVisualizer() {
    super(NAME, false, OType.LINK, OType.LINKLIST, OType.LINKSET);
}
 
Example 4
Source File: LinksAsEmbeddedVisualizer.java    From Orienteer with Apache License 2.0 4 votes vote down vote up
public LinksAsEmbeddedVisualizer() {
	super(NAME, false, OType.LINK, OType.LINKLIST, OType.LINKBAG, OType.LINKSET, OType.LINKMAP);
}
 
Example 5
Source File: ListboxVisualizer.java    From Orienteer with Apache License 2.0 4 votes vote down vote up
public ListboxVisualizer()
{
	super(NAME, false, OType.LINK, OType.LINKLIST, OType.LINKSET, OType.LINKBAG);
}
 
Example 6
Source File: IDAOAllTypesTestClass.java    From Orienteer with Apache License 2.0 4 votes vote down vote up
@DAOField(linkedClass = "IDAODummyClass", type = OType.LINKLIST)
public List<ODocument> getDocs();
 
Example 7
Source File: IDAOAllTypesTestClass.java    From Orienteer with Apache License 2.0 4 votes vote down vote up
@DAOField(linkedClass = "IDAODummyClass", type = OType.LINKLIST)
public void setDocs(List<ODocument> val);