Class BeanNaturalKey

java.lang.Object
io.ebeaninternal.server.deploy.BeanNaturalKey

public final class BeanNaturalKey extends Object
Natural key for a bean type.
  • Method Details

    • length

      public int length()
    • matchProperty

      public boolean matchProperty(String propName)
      Return true if the property name is part of the natural key.
    • isSingleProperty

      public boolean isSingleProperty()
      Return true if this is a single property natural key.
    • matchSingleProperty

      public boolean matchSingleProperty(String propertyName)
      Return true if the given propertyName is our natural key property.
    • matchMultiProperties

      public boolean matchMultiProperties(Set<String> expressionProperties)
      Return true if all the properties match our natural key.
    • calculateKey

      public String calculateKey(Map<String,Object> map)
      Return the cache key given the bind values.
      Parameters:
      map - The bind values for the properties.