Examples of StandardProperty


Examples of com.thinkaurelius.titan.graphdb.relations.StandardProperty

                if (key.isUnique(Direction.IN)) {
                    Preconditions.checkArgument(Iterables.isEmpty(getVertices(key, value)),
                            "The given value [%s] is already used as a property and the property key [%s] is defined as graph-unique", value, key.getName());
                }
            }
            StandardProperty prop = new StandardProperty(temporaryID.decrementAndGet(), key, (InternalVertex) vertex, value, ElementLifeCycle.New);
            if (config.hasAssignIDsImmediately()) graph.assignID(prop);
            connectRelation(prop);
            return prop;
        } finally {
            uniqueLock.unlock();
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    boolean getAll = shouldGetAllProperties( entity );
    final int span = entityMetamodel.getPropertySpan();
    final Object[] result = new Object[span];

    for ( int j = 0; j < span; j++ ) {
      StandardProperty property = entityMetamodel.getProperties()[j];
      if ( getAll || !property.isLazy() ) {
        result[j] = getters[j].get( entity );
      }
      else {
        result[j] = LazyPropertyInitializer.UNFETCHED_PROPERTY;
      }
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    this.propertyNullability = new boolean[ propertySpan ];
    this.cascade = new CascadeStyle[ propertySpan ];
    this.joinedFetch = new FetchMode[ propertySpan ];

    for ( int i = 0; i < propertySpan; i++ ) {
      StandardProperty prop = metamodel.getProperty( i );
      this.propertyNames[i] = prop.getName();
      this.propertyTypes[i] = prop.getType();
      this.propertyNullability[i] = prop.isNullable();
      this.cascade[i] = prop.getCascadeStyle();
      this.joinedFetch[i] = prop.getFetchMode();
    }

    this.tuplizerMapping = metamodel.getTuplizerMapping();
  }
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    this.propertyNullability = new boolean[ propertySpan ];
    this.cascade = new CascadeStyle[ propertySpan ];
    this.joinedFetch = new FetchMode[ propertySpan ];

    for ( int i = 0; i < propertySpan; i++ ) {
      StandardProperty prop = metamodel.getProperty( i );
      this.propertyNames[i] = prop.getName();
      this.propertyTypes[i] = prop.getType();
      this.propertyNullability[i] = prop.isNullable();
      this.cascade[i] = prop.getCascadeStyle();
      this.joinedFetch[i] = prop.getFetchMode();
    }

    this.entityMode = metamodel.getEntityMode();
    this.componentTuplizer = metamodel.getComponentTuplizer();
  }
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    this.propertyNullability = new boolean[ propertySpan ];
    this.cascade = new CascadeStyle[ propertySpan ];
    this.joinedFetch = new FetchMode[ propertySpan ];

    for ( int i = 0; i < propertySpan; i++ ) {
      StandardProperty prop = metamodel.getProperty( i );
      this.propertyNames[i] = prop.getName();
      this.propertyTypes[i] = prop.getType();
      this.propertyNullability[i] = prop.isNullable();
      this.cascade[i] = prop.getCascadeStyle();
      this.joinedFetch[i] = prop.getFetchMode();
    }

    this.entityMode = metamodel.getEntityMode();
    this.componentTuplizer = metamodel.getComponentTuplizer();
  }
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    boolean getAll = shouldGetAllProperties( entity );
    final int span = entityMetamodel.getPropertySpan();
    final Object[] result = new Object[span];

    for ( int j = 0; j < span; j++ ) {
      StandardProperty property = entityMetamodel.getProperties()[j];
      if ( getAll || !property.isLazy() ) {
        result[j] = getters[j].get( entity );
      }
      else {
        result[j] = LazyPropertyInitializer.UNFETCHED_PROPERTY;
      }
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    boolean getAll = shouldGetAllProperties( entity );
    final int span = entityMetamodel.getPropertySpan();
    final Object[] result = new Object[span];

    for ( int j = 0; j < span; j++ ) {
      StandardProperty property = entityMetamodel.getProperties()[j];
      if ( getAll || !property.isLazy() ) {
        result[j] = getters[j].get( entity );
      }
      else {
        result[j] = LazyPropertyInitializer.UNFETCHED_PROPERTY;
      }
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    boolean getAll = shouldGetAllProperties( entity );
    final int span = entityMetamodel.getPropertySpan();
    final Object[] result = new Object[span];

    for ( int j = 0; j < span; j++ ) {
      StandardProperty property = entityMetamodel.getProperties()[j];
      if ( getAll || !property.isLazy() ) {
        result[j] = getters[j].get( entity );
      }
      else {
        result[j] = LazyPropertyInitializer.UNFETCHED_PROPERTY;
      }
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    this.propertyNullability = new boolean[ propertySpan ];
    this.cascade = new CascadeStyle[ propertySpan ];
    this.joinedFetch = new FetchMode[ propertySpan ];

    for ( int i = 0; i < propertySpan; i++ ) {
      StandardProperty prop = metamodel.getProperty( i );
      this.propertyNames[i] = prop.getName();
      this.propertyTypes[i] = prop.getType();
      this.propertyNullability[i] = prop.isNullable();
      this.cascade[i] = prop.getCascadeStyle();
      this.joinedFetch[i] = prop.getFetchMode();
    }

    this.tuplizerMapping = metamodel.getTuplizerMapping();
  }
View Full Code Here

Examples of org.hibernate.tuple.StandardProperty

    this.propertyNullability = new boolean[ propertySpan ];
    this.cascade = new CascadeStyle[ propertySpan ];
    this.joinedFetch = new FetchMode[ propertySpan ];

    for ( int i = 0; i < propertySpan; i++ ) {
      StandardProperty prop = metamodel.getProperty( i );
      this.propertyNames[i] = prop.getName();
      this.propertyTypes[i] = prop.getType();
      this.propertyNullability[i] = prop.isNullable();
      this.cascade[i] = prop.getCascadeStyle();
      this.joinedFetch[i] = prop.getFetchMode();
    }

    this.tuplizerMapping = metamodel.getTuplizerMapping();
  }
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.