NPersistence Reference Guide
Assembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Interface implemented by the container and used by the
persistence provider when creating an EntityManagerFactory.
Namespace: NPersistence.spiAssembly: NPersistence (in NPersistence.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C# |
public interface PersistenceUnitInfo
Members
All Members | Methods |
Public Protected | Instance Static | Declared Inherited | XNA Framework Only .NET Compact Framework Only |
Member | Description | |
---|---|---|
ExcludeUnlistedClasses()()()() | Returns whether classes in the root of the persistence unit
that have not been explicitly listed are to be included in the
set of managed classes. This value corresponds to the
exclude-unlisted-classes element in the persistence.xml file. | |
GetClassLoader()()()() | Returns ClassLoader that the provider may use to load any
classes, resources, or open URLs. | |
GetManagedClassNames()()()() | Returns the list of the names of the classes that the
persistence provider must add to its set of managed
classes. Each name corresponds to a named class element in the
persistence.xml file. | |
GetMappingFileNames()()()() | Returns the list of the names of the mapping files that the
persistence provider must load to determine the mappings for
the entity classes. The mapping files must be in the standard
XML mapping format, be uniquely named and be resource-loadable
from the application classpath. Each mapping file name
corresponds to a mapping-file element in the
persistence.xml file. | |
GetNewTempClassLoader()()()() | Return a new instance of a ClassLoader that the provider may
use to temporarily load any classes, resources, or open
URLs. The scope and classpath of this loader is exactly the
same as that of the loader returned by GetClassLoader()()()(). None of the classes loaded
by this class loader will be visible to application
components. The provider may only use this ClassLoader within
the scope of the CreateContainerEntityManagerFactory(PersistenceUnitInfo, Dictionary<(Of <<'(Object, Object>)>>)) call. | |
GetPersistenceProviderClassName()()()() | Returns the fully qualified name of the persistence provider
implementation class. Corresponds to the provider element in
the persistence.xml file. | |
GetPersistenceUnitName()()()() | Returns the name of the persistence unit. Corresponds to the
name attribute in the persistence.xml file.
| |
GetPersistenceXMLSchemaVersion()()()() | Returns the schema version of the persistence.xml file. | |
GetProperties()()()() | Returns a properties object. Each property corresponds to a
property element in the persistence.xml file. | |
GetSharedCacheMode()()()() | Returns the specification of how the provider must use
a second-level cache for the persistence unit.
The result of this method corresponds to the shared-cache-mode
element in the persistence.xml file. | |
GetTransactionType()()()() | Returns the transaction type of the entity managers created by
the EntityManagerFactory. The transaction type corresponds to
the transaction-type attribute in the persistence.xml file. | |
GetValidationMode()()()() | Returns the validation mode to be used by the persistence
provider for the persistence unit. The validation mode
corresponds to the validation-mode element in the
persistence.xml file. |