org.hibernate.mapping.Join.getPropertyIterator()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(195)

本文整理了Java中org.hibernate.mapping.Join.getPropertyIterator()方法的一些代码示例,展示了Join.getPropertyIterator()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Join.getPropertyIterator()方法的具体详情如下:
包路径:org.hibernate.mapping.Join
类名称:Join
方法名:getPropertyIterator

Join.getPropertyIterator介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

public boolean isLazy() {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isLazy() ) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: hibernate/hibernate-orm

public Iterator getSubclassPropertyClosureIterator() {
  ArrayList iters = new ArrayList();
  iters.add( getPropertyClosureIterator() );
  iters.add( subclassProperties.iterator() );
  for ( int i = 0; i < subclassJoins.size(); i++ ) {
    Join join = subclassJoins.get( i );
    iters.add( join.getPropertyIterator() );
  }
  return new JoinedIterator( iters );
}

代码示例来源:origin: hibernate/hibernate-orm

/**
 * Build an iterator over the properties defined on this class.  The returned
 * iterator only accounts for "normal" properties (i.e. non-identifier
 * properties).
 * <p/>
 * Differs from {@link #getUnjoinedPropertyIterator} in that the returned iterator
 * will include properties defined as part of a join.
 * <p/>
 * Differs from {@link #getReferenceablePropertyIterator} in that the properties
 * defined in superclasses of the mapping inheritance are not included.
 *
 * @return An iterator over the "normal" properties.
 */
public Iterator getPropertyIterator() {
  ArrayList iterators = new ArrayList();
  iterators.add( properties.iterator() );
  for ( int i = 0; i < joins.size(); i++ ) {
    Join join = joins.get( i );
    iterators.add( join.getPropertyIterator() );
  }
  return new JoinedIterator( iterators );
}

代码示例来源:origin: hibernate/hibernate-orm

@SuppressWarnings({"unchecked"})
private void addJoins(
    PersistentClass pc,
    CompositeMapperBuilder currentMapper,
    ClassAuditingData auditingData,
    String entityName,
    EntityXmlMappingData xmlMappingData,
    boolean firstPass) {
  final Iterator<Join> joins = pc.getJoinIterator();
  while ( joins.hasNext() ) {
    final Join join = joins.next();
    final Element joinElement = entitiesJoins.get( entityName ).get( join );
    if ( joinElement != null ) {
      addProperties(
          joinElement,
          join.getPropertyIterator(),
          currentMapper,
          auditingData,
          entityName,
          xmlMappingData,
          firstPass
      );
    }
  }
}

代码示例来源:origin: hibernate/hibernate-orm

Iterator it = isPersistentClass ?
    ( (PersistentClass) columnOwner ).getPropertyIterator() :
    ( (Join) columnOwner ).getPropertyIterator();
while ( it.hasNext() ) {
  matchColumnsByProperty( (Property) it.next(), columnsToProperty );

代码示例来源:origin: hibernate/hibernate-orm

protected void checkColumnDuplication() {
  HashSet cols = new HashSet();
  if ( getIdentifierMapper() == null ) {
    //an identifier mapper => getKey will be included in the getNonDuplicatedPropertyIterator()
    //and checked later, so it needs to be excluded
    checkColumnDuplication( cols, getKey().getColumnIterator() );
  }
  checkColumnDuplication( cols, getDiscriminatorColumnIterator() );
  checkPropertyColumnDuplication( cols, getNonDuplicatedPropertyIterator() );
  Iterator iter = getJoinIterator();
  while ( iter.hasNext() ) {
    cols.clear();
    Join join = (Join) iter.next();
    checkColumnDuplication( cols, join.getKey().getColumnIterator() );
    checkPropertyColumnDuplication( cols, join.getPropertyIterator() );
  }
}

代码示例来源:origin: hibernate/hibernate-orm

if ( !checkPropertiesAudited( join.getPropertyIterator(), auditingData ) ) {
  continue;

代码示例来源:origin: org.hibernate/hibernate-annotations

Iterator it = isPersistentClass ?
    ( (PersistentClass) columnOwner ).getPropertyIterator() :
    ( (Join) columnOwner ).getPropertyIterator();
while ( it.hasNext() ) {
  matchColumnsByProperty( (Property) it.next(), columnsToProperty );

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

public boolean isLazy() {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isLazy() ) return false;
  }
  return true;
}

代码示例来源:origin: org.hibernate.orm/hibernate-core

public boolean isLazy() {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isLazy() ) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

public boolean isLazy() {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isLazy() ) return false;
  }
  return true;
}

代码示例来源:origin: hibernate/hibernate

public boolean isLazy() {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isLazy() ) return false;
  }
  return true;
}

代码示例来源:origin: hibernate/hibernate

public Iterator getPropertyIterator() {
  ArrayList iterators = new ArrayList();
  iterators.add( properties.iterator() );
  for ( int i=0; i<joins.size(); i++ ) {
    Join join = (Join) joins.get(i);
    iterators.add( join.getPropertyIterator() );
  }
  return new JoinedIterator(iterators);
}

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public boolean isLazy() {
  Iterator iter = getPropertyIterator();
  while ( iter.hasNext() ) {
    Property prop = (Property) iter.next();
    if ( !prop.isLazy() ) return false;
  }
  return true;
}

代码示例来源:origin: org.hibernate.orm/hibernate-core

public Iterator getSubclassPropertyClosureIterator() {
  ArrayList iters = new ArrayList();
  iters.add( getPropertyClosureIterator() );
  iters.add( subclassProperties.iterator() );
  for ( int i = 0; i < subclassJoins.size(); i++ ) {
    Join join = subclassJoins.get( i );
    iters.add( join.getPropertyIterator() );
  }
  return new JoinedIterator( iters );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

public Iterator getSubclassPropertyClosureIterator() {
  ArrayList iters = new ArrayList();
  iters.add( getPropertyClosureIterator() );
  iters.add( subclassProperties.iterator() );
  for ( int i=0; i<subclassJoins.size(); i++ ) {
    Join join = (Join) subclassJoins.get(i);
    iters.add( join.getPropertyIterator() );
  }
  return new JoinedIterator(iters);
}
public Iterator getSubclassJoinClosureIterator() {

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

public Iterator getSubclassPropertyClosureIterator() {
  ArrayList iters = new ArrayList();
  iters.add( getPropertyClosureIterator() );
  iters.add( subclassProperties.iterator() );
  for ( int i=0; i<subclassJoins.size(); i++ ) {
    Join join = (Join) subclassJoins.get(i);
    iters.add( join.getPropertyIterator() );
  }
  return new JoinedIterator(iters);
}
public Iterator getSubclassJoinClosureIterator() {

代码示例来源:origin: hibernate/hibernate

public Iterator getSubclassPropertyClosureIterator() {
  ArrayList iters = new ArrayList();
  iters.add( getPropertyClosureIterator() );
  iters.add( subclassProperties.iterator() );
  for ( int i=0; i<subclassJoins.size(); i++ ) {
    Join join = (Join) subclassJoins.get(i);
    iters.add( join.getPropertyIterator() );
  }
  return new JoinedIterator(iters);
}
public Iterator getSubclassJoinClosureIterator() {

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

public Iterator getSubclassPropertyClosureIterator() {
  ArrayList iters = new ArrayList();
  iters.add( getPropertyClosureIterator() );
  iters.add( subclassProperties.iterator() );
  for ( int i=0; i<subclassJoins.size(); i++ ) {
    Join join = (Join) subclassJoins.get(i);
    iters.add( join.getPropertyIterator() );
  }
  return new JoinedIterator(iters);
}
public Iterator getSubclassJoinClosureIterator() {

代码示例来源:origin: hibernate/hibernate

protected void checkColumnDuplication() {
  HashSet cols = new HashSet();
  checkColumnDuplication( cols, getKey().getColumnIterator() );
  checkColumnDuplication( cols, getDiscriminatorColumnIterator() );
  checkPropertyColumnDuplication( cols, getNonDuplicatedPropertyIterator() );
  Iterator iter = getJoinIterator();
  while ( iter.hasNext() ) {
    cols.clear();
    Join join = (Join) iter.next();
    checkColumnDuplication( cols, join.getKey().getColumnIterator() );
    checkPropertyColumnDuplication( cols, join.getPropertyIterator() );
  }
}

相关文章