Class ReturningPropertyNames

java.lang.Object
org.seasar.doma.jdbc.query.ReturningPropertyNames
All Implemented Interfaces:
ReturningProperties

public class ReturningPropertyNames extends Object implements ReturningProperties
A class that resolves property names to entity property types for returning clauses.

This class implements ReturningProperties to provide a way to specify which entity properties should be returned from database operations using property names. It supports including specific properties and excluding others.

  • Method Details

    • resolve

      public List<? extends EntityPropertyType<?,?>> resolve(EntityType<?> entityType)
      Resolves a list of entity property types for the given entity type.
      Specified by:
      resolve in interface ReturningProperties
      Parameters:
      entityType - the entity type for which to resolve property types
      Returns:
      a list of entity property types associated with the given entity type
    • of

      public static ReturningProperties of(List<String> includedNames, List<String> excludedNames)
      Creates a new ReturningProperties instance with the specified included and excluded names.
      Parameters:
      includedNames - the names of properties to include
      excludedNames - the names of properties to exclude
      Returns:
      a new ReturningProperties instance