C# Class Azavea.Open.DAO.Criteria.Joins.JoinSortOrder

This is similar to a DaoCriteria's SortOrder, except it is necessary to specify which DAO, the left or the right, has this field we're sorting on.
Inheritance: SortOrder
Datei anzeigen Open project: azavea/net-dao

Public Properties

Property Type Description
IsForLeftDao bool

Public Methods

Method Description
Flip ( ) : JoinSortOrder

For some implementations, it's simpler to only implement one-sided joins. So to handle right (or left) joins, you want to flip the criteria so the right and left daos are swapped and you can do a left (or right) join instead.

JoinSortOrder ( string property, SortType direction, bool isForLeftDao )

A simple class that holds a sort criterion for a property from the right or left DAO.

JoinSortOrder ( string property, bool isForLeftDao )

A simple class that holds a sort criterion for a property from the right or left DAO. This constructor creates an "ascending" sort order.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

Method Details

Flip() public method

For some implementations, it's simpler to only implement one-sided joins. So to handle right (or left) joins, you want to flip the criteria so the right and left daos are swapped and you can do a left (or right) join instead.
public Flip ( ) : JoinSortOrder
return JoinSortOrder

JoinSortOrder() public method

A simple class that holds a sort criterion for a property from the right or left DAO.
public JoinSortOrder ( string property, SortType direction, bool isForLeftDao )
property string The data class' property to sort on.
direction SortType The direction to sort based on the Property.
isForLeftDao bool If true, the property we're sorting on comes from the left /// DAO. If false, it comes from the right DAO.

JoinSortOrder() public method

A simple class that holds a sort criterion for a property from the right or left DAO. This constructor creates an "ascending" sort order.
public JoinSortOrder ( string property, bool isForLeftDao )
property string The data class' property to sort on.
isForLeftDao bool If true, the property we're sorting on comes from the left /// DAO. If false, it comes from the right DAO.

ToString() public method

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
return string

Property Details

IsForLeftDao public_oe property

If true, the property we're sorting on comes from the left DAO. If false, it comes from the right DAO.
public bool IsForLeftDao
return bool