| Package | Description |
|---|---|
| org.ujorm.orm |
The ORM support.
|
| org.ujorm.orm.dialect | |
| org.ujorm.orm.impl | |
| org.ujorm.orm.metaModel | |
| org.ujorm.orm.utility |
| Modifier and Type | Field and Description |
|---|---|
protected MetaTable |
CriterionDecoder.baseTable |
protected MetaTable |
UjoSequencer.table
Basic table.
|
| Modifier and Type | Field and Description |
|---|---|
protected Set<MetaTable> |
CriterionDecoder.tables |
| Modifier and Type | Method and Description |
|---|---|
MetaTable |
OrmHandler.findTableModel(Class<? extends OrmUjo> dbClass)
Find a table model by the dbClass.
|
MetaTable |
CriterionDecoder.getBaseTable()
Get Base Table
|
MetaTable |
TableWrapper.getModel()
Returns a meta-tablemodel
|
MetaTable |
UjoSequencer.getTable()
Returns a related table or null if sequence is general for the all MetaDatabase space
|
MetaTable |
Query.getTableModel()
Table Type
|
| Modifier and Type | Method and Description |
|---|---|
void |
OrmHandler.addTableModel(MetaTable metaTable)
Map a property to the table
|
String |
SqlDialectEx.buildConstraintName(MetaColumn column,
MetaTable table)
SQL Name Provider
|
String |
SqlNameProvider.buildDefaultConstraintForDefaultValueName(MetaTable table,
MetaColumn column)
buildDefaultConstraintForDefaultValueName
|
String |
SqlNameProvider.buildDefaultConstraintName(MetaTable table,
MetaColumn column)
SQL Name Provider
|
String |
SqlNameProvider.buildPrimaryKeyName(MetaTable table,
List<MetaColumn> columns)
BuildPrimaryKeyName
|
String |
SqlDialectEx.buildPrimaryKeyOverColumn(MetaTable table,
List<MetaColumn> columns) |
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. |
protected <UJO extends OrmUjo> |
Session.exists(MetaTable table,
Criterion<UJO> criterion,
Key pk)
Returns
true if exists any database row for the required criterion. |
Appendable |
SqlDialect.printComment(MetaTable table,
Appendable out)
Print a Comment to a database Table
|
protected void |
SqlNameProvider.printConstraintName(MetaTable table,
MetaColumn column,
Appendable out)
Print a constraint name
|
Appendable |
SqlDialect.printForeignKey(MetaColumn column,
MetaTable table,
Appendable out)
Print foreign key for the parameter column
|
Appendable |
SqlDialect.printFullTableName(MetaTable table,
Appendable out)
Print a full SQL table name by sample: SCHEMA.TABLE
|
Appendable |
SqlDialect.printFullTableName(MetaTable table,
boolean printSymbolSchema,
Appendable out)
Print a extended SQL table name by sample: SCHEMA.TABLE
|
protected void |
SqlDialectEx.printPrimaryKeyConstraint(MetaTable table,
List<MetaColumn> columns,
Appendable out)
Prints primary key constraint
|
Appendable |
SqlDialect.printTable(MetaTable table,
Appendable out)
Print a SQL sript to create table
|
| Constructor and Description |
|---|
CriterionDecoder(Criterion criterion,
MetaTable baseTable)
Constructor
|
CriterionDecoder(Criterion criterion,
MetaTable baseTable,
List<Key> orderByItems)
Constructor
|
Query(MetaTable table,
Criterion<UJO> criterion)
Create new ORM query without a session.
|
Query(MetaTable table,
Criterion<UJO> criterion,
Session session)
Create new ORM query.
|
UjoSequencer(MetaTable table) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
MySqlDialect.getEngine(MetaTable table)
Returns a MySQL enginge.
|
Appendable |
MSSqlDialect.printComment(MetaTable table,
Appendable out)
Print a Comment on the table
|
Appendable |
MySqlDialect.printComment(MetaTable table,
Appendable out)
Print a Comment on the table
|
Appendable |
HsqldbDialect.printComment(MetaTable table,
Appendable out)
COMMENT is not supported in HSQLDB database
|
Appendable |
DerbyDialect.printComment(MetaTable table,
Appendable out)
COMMENT is not supported in HSQLDB database
|
Appendable |
MSSqlDialect.printFullTableName(MetaTable table,
boolean printSymbolSchema,
Appendable out)
Print a extended SQL table name by sample: SCHEMA.TABLE
|
Appendable |
MySqlDialect.printTable(MetaTable table,
Appendable out) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MSSqlDialect.printTablesWithAlias(Collection<MetaTable> tables,
Appendable out) |
| Modifier and Type | Method and Description |
|---|---|
MetaTable |
TableWrapperImpl.getModel() |
| Constructor and Description |
|---|
TableWrapperImpl(MetaTable table,
String alias) |
| Modifier and Type | Field and Description |
|---|---|
static Key<MetaTable,String> |
MetaTable.ALIAS
The unique table/view name over all Databases in scope one OrmHandler
|
static ListKey<MetaTable,MetaColumn> |
MetaTable.COLUMNS
Table Columns (no relations)
|
static Key<MetaTable,String> |
MetaTable.COMMENT
Comment of the database table
|
static Key<MetaTable,MetaDatabase> |
MetaTable.DATABASE
Database
|
static Key<MetaTable,RelationToMany> |
MetaTable.DB_PROPERTY
Database relative property (a base definition of table)
|
static Key<MetaTable,String> |
MetaTable.ID
The meta-model id
|
static Key<MetaTable,String> |
MetaTable.NAME
DB table name
|
static Key<MetaTable,Orm2ddlPolicy> |
MetaTable.ORM2DLL_POLICY
A policy to defining the database structure by a DDL.
|
static Key<MetaTable,MetaPKey> |
MetaTable.PK
Unique Primary Key
|
static Key<MetaTable,Boolean> |
MetaTable.READ_ONLY
The state read-only for the database.
|
static ListKey<MetaTable,MetaRelation2Many> |
MetaTable.RELATIONS
Table relations to many
|
static Key<MetaTable,String> |
MetaTable.SCHEMA
Name of table schema.
|
static Key<MetaTable,String> |
MetaTable.SELECT
SQL SELECT statement
|
static Key<MetaTable,MetaSelect> |
MetaTable.SELECT_MODEL
SQL SELECT model.
|
static Key<MetaTable,String> |
MetaTable.SEQUENCE
Name of DB sequence.
|
static Key<MetaRelation2Many,MetaTable> |
MetaRelation2Many.TABLE
DB table
|
static Key<MetaIndex,MetaTable> |
MetaIndex.TABLE
Table
|
static Key<MetaPKey,MetaTable> |
MetaPKey.TABLE
DB table
|
static ListKey<MetaDatabase,MetaTable> |
MetaDatabase.TABLES
List of tables
|
static Key<MetaTable,Boolean> |
MetaTable.VIEW
Is the current object a model of a database view ?
|
| Modifier and Type | Method and Description |
|---|---|
MetaTable |
MetaColumn.getForeignTable()
Returns an original foreign columns in case a foreign column.
|
MetaTable |
MetaTable.getModel()
Return an instance of Meta Model
|
MetaTable |
MetaRelation2Many.getTable() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MetaDbService.checkKeyWord(String word,
MetaTable table,
Set<String> keywords)
Check the keyword
|
List<String> |
MetaDbServiceEx.checkTableForColumnsProperties(Connection conn,
MetaTable mappedTable,
boolean repairDB) |
List<String> |
MetaDbServiceEx.checkTableForForeignKeys(Connection conn,
MetaTable mappedTable,
boolean repairDB) |
List<String> |
MetaDbServiceEx.checkTableForIndexes(Connection conn,
MetaTable mappedTable,
boolean repairDB) |
List<String> |
MetaDbServiceEx.checkTableForMissingColumns(Connection conn,
MetaTable mappedTable,
boolean repairDB) |
List<String> |
MetaDbServiceEx.checkTableForPrimaryKeys(Connection conn,
MetaTable mappedTable,
boolean repairDB) |
protected UjoSequencer |
MetaDatabase.createSequencer(MetaTable table)
Create a new sequencer for selected table
|
protected void |
MetaDbService.executeUpdate(Appendable sql,
MetaTable table)
Check missing database table, index, or column
|
Map<String,Map<String,Object>> |
MetaDbServiceEx.listDBTableColumns(MetaTable table,
DatabaseMetaData dmd) |
Map<String,Map<String,Object>> |
MetaDbServiceEx.listDBTableFKey(MetaTable table,
DatabaseMetaData dmd) |
Set<String> |
MetaDbServiceEx.listDBTableIndexes(MetaTable table,
DatabaseMetaData dmd,
List<MetaColumn> skippedPrimaryKeyColumns) |
Map<String,Map<String,Object>> |
MetaDbServiceEx.listDBTablePKey(MetaTable table,
DatabaseMetaData dmd) |
| Modifier and Type | Method and Description |
|---|---|
void |
MetaDbServiceEx.checkKeywords(Connection conn,
List<MetaTable> tables,
List<MetaColumn> columns,
List<MetaIndex> indexes) |
protected void |
MetaDbService.checkReportKeywords(Connection conn,
List<MetaTable> tables,
List<MetaColumn> newColumns,
List<MetaIndex> indexes)
1.
|
protected void |
MetaDbService.createSchema(int tableTotalCount,
List<MetaTable> tables,
Connection conn)
2.
|
protected void |
MetaDbService.createTable(List<MetaTable> tables,
List<MetaColumn> foreignColumns)
3.
|
protected void |
MetaDbService.createTableComments(List<MetaTable> tables)
8.
|
protected void |
MetaDbService.createTableComments(List<MetaTable> cTables,
StringBuilder out)
Create table and column comments.
|
Set<String> |
MetaDatabase.getSchemas(List<MetaTable> tables)
Get all table schemas
|
protected boolean |
MetaDbService.isModelChanged(Connection conn,
List<MetaTable> newTables,
List<MetaColumn> newColumns,
List<MetaIndex> newIndexes)
Find database table or columns to modify.
|
| Constructor and Description |
|---|
MetaColumn(MetaTable table,
Key tableProperty,
MetaColumn param) |
MetaIndex(String index,
MetaTable table) |
MetaPKey(MetaTable table) |
MetaRelation2Many(MetaTable table,
Key tableProperty,
MetaRelation2Many param) |
MetaSelect(MetaTable view) |
MetaTable(MetaDatabase database,
RelationToMany dbProperty,
MetaTable parTable)
Create new MetaTable.
|
| Modifier and Type | Method and Description |
|---|---|
static Criterion |
OrmTools.createCriterion(MetaTable table,
Criterion crn,
List<Object> primaryKeys)
Create new a Criterion.
|
Copyright 2013, Pavel Ponec