package gw.api.database uses com.google.common.base.Preconditions uses gw.api.path.PersistentPath uses gw.entity.IEntityPropertyInfo uses java.util.List class PropertyReferenceResolver { private construct() { } /** * @param path the persistent path * @return the list of properties for the given persistent path */ public static function getEntityPropertyInfos (path : PersistentPath) : List { Preconditions.checkNotNull(path) var propertyReferences = path.asList() Preconditions.checkArgument(!propertyReferences.Empty) return propertyReferences.map(\ ref -> ref.PropertyInfo as IEntityPropertyInfo) } }