Class Seid

java.lang.Object
com.landawn.abacus.util.Seid
All Implemented Interfaces:
EntityId

public class Seid extends Object implements EntityId
Since:
0.8
Author:
Haiyang Li
  • Constructor Details

  • Method Details

    • of

      @Deprecated @Internal public static Seid of(String entityName)
      Deprecated.
      for internal use only
      Parameters:
      entityName -
      Returns:
    • of

      public static Seid of(String propName, Object propValue)
      Parameters:
      propName -
      propValue -
      Returns:
    • of

      public static Seid of(String propName1, Object propValue1, String propName2, Object propValue2)
      Parameters:
      propName1 -
      propValue1 -
      propName2 -
      propValue2 -
      Returns:
    • of

      public static Seid of(String propName1, Object propValue1, String propName2, Object propValue2, String propName3, Object propValue3)
      Parameters:
      propName1 -
      propValue1 -
      propName2 -
      propValue2 -
      propName3 -
      propValue3 -
      Returns:
    • create

      public static Seid create(Map<String,Object> nameValues)
      Parameters:
      nameValues -
      Returns:
    • create

      public static Seid create(Object entity)
      Parameters:
      entity -
      Returns:
    • create

      public static Seid create(Object entity, Collection<String> idPropNames)
      Parameters:
      entity -
      idPropNames -
      Returns:
    • entityName

      public String entityName()
      Specified by:
      entityName in interface EntityId
      Returns:
    • get

      public <T> T get(String propName)
      Specified by:
      get in interface EntityId
      Type Parameters:
      T -
      Parameters:
      propName -
      Returns:
    • getInt

      public int getInt(String propName)
      Specified by:
      getInt in interface EntityId
      Parameters:
      propName -
      Returns:
    • getLong

      public long getLong(String propName)
      Specified by:
      getLong in interface EntityId
      Parameters:
      propName -
      Returns:
    • get

      public <T> T get(String propName, Class<? extends T> targetType)
      Description copied from interface: EntityId

      Node: To follow one of general design rules in Abacus, if there is a conversion behind when the source value is not assignable to the target type, put the targetType to last parameter of the method. Otherwise, put the targetTpye to the first parameter of the method.
      Specified by:
      get in interface EntityId
      Type Parameters:
      T -
      Parameters:
      propName -
      targetType -
      Returns:
    • set

      @Deprecated @Internal public Seid set(String propName, Object propValue)
      Deprecated.
      for internal use only
      Parameters:
      propName -
      propValue -
      Returns:
    • set

      @Deprecated @Internal public void set(Map<String,Object> nameValues)
      Deprecated.
      for internal use only
      Parameters:
      nameValues -
    • containsKey

      public boolean containsKey(String propName)
      Specified by:
      containsKey in interface EntityId
      Parameters:
      propName -
      Returns:
      true, if successful
    • keySet

      public Set<String> keySet()
      Specified by:
      keySet in interface EntityId
      Returns:
    • entrySet

      public Set<Map.Entry<String,Object>> entrySet()
      Specified by:
      entrySet in interface EntityId
      Returns:
    • size

      public int size()
      Specified by:
      size in interface EntityId
      Returns:
    • isEmpty

      public boolean isEmpty()
      Checks if is empty.
      Specified by:
      isEmpty in interface EntityId
      Returns:
      true, if is empty
    • clear

      @Deprecated @Internal public void clear()
      Deprecated.
      for internal use only
      Clear.
    • copy

      @Deprecated @Internal public Seid copy()
      Deprecated.
      for internal use only
      Returns:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Parameters:
      obj -
      Returns:
      true, if successful
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: