Class JaxbPersistenceImpl.JaxbPersistenceUnitImpl
- Enclosing class:
JaxbPersistenceImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class<p>Java class for anonymous complex type</p>. -
Field Summary
FieldsModifier and TypeFieldDescriptionManaged class to be included in the persistence unit and to scan for annotations.protected StringDescription of this persistence unit.protected BooleanWhen set to true then only listed classes and jars will be scanned for persistent classes, otherwise the enclosing jar or directory will also be scanned.Jar file that is to be scanned for managed classes.protected StringThe container-specific name of the JTA datasource to use.File containing mapping information.protected StringName used in code to reference this persistence unit.protected StringThe container-specific name of a non-JTA datasource to use.A list of standard and vendor-specific properties and hints.protected StringProvider class that supplies EntityManagers for this persistence unit.Qualifier annotation class used for dependency injection.protected StringScope annotation class used for dependency injection.protected SharedCacheModeDefines whether caching is enabled for the persistence unit if caching is supported by the persistence provider.protected PersistenceUnitTransactionTypeType of transactions used by EntityManagers from this persistence unit.protected ValidationModeThe validation mode to be used for the persistence unit. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionManaged class to be included in the persistence unit and to scan for annotations.Description of this persistence unit.Jar file that is to be scanned for managed classes.The container-specific name of the JTA datasource to use.File containing mapping information.getName()Name used in code to reference this persistence unit.The container-specific name of a non-JTA datasource to use.A list of standard and vendor-specific properties and hints.Provider class that supplies EntityManagers for this persistence unit.Qualifier annotation class used for dependency injection.getScope()Scope annotation class used for dependency injection.Defines whether caching is enabled for the persistence unit if caching is supported by the persistence provider.Type of transactions used by EntityManagers from this persistence unit.The validation mode to be used for the persistence unit.When set to true then only listed classes and jars will be scanned for persistent classes, otherwise the enclosing jar or directory will also be scanned.voidsetDescription(String value) Sets the value of the description property.voidsetExcludeUnlistedClasses(Boolean value) Sets the value of the excludeUnlistedClasses property.voidsetJtaDataSource(String value) Sets the value of the jtaDataSource property.voidSets the value of the name property.voidsetNonJtaDataSource(String value) Sets the value of the nonJtaDataSource property.voidSets the value of the propertyContainer property.voidsetProvider(String value) Sets the value of the provider property.voidSets the value of the scope property.voidSets the value of the sharedCacheMode property.voidSets the value of the transactionType property.voidsetValidationMode(ValidationMode value) Sets the value of the validationMode property.
-
Field Details
-
description
Description of this persistence unit. -
provider
Provider class that supplies EntityManagers for this persistence unit. -
qualifier
-
scope
Scope annotation class used for dependency injection. -
jtaDataSource
The container-specific name of the JTA datasource to use. -
nonJtaDataSource
The container-specific name of a non-JTA datasource to use. -
mappingFiles
-
jarFiles
-
classes
-
excludeUnlistedClasses
When set to true then only listed classes and jars will be scanned for persistent classes, otherwise the enclosing jar or directory will also be scanned. Not applicable to Java SE persistence units. -
validationMode
The validation mode to be used for the persistence unit. -
propertyContainer
A list of standard and vendor-specific properties and hints. -
name
Name used in code to reference this persistence unit. -
transactionType
Type of transactions used by EntityManagers from this persistence unit.
-
-
Constructor Details
-
JaxbPersistenceUnitImpl
public JaxbPersistenceUnitImpl()
-
-
Method Details
-
getDescription
-
setDescription
-
getProvider
-
setProvider
-
getQualifier
Qualifier annotation class used for dependency injection. Gets the value of the qualifier property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the qualifier property.For example, to add a new item, do as follows:
getQualifier().add(newItem);
Objects of the following type(s) are allowed in the list
String- Returns:
- The value of the qualifier property.
-
getScope
-
setScope
-
getJtaDataSource
-
setJtaDataSource
-
getNonJtaDataSource
-
setNonJtaDataSource
-
getMappingFiles
File containing mapping information. Loaded as a resource by the persistence provider. Gets the value of the mappingFiles property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the mappingFiles property.For example, to add a new item, do as follows:
getMappingFiles().add(newItem);
Objects of the following type(s) are allowed in the list
String- Returns:
- The value of the mappingFiles property.
-
getJarFiles
Jar file that is to be scanned for managed classes. Gets the value of the jarFiles property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the jarFiles property.For example, to add a new item, do as follows:
getJarFiles().add(newItem);
Objects of the following type(s) are allowed in the list
String- Returns:
- The value of the jarFiles property.
-
getClasses
Managed class to be included in the persistence unit and to scan for annotations. It should be annotated with either @Entity, @Embeddable or @MappedSuperclass. Gets the value of the classes property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
setmethod for the classes property.For example, to add a new item, do as follows:
getClasses().add(newItem);
Objects of the following type(s) are allowed in the list
String- Returns:
- The value of the classes property.
-
isExcludeUnlistedClasses
-
setExcludeUnlistedClasses
-
getValidationMode
The validation mode to be used for the persistence unit.- Returns:
- possible object is
String
-
setValidationMode
Sets the value of the validationMode property.- Parameters:
value- allowed object isString- See Also:
-
getPropertyContainer
A list of standard and vendor-specific properties and hints.- Returns:
- possible object is
JaxbPersistenceImpl.JaxbPersistenceUnitImpl.JaxbPropertiesImpl
-
setPropertyContainer
public void setPropertyContainer(JaxbPersistenceImpl.JaxbPersistenceUnitImpl.JaxbPropertiesImpl value) Sets the value of the propertyContainer property.- Parameters:
value- allowed object isJaxbPersistenceImpl.JaxbPersistenceUnitImpl.JaxbPropertiesImpl- See Also:
-
getName
-
setName
-
getTransactionType
Type of transactions used by EntityManagers from this persistence unit.- Returns:
- possible object is
String
-
setTransactionType
Sets the value of the transactionType property.- Parameters:
value- allowed object isString- See Also:
-