java.lang.Object
org.seasar.doma.jdbc.domain.DomainTypeFactory
A factory for domain descriptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <BASIC,DOMAIN>
DomainType<BASIC,DOMAIN> getDomainType(Class<DOMAIN> domainClass) Creates the domain description.static <BASIC,DOMAIN>
DomainType<BASIC,DOMAIN> getDomainType(Class<DOMAIN> domainClass, ClassHelper classHelper) Creates the domain description withClassHelper.static <BASIC,DOMAIN>
DomainType<BASIC,DOMAIN> getExternalDomainType(Class<DOMAIN> domainClass) Creates the external domain description.static <BASIC,DOMAIN>
DomainType<BASIC,DOMAIN> getExternalDomainType(Class<DOMAIN> domainClass, ClassHelper classHelper) Creates the external domain description withClassHelper.
-
Constructor Details
-
DomainTypeFactory
public DomainTypeFactory()
-
-
Method Details
-
getDomainType
Creates the domain description.- Type Parameters:
BASIC- the basic typeDOMAIN- the domain type- Parameters:
domainClass- the domain class- Returns:
- the domain description
- Throws:
DomaNullPointerException- if any arguments arenullDomaIllegalArgumentException- if the domain class is not annotated withDomainDomainTypeNotFoundException- 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 withClassHelper.- Type Parameters:
BASIC- the basic typeDOMAIN- the domain type- Parameters:
domainClass- the domain classclassHelper- the class helper- Returns:
- the domain description
- Throws:
DomaNullPointerException- if any arguments arenullDomaIllegalArgumentException- if the domain class is not annotated withDomainDomainTypeNotFoundException- 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 typeDOMAIN- the domain type- Parameters:
domainClass- the domain class- Returns:
- the external domain description
- Throws:
DomaNullPointerException- ifdomainClassisnull
-
getExternalDomainType
public static <BASIC,DOMAIN> DomainType<BASIC,DOMAIN> getExternalDomainType(Class<DOMAIN> domainClass, ClassHelper classHelper) Creates the external domain description withClassHelper.- Type Parameters:
BASIC- the basic typeDOMAIN- the domain type- Parameters:
domainClass- the domain classclassHelper- the class helper- Returns:
- the external domain description
- Throws:
DomaNullPointerException- if any arguments arenull
-