Summer.Batch.Core.Entity Class Reference

Batch Domain Entity class. Any class that should be uniquely identifiable from another should subclass from Entity. More information on this pattern and the difference between Entities and Value Objects can be found in Domain Driven Design by Eric Evans. More...

Inheritance diagram for Summer.Batch.Core.Entity:
Summer.Batch.Core.JobExecution Summer.Batch.Core.JobInstance Summer.Batch.Core.StepContribution Summer.Batch.Core.StepExecution

Public Member Functions

 Entity ()
 Default constructor. More...
 
 Entity (long?id)
 Custom constructor with id. More...
 
void IncrementVersion ()
 Increments the version number. More...
 
override string ToString ()
 ToString override. More...
 
override bool Equals (Object other)
 Equals override. More...
 
override int GetHashCode ()
 Use ID if it exists to establish hash code, otherwise fall back to a call og GetHashCode on the result of the ToString method. More...
 

Properties

long Id [get, set]
 Id. More...
 
int Version [get, set]
 Version. More...
 

Detailed Description

Batch Domain Entity class. Any class that should be uniquely identifiable from another should subclass from Entity. More information on this pattern and the difference between Entities and Value Objects can be found in Domain Driven Design by Eric Evans.

Constructor & Destructor Documentation

Summer.Batch.Core.Entity.Entity ( )

Default constructor.

Summer.Batch.Core.Entity.Entity ( long?  id)

Custom constructor with id.

Parameters
id

Member Function Documentation

override bool Summer.Batch.Core.Entity.Equals ( Object  other)

Equals override.

Parameters
other
Returns
override int Summer.Batch.Core.Entity.GetHashCode ( )

Use ID if it exists to establish hash code, otherwise fall back to a call og GetHashCode on the result of the ToString method.

Returns
void Summer.Batch.Core.Entity.IncrementVersion ( )

Increments the version number.

override string Summer.Batch.Core.Entity.ToString ( )

ToString override.

Returns

Property Documentation

long Summer.Batch.Core.Entity.Id
getset

Id.

int Summer.Batch.Core.Entity.Version
getset

Version.


The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Entity.cs