public Collection<XProperty> getProperties() { assertTypesAreResolvable(); return Collections.unmodifiableCollection( persistentAttributeMap.values() ); }
/** * @param elements List of {@code ProperyData} instances * @param defaultAccessType The default value access strategy which has to be used in case no explicit local access * strategy is used * @param propertyContainer Metadata about a class and its properties * @param mappings Mapping meta data * * @return the number of id properties found while iterating the elements of {@code annotatedClass} using * the determined access strategy, {@code false} otherwise. */ static int addElementsOfClass( List<PropertyData> elements, AccessType defaultAccessType, PropertyContainer propertyContainer, ExtendedMappings mappings ) { int idPropertyCounter = 0; AccessType accessType = defaultAccessType; if ( propertyContainer.hasExplicitAccessStrategy() ) { accessType = propertyContainer.getExplicitAccessStrategy(); } propertyContainer.assertTypesAreResolvable( accessType ); Collection<XProperty> properties = propertyContainer.getProperties( accessType ); for ( XProperty p : properties ) { final int currentIdPropertyCounter = addProperty( propertyContainer, p, elements, accessType.getType(), mappings ); idPropertyCounter += currentIdPropertyCounter; } return idPropertyCounter; }
public Collection<XProperty> getProperties() { assertTypesAreResolvable(); return Collections.unmodifiableCollection( persistentAttributeMap.values() ); }
public Collection<XProperty> getProperties(AccessType accessType) { assertTypesAreResolvable( accessType ); if ( AccessType.DEFAULT == accessType || AccessType.PROPERTY == accessType ) { return Collections.unmodifiableCollection( propertyAccessMap.values() ); } else { return Collections.unmodifiableCollection( fieldAccessMap.values() ); } }
public Collection<XProperty> getProperties(AccessType accessType) { assertTypesAreResolvable( accessType ); if ( AccessType.DEFAULT == accessType || AccessType.PROPERTY == accessType ) { return Collections.unmodifiableCollection( propertyAccessMap.values() ); } else { return Collections.unmodifiableCollection( fieldAccessMap.values() ); } }