org.ujoframework.orm.sample
Class SampleORM

java.lang.Object
  extended by org.ujoframework.orm.sample.SampleORM

public class SampleORM
extends java.lang.Object

The ORM tutorial in the class. See how to create statements for CREATE TABLE, INSERT, SELECT, UPDATE and DELETE.

Author:
Pavel Ponec

Constructor Summary
SampleORM()
           
 
Method Summary
 void loadMetaModel(boolean createDb)
          Before the first use load a meta-model.
static void main(java.lang.String[] args)
          Test
 void useDelete_1()
          Using DELETE SQL
 void useDelete_2()
          Using DELETE SQL
 void useInsert()
          Create database and call INSERT
 void useIteratorSkip()
          Using SKIP on UjoIterator
 void useMetadata()
          Using the column metadata
 void useRelation()
          Using SELECT by an object relations
 void useSelectCount()
          Using SELECT by QUERY
 void useSelectItems_1()
          Using SELECT by QUERY
 void useSelectItems_2()
          Using SELECT by QUERY
 void useSelectItems_3()
          Using SELECT by QUERY
 void useSelectItems_4()
          Using SELECT by QUERY
 void useSelectOrders()
          Using SELECT by QUERY
 void useSelectViewOrders()
          Using SELECT by VIEW QUERY
 void useSortOrders()
          Using SELECT by QUERY
 void useUpdate()
          Using UPDATE
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleORM

public SampleORM()
Method Detail

loadMetaModel

public void loadMetaModel(boolean createDb)
Before the first use load a meta-model.


useInsert

public void useInsert()
Create database and call INSERT


useSelectOrders

public void useSelectOrders()
Using SELECT by QUERY


useSortOrders

public void useSortOrders()
Using SELECT by QUERY


useSelectViewOrders

public void useSelectViewOrders()
Using SELECT by VIEW QUERY


useSelectItems_1

public void useSelectItems_1()
Using SELECT by QUERY


useSelectItems_2

public void useSelectItems_2()
Using SELECT by QUERY


useSelectItems_3

public void useSelectItems_3()
Using SELECT by QUERY


useSelectItems_4

public void useSelectItems_4()
Using SELECT by QUERY


useSelectCount

public void useSelectCount()
Using SELECT by QUERY


useIteratorSkip

public void useIteratorSkip()
Using SKIP on UjoIterator


useRelation

public void useRelation()
Using SELECT by an object relations


useUpdate

public void useUpdate()
Using UPDATE


useDelete_1

public void useDelete_1()
Using DELETE SQL


useDelete_2

public void useDelete_2()
Using DELETE SQL


useMetadata

public void useMetadata()
Using the column metadata


main

public static void main(java.lang.String[] args)
Test



Copyright © 2009. All Rights Reserved.