|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.auction.Main
public class Main
Demonstrate some useful features of Hibernate.
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
void |
bidOnAuction(User bidder,
AuctionItem item,
float amount)
Demonstrates transitive persistence with detached object support |
void |
changeItemDescription(Long itemId,
String description)
Demonstrates automatic dirty checking |
void |
changeUserDetails(User user)
Demonstrates detached object support |
void |
createTestAuctions()
Demonstrates transitive persistence |
static void |
main(String[] args)
|
void |
viewAllAuctionsFast()
Demonstrates HQL projection/aggregation |
void |
viewAllAuctionsSlow()
Demonstrates HQL with runtime fetch strategy |
void |
viewAuctionsByDescription(String description,
int condition)
Demonstrates query by example |
void |
viewUserAuctions(Long sellerId)
Demonstrates query by criteria with runtime fetch strategy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Main()
Method Detail |
---|
public void viewAllAuctionsFast() throws Exception
Exception
public void viewAllAuctionsSlow() throws Exception
Exception
public void bidOnAuction(User bidder, AuctionItem item, float amount) throws Exception
Exception
public void changeUserDetails(User user) throws Exception
Exception
public void changeItemDescription(Long itemId, String description) throws Exception
Exception
public void viewUserAuctions(Long sellerId) throws Exception
Exception
public void viewAuctionsByDescription(String description, int condition) throws Exception
Exception
public void createTestAuctions() throws Exception
Exception
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |