Examples of ODatabaseRecordTx


Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecordTx

      role.save();
          return role;
    }
   
    public static ORole createRole(String name,ORole.ALLOW_MODES mode,Map rules){
      ODatabaseRecordTx db = DbHelper.getConnection();
      final ORole role =  db.getMetadata().getSecurity().createRole(name,mode);
      role.getDocument().field("rules",rules);
      role.save();
          return role;
    }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecordTx

    public static String getFriendRoleName(OUser user){
      return getFriendRoleName(user.getName());
    }
   
    public static String getFriendRoleName(){
      ODatabaseRecordTx db = DbHelper.getConnection();
      return getFriendRoleName(db.getUser());
    }
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseRecordTx

   *
   * @param iURL
   *          of the database
   */
  public ODatabaseDocumentTx(final String iURL) {
    super(new ODatabaseRecordTx(iURL, ODocument.RECORD_TYPE));
    underlying.setSerializer(defaultSerializer);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.