Class DomainTypeFactory

java.lang.Object
org.seasar.doma.jdbc.domain.DomainTypeFactory

public final class DomainTypeFactory extends Object
A factory for domain descriptions.
  • Constructor Details

    • DomainTypeFactory

      public DomainTypeFactory()
  • Method Details

    • getDomainType

      public static <BASIC, DOMAIN> DomainType<BASIC,DOMAIN> getDomainType(Class<DOMAIN> domainClass)
      Creates the domain description.
      Type Parameters:
      BASIC - the basic type
      DOMAIN - the domain type
      Parameters:
      domainClass - the domain class
      Returns:
      the domain description
      Throws:
      DomaNullPointerException - if any arguments are null
      DomaIllegalArgumentException - if the domain class is not annotated with Domain
      DomainTypeNotFoundException - if the domain description is not found
    • getDomainType

      public static <BASIC, DOMAIN> DomainType<BASIC,DOMAIN> getDomainType(Class<DOMAIN> domainClass, ClassHelper classHelper)
      Creates the domain description with ClassHelper.
      Type Parameters:
      BASIC - the basic type
      DOMAIN - the domain type
      Parameters:
      domainClass - the domain class
      classHelper - the class helper
      Returns:
      the domain description
      Throws:
      DomaNullPointerException - if any arguments are null
      DomaIllegalArgumentException - if the domain class is not annotated with Domain
      DomainTypeNotFoundException - if the domain description is not found
    • getExternalDomainType

      public static <BASIC, DOMAIN> DomainType<BASIC,DOMAIN> getExternalDomainType(Class<DOMAIN> domainClass)
      Creates the external domain description.
      Type Parameters:
      BASIC - the basic type
      DOMAIN - the domain type
      Parameters:
      domainClass - the domain class
      Returns:
      the external domain description
      Throws:
      DomaNullPointerException - if domainClass is null
    • getExternalDomainType

      public static <BASIC, DOMAIN> DomainType<BASIC,DOMAIN> getExternalDomainType(Class<DOMAIN> domainClass, ClassHelper classHelper)
      Creates the external domain description with ClassHelper.
      Type Parameters:
      BASIC - the basic type
      DOMAIN - the domain type
      Parameters:
      domainClass - the domain class
      classHelper - the class helper
      Returns:
      the external domain description
      Throws:
      DomaNullPointerException - if any arguments are null