Package com.orientechnologies.orient.core.exception

Examples of com.orientechnologies.orient.core.exception.OSchemaException


      else if (o instanceof Field)
        return ((Field) o).getType();
      else
        return ((Method) o).getReturnType();
    } catch (Exception e) {
      throw new OSchemaException("Can't get the value of the property: " + iProperty, e);
    }
  }
View Full Code Here


        return ((Method) o).invoke(iPojo);
      else if (o instanceof Field)
        return ((Field) o).get(iPojo);
      return null;
    } catch (Exception e) {
      throw new OSchemaException("Can't get the value of the property: " + iProperty, e);
    }
  }
View Full Code Here

        ((Field) o).set(iPojo, OType.convert(iValue, ((Field) o).getType()));
      }

    } catch (Exception e) {

      throw new OSchemaException("Can't set the value '" + iValue + "' to the property '" + iProperty + "' for the pojo: " + iPojo,
          e);
    }
  }
View Full Code Here

            cls.setDefaultClusterId(classDefClusterId);
        } else
          cls = database.getMetadata().getSchema().createClass(className, classDefClusterId);

        if (classId != cls.getId())
          throw new OSchemaException("Imported class '" + className + "' has id=" + cls.getId() + " different from the original: "
              + classId);

        if (classClusterIds != null) {
          // REMOVE BRACES
          classClusterIds = classClusterIds.substring(1, classClusterIds.length() - 1);
View Full Code Here

    if (prop == null) {
      // CREATE IT
      prop = iClass.createProperty(propName, type);
    } else {
      if (prop.getId() != id)
        throw new OSchemaException("Imported property '" + iClass.getName() + "." + propName
            + "' has an id different from the original: " + id);
    }

    if (min != null)
      prop.setMin(min);
View Full Code Here

      else
        ((ODatabaseRecord) database.getUnderlying()).save(record, clusterName);
    }

    if (!record.getIdentity().toString().equals(rid))
      throw new OSchemaException("Imported record '" + record.getIdentity() + "' has rid different from the original: " + rid);

    jsonReader.readNext(OJSONReader.NEXT_IN_ARRAY);

    return record.getIdentity();
  }
View Full Code Here

      else if (o instanceof Field)
        return ((Field) o).getType();
      else
        return ((Method) o).getReturnType();
    } catch (Exception e) {
      throw new OSchemaException("Can't get the value of the property: " + iProperty, e);
    }
  }
View Full Code Here

        return ((Method) o).invoke(iPojo);
      else if (o instanceof Field)
        return ((Field) o).get(iPojo);
      return null;
    } catch (Exception e) {
      throw new OSchemaException("Can't get the value of the property: " + iProperty, e);
    }
  }
View Full Code Here

        ((Field) o).set(iPojo, OType.convert(iValue, ((Field) o).getType()));
      }

    } catch (Exception e) {

      throw new OSchemaException("Can't set the value '" + iValue + "' to the property '" + iProperty + "' for the pojo: " + iPojo,
          e);
    }
  }
View Full Code Here

            cls.setDefaultClusterId(classDefClusterId);
        } else
          cls = (OClassImpl) database.getMetadata().getSchema().createClass(className, classDefClusterId);

        if (classId != cls.getId())
          throw new OSchemaException("Imported class '" + className + "' has id=" + cls.getId() + " different from the original: "
              + classId);

        if (classClusterIds != null) {
          // REMOVE BRACES
          classClusterIds = classClusterIds.substring(1, classClusterIds.length() - 1);
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.exception.OSchemaException

Copyright © 2018 www.massapicom. 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.