Get a batch of unloaded identifiers for this class, using a slightly complex algorithm that tries to grab keys registered immediately after the given key.

Namespace: NHibernate.Engine
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public Object[] GetEntityBatch(
	IEntityPersister persister,
	Object id,
	int batchSize,
	EntityMode entityMode
)
Visual Basic
Public Function GetEntityBatch ( _
	persister As IEntityPersister, _
	id As Object, _
	batchSize As Integer, _
	entityMode As EntityMode _
) As Object()
Visual C++
public:
array<Object^>^ GetEntityBatch(
	IEntityPersister^ persister, 
	Object^ id, 
	int batchSize, 
	EntityMode entityMode
)

Parameters

persister
Type: NHibernate.Persister.Entity..::..IEntityPersister
The persister for the entities being loaded.
id
Type: System..::..Object
The identifier of the entity currently demanding load.
batchSize
Type: System..::..Int32
The maximum number of keys to return
entityMode
Type: NHibernate..::..EntityMode
The entity mode.

Return Value

an array of identifiers, of length batchSize (possibly padded with nulls)

See Also