Examples of EntityInfo


Examples of com.breezejs.save.EntityInfo

      String foreignKeyName = findForeignKey(propName, meta);
        Object id = getForeignKeyValue(entityInfo, meta, foreignKeyName);

        if (id != null)
        {
            EntityInfo relatedEntityInfo = findInSaveMap(propType.getReturnedClass(), id);

            if (relatedEntityInfo == null) {
              EntityState state = entityInfo.entityState;
//              if (state == EntityState.Added || state == EntityState.Modified || (state == EntityState.Deleted
//                  && propType.getForeignKeyDirection() != ForeignKeyDirection.FOREIGN_KEY_TO_PARENT)) {
View Full Code Here

Examples of com.google.feedserver.metadata.EntityInfo


  public static List<ColumnDescription> getColumnDescriptionsFromFeedInfo(FeedInfo feedInfo)
  throws FeedServerAdapterException {
    List<ColumnDescription> columnDescriptions = new ArrayList<ColumnDescription>();
    EntityInfo entityInfo = feedInfo.getEntityInfo();
    Collection<PropertyInfo> properties = entityInfo.getProperityInfo();
    for (PropertyInfo property : properties) {
      Set<String> set = new HashSet<String>();
      if (GVizTypeConverter.isRecursiveType(
          entityInfo,
          entityInfo.getType(property.getTypeName()),
          set)) {
        throw new FeedServerAdapterException(
            FeedServerAdapterException.Reason.INVALID_INPUT,
            "recursive type " + property.getTypeName());
      }
View Full Code Here

Examples of org.hibernate.search.engine.EntityInfo

  // moves back and forth over entityInfos as directed loading
  // values as necessary.
  private EntityInfo loadCache(int windowStart) {
    int windowStop;

    EntityInfo info = entityInfos[windowStart - first];
    if ( info != null ) {
      //data has already been loaded
      return info;
    }
View Full Code Here

Examples of org.hibernate.search.engine.EntityInfo

     * or reload them and update the cache entry.
     * @param x absolute position in fulltext result.
     * @return the managed objects
     */
    private Object[] getManagedResult(int x) {
      EntityInfo entityInfo = getEntityInfo( x );
      Object[] objects = entity==null ? null : entity.get();
      if ( objects!=null && areAllEntitiesManaged( objects, entityInfo ) ) {
        return objects;
      }
      else {
View Full Code Here

Examples of org.hibernate.search.engine.EntityInfo

     * Extract an entityInfo, either from cache or from the index.
     * @param x the position in the index.
     * @return
     */
    private EntityInfo getEntityInfo(int x) {
      EntityInfo entityInfo = einfo==null ? null : einfo.get();
      if ( entityInfo==null ) {
        try {
          entityInfo = documentExtractor.extract( x );
        }
        catch (IOException e) {
View Full Code Here

Examples of org.hibernate.search.engine.EntityInfo

  // moves back and forth over entityInfos as directed loading
  // values as necessary.
  private EntityInfo loadCache(int windowStart) {
    int windowStop;

    EntityInfo info = entityInfos[windowStart - first];
    if ( info != null ) {
      //data has already been loaded
      return info;
    }
View Full Code Here

Examples of org.hibernate.search.engine.EntityInfo

    this.searchFactoryImplementor = searchFactoryImplementor;
    this.projection = projection;
  }

  private EntityInfo extract(Document document) {
    EntityInfo entityInfo = new EntityInfo();
    entityInfo.clazz = DocumentBuilder.getDocumentClass( document );
    entityInfo.id = DocumentBuilder.getDocumentId( searchFactoryImplementor, entityInfo.clazz, document );
    if ( projection != null && projection.length > 0 ) {
      entityInfo.projection = DocumentBuilder.getDocumentFields( searchFactoryImplementor, entityInfo.clazz, document, projection );
    }
View Full Code Here

Examples of org.hibernate.search.engine.EntityInfo

  }

  public EntityInfo extract(Hits hits, int index) throws IOException {
    Document doc = hits.doc( index );
    //TODO if we are lonly looking for score (unlikely), avoid accessing doc (lazy load)
    EntityInfo entityInfo = extract( doc );
    Object[] eip = entityInfo.projection;

    if ( eip != null && eip.length > 0 ) {
      for (int x = 0; x < projection.length; x++) {
        if ( ProjectionConstants.SCORE.equals( projection[x] ) ) {
View Full Code Here

Examples of org.hibernate.search.engine.EntityInfo

  // moves back and forth over entityInfos as directed loading
  // values as necessary.
  private EntityInfo loadCache(int windowStart) {
    int windowStop;

    EntityInfo info = entityInfos[windowStart - first];
    if ( info != null ) {
      //data has already been loaded
      return info;
    }
View Full Code Here

Examples of org.hibernate.search.engine.EntityInfo

     * or reload them and update the cache entry.
     * @param x absolute position in fulltext result.
     * @return the managed objects
     */
    private Object[] getManagedResult(int x) {
      EntityInfo entityInfo = getEntityInfo( x );
      Object[] objects = entity==null ? null : entity.get();
      if ( objects!=null && areAllEntitiesManaged( objects, entityInfo ) ) {
        return objects;
      }
      else {
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.