Craig's Utility Library  4.0 Beta
Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T > Interface Template Reference

Generator interface, used to generate commands More...

Inheritance diagram for Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >:
Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T > Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >

Public Member Functions

IBatch All (params IParameter[] Parameters)
 Generates a batch that will get all items for the given type the parameters specified More...
 
IBatch All (int Limit, params IParameter[] Parameters)
 Generates a batch that will get all items for the given type the parameters specified More...
 
IBatch Any (params IParameter[] Parameters)
 Generates a batch that will get the first item that satisfies the parameters specified More...
 
IBatch Delete (T Object)
 Generates a batch that will delete the object More...
 
IBatch Delete (IEnumerable< T > Objects)
 Generates a batch that will delete the object More...
 
IBatch Insert (T Object)
 Generates a batch that will insert the data from the object More...
 
IBatch Insert (IEnumerable< T > Objects)
 Generates a batch that will insert the data from the objects More...
 
IBatch JoinsDelete< P > (IProperty< T, P > Property, T Object)
 Deletes items from the joining table for the property More...
 
IBatch JoinsSave< P, ItemType > (IProperty< T, P > Property, T Object)
 Saves items to the joining table for the property More...
 
IBatch LoadProperty< P > (T Object, IProperty Property)
 Generates a batch that will get the specific property for the object More...
 
IBatch PageCount (int PageSize, params IParameter[] Parameters)
 Generates a batch that will get the number of pages for a given page size given the parameters specified More...
 
IBatch Paged (int PageSize, int CurrentPage, string OrderBy, params IParameter[] Parameters)
 Generates a batch that will get a specific page of data that satisfies the parameters specified More...
 
IBatch Save< PrimaryKeyType > (T Object)
 Saves the object to the source More...
 
void SetupCommands (IMapping< T > Mapping)
 Sets up the commands for the mapping More...
 
void SetupLoadCommands< D > (Map< T, D > Property)
 Sets up the default load command for a map property More...
 
void SetupLoadCommands< D > (IEnumerableManyToOne< T, D > Property)
 Sets up the default load command for a IEnumerableManyToOne property More...
 
void SetupLoadCommands< D > (ListManyToOne< T, D > Property)
 Sets up the default load command for a ListManyToOne property More...
 
void SetupLoadCommands< D > (ListManyToMany< T, D > Property)
 Sets up the default load command for a ListManyToMany property More...
 
void SetupLoadCommands< D > (IListManyToMany< T, D > Property)
 Sets up the default load command for a ListManyToMany property More...
 
void SetupLoadCommands< D > (IListManyToOne< T, D > Property)
 Setups the load commands. More...
 
void SetupLoadCommands< D > (ICollectionManyToMany< T, D > Property)
 Sets up the default load command for a ListManyToMany property More...
 
void SetupLoadCommands< D > (ICollectionManyToOne< T, D > Property)
 Setups the load commands. More...
 
void SetupLoadCommands< D > (ManyToMany< T, D > Property)
 Sets up the default load command for a ManyToMany property More...
 
void SetupLoadCommands< D > (ManyToOne< T, D > Property)
 Sets up the default load command for a ManyToOne property More...
 
IBatch Update (T Object)
 Generates a batch that will update the data from the object More...
 
IBatch Update (IEnumerable< T > Objects)
 Generates a batch that will update the data from the objects More...
 

Detailed Description

Generator interface, used to generate commands

Template Parameters
TClass type to generate
Type Constraints
T :class 

Definition at line 32 of file IGenerator.cs.

Member Function Documentation

Generates a batch that will get all items for the given type the parameters specified

Parameters
ParametersParameters
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.All ( int  Limit,
params IParameter[]  Parameters 
)

Generates a batch that will get all items for the given type the parameters specified

Parameters
ParametersParameters
LimitMax number of items to return
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

Generates a batch that will get the first item that satisfies the parameters specified

Parameters
ParametersParameters
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

Generates a batch that will delete the object

Parameters
ObjectObject to delete
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Delete ( IEnumerable< T >  Objects)

Generates a batch that will delete the object

Parameters
ObjectsObjects to delete
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

Generates a batch that will insert the data from the object

Parameters
ObjectObject to insert
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Insert ( IEnumerable< T >  Objects)

Generates a batch that will insert the data from the objects

Parameters
ObjectsObjects to insert
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.JoinsDelete< P > ( IProperty< T, P >  Property,
Object 
)

Deletes items from the joining table for the property

Parameters
PropertyProperty
ObjectObject
Template Parameters
PProperty type
Returns
The batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.JoinsSave< P, ItemType > ( IProperty< T, P >  Property,
Object 
)

Saves items to the joining table for the property

Parameters
PropertyProperty
ObjectObject
Template Parameters
PProperty type
ItemTypeItem type
Returns
The batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.LoadProperty< P > ( Object,
IProperty  Property 
)

Generates a batch that will get the specific property for the object

Template Parameters
PProperty type
Parameters
ObjectObject to get the property for
PropertyProperty to get
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.PageCount ( int  PageSize,
params IParameter[]  Parameters 
)

Generates a batch that will get the number of pages for a given page size given the parameters specified

Parameters
ParametersParameters
PageSizePage size
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Paged ( int  PageSize,
int  CurrentPage,
string  OrderBy,
params IParameter[]  Parameters 
)

Generates a batch that will get a specific page of data that satisfies the parameters specified

Parameters
PageSizePage size
CurrentPageThe current page (starting at 0)
OrderByThe order by portion of the query
ParametersParameters
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Save< PrimaryKeyType > ( Object)

Saves the object to the source

Template Parameters
PrimaryKeyTypePrimary key type
Parameters
ObjectObject to save

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupCommands ( IMapping< T >  Mapping)

Sets up the commands for the mapping

Parameters
MappingMapping to set up

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( Map< T, D >  Property)

Sets up the default load command for a map property

Template Parameters
DData type
Parameters
PropertyMap property
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( IEnumerableManyToOne< T, D >  Property)

Sets up the default load command for a IEnumerableManyToOne property

Template Parameters
DData type
Parameters
PropertyIEnumerableManyToOne property
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( ListManyToOne< T, D >  Property)

Sets up the default load command for a ListManyToOne property

Template Parameters
DData type
Parameters
PropertyListManyToOne property
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( ListManyToMany< T, D >  Property)

Sets up the default load command for a ListManyToMany property

Template Parameters
DData type
Parameters
PropertyListManyToMany property
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( IListManyToMany< T, D >  Property)

Sets up the default load command for a ListManyToMany property

Template Parameters
DData type
Parameters
PropertyListManyToMany property
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( IListManyToOne< T, D >  Property)

Setups the load commands.

Template Parameters
D
Parameters
PropertyThe property.
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( ICollectionManyToMany< T, D >  Property)

Sets up the default load command for a ListManyToMany property

Template Parameters
DData type
Parameters
PropertyListManyToMany property
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( ICollectionManyToOne< T, D >  Property)

Setups the load commands.

Template Parameters
D
Parameters
PropertyThe property.
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( ManyToMany< T, D >  Property)

Sets up the default load command for a ManyToMany property

Template Parameters
DData type
Parameters
PropertyManyToMany property
Type Constraints
D :class 
void Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.SetupLoadCommands< D > ( ManyToOne< T, D >  Property)

Sets up the default load command for a ManyToOne property

Template Parameters
DData type
Parameters
PropertyManyToOne property
Type Constraints
D :class 

Generates a batch that will update the data from the object

Parameters
ObjectObject to update
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IGenerator< T >.Update ( IEnumerable< T >  Objects)

Generates a batch that will update the data from the objects

Parameters
ObjectsObjects to update
Returns
Batch with the appropriate commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.SQLServer.SQLServerGenerator< T >, and Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPGenerator< T >.


The documentation for this interface was generated from the following file: