public boolean isLazy() { Iterator iter = getPropertyIterator(); while ( iter.hasNext() ) { Property prop = (Property) iter.next(); if ( !prop.isLazy() ) { return false; } } return true; }
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 ); }
/** * 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 ); }
@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 ); } } }
Iterator it = isPersistentClass ? ( (PersistentClass) columnOwner ).getPropertyIterator() : ( (Join) columnOwner ).getPropertyIterator(); while ( it.hasNext() ) { matchColumnsByProperty( (Property) it.next(), columnsToProperty );
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() ); } }
if ( !checkPropertiesAudited( join.getPropertyIterator(), auditingData ) ) { continue;
Iterator it = isPersistentClass ? ( (PersistentClass) columnOwner ).getPropertyIterator() : ( (Join) columnOwner ).getPropertyIterator(); while ( it.hasNext() ) { matchColumnsByProperty( (Property) it.next(), columnsToProperty );
public boolean isLazy() { Iterator iter = getPropertyIterator(); while ( iter.hasNext() ) { Property prop = (Property) iter.next(); if ( !prop.isLazy() ) return false; } return true; }
public boolean isLazy() { Iterator iter = getPropertyIterator(); while ( iter.hasNext() ) { Property prop = (Property) iter.next(); if ( !prop.isLazy() ) { return false; } } return true; }
public boolean isLazy() { Iterator iter = getPropertyIterator(); while ( iter.hasNext() ) { Property prop = (Property) iter.next(); if ( !prop.isLazy() ) return false; } return true; }
public boolean isLazy() { Iterator iter = getPropertyIterator(); while ( iter.hasNext() ) { Property prop = (Property) iter.next(); if ( !prop.isLazy() ) return false; } return true; }
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); }
public boolean isLazy() { Iterator iter = getPropertyIterator(); while ( iter.hasNext() ) { Property prop = (Property) iter.next(); if ( !prop.isLazy() ) return false; } return true; }
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 ); }
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() {
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() {
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() {
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() {
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() ); } }