| Package | Description |
|---|---|
| org.ujorm.core | |
| org.ujorm.implementation.orm | |
| org.ujorm.orm |
The ORM support.
|
| org.ujorm.orm.ao | |
| org.ujorm.orm.dialect | |
| org.ujorm.orm.metaModel | |
| org.ujorm.orm.template | |
| org.ujorm.orm.utility |
| Modifier and Type | Method and Description |
|---|---|
static <T extends OrmUjo> |
UjoIterator.getInstance(Query<T> query) |
| Modifier and Type | Class and Description |
|---|---|
class |
OrmProperty<U extends OrmUjo,VALUE>
The special property pro LazyLoadiing
|
| Modifier and Type | Class and Description |
|---|---|
class |
OrmTable<UJO_IMPL extends Ujo>
This abstract implementation of the OrmUjo interface is situable
for implementation the persistent entities.
|
class |
OrmTableSynchronized<UJO_IMPL extends Ujo>
It is an thread safe implementation of the OrmUjo for the multi-thread use.
|
| Modifier and Type | Method and Description |
|---|---|
<UJO extends UJO_IMPL> |
OrmTableSynchronized.readFK(Key<UJO,? extends OrmUjo> property)
Read the foreign key.
|
<UJO extends UJO_IMPL> |
OrmTable.readFK(Key<UJO,? extends OrmUjo> property)
Read the foreign key.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OrmKeyFactory<UJO extends OrmUjo>
OrmFactory
|
class |
Query<UJO extends OrmUjo>
ORM query.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ExtendedOrmUjo<UJO_IMPL extends Ujo>
Extended ORM Ujo.
|
| Modifier and Type | Method and Description |
|---|---|
<UJO extends OrmUjo> |
OrmHandler.alias(Class<UJO> entity,
String alias)
Create new Alias table
|
<UJO extends OrmUjo> |
Session.createQuery(Class<UJO> aClass)
Create query for all table rows.
|
<UJO extends OrmUjo> |
Session.createQuery(Class<UJO> aClass,
Criterion<UJO> criterion)
Deprecated.
Use the method
createQuery(Criterion, Class) rather. |
<UJO extends OrmUjo> |
Session.createQuery(Criterion<UJO> criterion)
The table class is derived from the first criterion column.
|
<UJO extends OrmUjo> |
Session.createQuery(Criterion<UJO> criterion,
Class<UJO> aClass)
Create query.
|
<UJO extends OrmUjo> |
Session.delete(Class<UJO> tableClass,
Criterion<UJO> criterion)
Delete all object object by the criterion from parameter.
|
<UJO extends OrmUjo> |
Session.delete(Criterion<UJO> criterion)
Delete all object object by the criterion from parameter.
|
protected <UJO extends OrmUjo> |
Session.delete(MetaTable tableModel,
Criterion<UJO> criterion)
Delete all objects object form parameter
Warning: method does not remove deleted object from internal cache, however you can call method clearCache() to release all objects from the cache. |
<UJO extends OrmUjo> |
Session.exists(Class<UJO> entity)
Returns
true if exists any database row for the required entity. |
<UJO extends OrmUjo> |
Session.exists(Criterion<UJO> criterion)
Returns
true if exists any database row with the required condition. |
protected <UJO extends OrmUjo> |
Session.exists(MetaTable table,
Criterion<UJO> criterion,
Key pk)
Returns
true if exists any database row for the required criterion. |
<DB extends OrmUjo> |
Session.getDatabase(Class<DB> dbType)
Returns a Database instance.
|
<DB extends OrmUjo> |
Session.getFirstDatabase()
Returns the first Database instance.
|
<UJO extends OrmUjo> |
Session.getRowCount(Query<UJO> query)
Returns a count of rows
|
<UJO extends OrmUjo> |
Session.iterateInternal(RelationToMany property,
OrmUjo value)
Iterate property of values
|
<UJO extends OrmUjo> |
Session.load(Class<UJO> tableType,
Object id)
Load UJO by a unique id.
|
<UJO extends OrmUjo> |
Session.loadBy(UJO ujo)
Load UJO by a unique id.
|
<UJO extends OrmUjo> |
OrmHandler.loadDatabase(Class<UJO>... databaseModel)
Load a meta-data, lock it and create database tables.
|
<UJO extends OrmUjo> |
OrmHandler.loadDatabase(Class<UJO> databaseModel)
Load a meta-data, lock it and create database tables.
|
<UJO extends OrmUjo> |
Session.loadInternal(Key relatedProperty,
Object id,
boolean mandatory)
Load UJO by a unique id.
|
| Modifier and Type | Method and Description |
|---|---|
OrmUjo |
Session.findCache(Class type,
Object... pkeys)
Find object from internal cache
|
OrmUjo |
Session.findCache(Class type,
Object pkey)
Find object from internal cache
|
| Modifier and Type | Method and Description |
|---|---|
void |
JdbcStatement.assignValue(MetaColumn column,
Object value,
OrmUjo bo)
Add a next value to a SQL prepared statement.
|
void |
JdbcStatement.assignValue(OrmUjo table,
MetaColumn column)
Add a next value to a SQL prepared statement.
|
void |
JdbcStatement.assignValues(OrmUjo bo)
Assign values into the prepared statement
|
void |
JdbcStatement.assignValues(OrmUjo table,
List<MetaColumn> columns)
Assign values into the prepared statement
|
protected void |
Session.checkNotNull(OrmUjo ujo,
String action)
Check the Ujo object to not null.
|
protected Criterion |
Session.createPkCriterion(OrmUjo bo)
Returns an criterion by a PrimaryKey
|
int |
Session.delete(OrmUjo bo)
Delete one object from the parameters.
|
<UJO extends OrmUjo> |
Session.iterateInternal(RelationToMany property,
OrmUjo value)
Iterate property of values
|
Appendable |
SqlDialect.printInsert(OrmUjo bo,
Appendable out)
Print an SQL INSERT statement.
|
ForeignKey |
Session.readFK(OrmUjo ujo,
Key<?,? extends OrmUjo> property)
Build new Forign key.
|
boolean |
Session.reload(OrmUjo ujo)
Reload values of the persistent object.
|
void |
Session.save(OrmUjo bo)
INSERT object into table.
|
void |
Session.saveOrUpdate(OrmUjo bo)
Make a statement INSERT or UPDATE into a database table
according to attribute
Session. |
int |
Session.update(OrmUjo bo)
Database UPDATE of the
modified columns for the selected object. |
int |
Session.update(OrmUjo bo,
Criterion criterion)
Database Batch UPDATE of the
modified columns along a criterion. |
| Modifier and Type | Method and Description |
|---|---|
void |
JdbcStatement.assignValues(List<? extends OrmUjo> bos,
int idxFrom,
int idxTo)
Assign values into the prepared statement
|
MetaTable |
OrmHandler.findTableModel(Class<? extends OrmUjo> dbClass)
Find a table model by the dbClass.
|
SqlDialect |
Session.getDialect(Class<? extends OrmUjo> ormType)
Check dialecttype
|
boolean |
Session.hasDialect(Class<? extends OrmUjo> ormType,
Class<? extends SqlDialect>... dialects)
Returns true, if Corm type have got any from listed dialects
|
Appendable |
SqlDialect.printInsert(List<? extends OrmUjo> bos,
int idxFrom,
int idxTo,
Appendable out)
Print an SQL INSERT statement.
|
Appendable |
SqlDialect.printInsertBySelect(List<? extends OrmUjo> bos,
int idxFrom,
int idxTo,
String fromPhrase,
Appendable out)
Print an batch SQL INSERT statement unsing SELECT UNION statejemnt.
|
<UJO extends UJO_IMPL> |
ExtendedOrmUjo.readFK(Key<UJO,? extends OrmUjo> property)
Read the foreign key.
|
ForeignKey |
Session.readFK(OrmUjo ujo,
Key<?,? extends OrmUjo> property)
Build new Forign key.
|
void |
Session.save(List<? extends OrmUjo> bos)
INSERT object into table using the Multirow inserts.
|
void |
Session.save(List<? extends OrmUjo> bos,
int multiLimit)
INSERT object into table using the Multirow inserts.
|
| Modifier and Type | Method and Description |
|---|---|
static CacheKey |
CacheKey.newInstance(OrmUjo bo,
MetaPKey pkey)
Constructor for the OrmUjo
|
| Modifier and Type | Method and Description |
|---|---|
Appendable |
MSSqlDialect.printInsert(List<? extends OrmUjo> bo,
int idxFrom,
int idxTo,
Appendable out) |
Appendable |
OracleDialect.printInsert(List<? extends OrmUjo> bo,
int idxFrom,
int idxTo,
Appendable out) |
Appendable |
FirebirdDialect.printInsert(List<? extends OrmUjo> bo,
int idxFrom,
int idxTo,
Appendable out)
Implementation is not working
|
| Modifier and Type | Field and Description |
|---|---|
static Key<MetaDatabase,OrmUjo> |
MetaDatabase.ROOT
An instance of the DB class.
|
| Modifier and Type | Method and Description |
|---|---|
OrmUjo |
MetaTable.createBO()
Returns a new instance or the BO.
|
OrmUjo |
MetaTable.getParent(OrmUjo bo)
Returns a parrent of the parameter or the null if no parent was not found.
The method provides a parent in case of emulated inheritance. |
| Modifier and Type | Method and Description |
|---|---|
Class<OrmUjo> |
MetaRelation2Many.getTableClass()
Returns a class of column table.
|
Class<OrmUjo> |
MetaProcedure.getType()
Returns a base table class.
|
Class<OrmUjo> |
MetaTable.getType()
Returns a base table class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MetaTable.assignPrimaryKey(OrmUjo bo,
Session session)
Assign a PK from framework
|
boolean |
MetaPKey.assignPrimaryKey(OrmUjo bo,
Session session)
Assign a PK from framework in case the PK generator is type of MEMO_SEQUENCE.
|
OrmUjo |
MetaTable.getParent(OrmUjo bo)
Returns a parrent of the parameter or the null if no parent was not found.
The method provides a parent in case of emulated inheritance. |
Object |
MetaColumn.getValue(OrmUjo bo)
Returns a property value from a table
|
| Constructor and Description |
|---|
MetaDatabase(OrmHandler ormHandler,
OrmUjo database,
MetaDatabase param,
Integer order)
Create a new Database.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AliasTable<UJO extends OrmUjo>
The class for building any SQL statement using Ujorm Keys.
|
| Modifier and Type | Method and Description |
|---|---|
static <UJO extends OrmUjo> |
AliasTable.of(Class<UJO> table,
OrmHandler handler)
Create new Alias with default name
|
static <UJO extends OrmUjo> |
AliasTable.of(Class<UJO> table,
String alias,
OrmHandler handler)
Create new Alias with required name
|
| Modifier and Type | Method and Description |
|---|---|
static <UJO extends OrmUjo> |
OrmTools.loadLazyValues(Iterable<UJO> ujos,
int depth)
Load all lazy values for the current parameter recursively until optional depth.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
OrmTools.loadLazyValues(OrmUjo ujo)
Load all lazy values for the current parameter.
|
static void |
OrmTools.loadLazyValues(OrmUjo ujo,
int depth)
Load all lazy values for the current parameter recursively until optional depth.
|
boolean |
OrmTools.reload(OrmUjo ujo,
Session session)
Reload values of the persistent object.
|
| Modifier and Type | Method and Description |
|---|---|
static <UJO extends ExtendedOrmUjo> |
OrmTools.loadLazyValuesAsBatch(Iterable<UJO> ujos,
Key<UJO,? extends OrmUjo> property)
Load lazy value for all items and required property by the one SQL statement.
|
Copyright 2013, Pavel Ponec