Uses of Class
org.ujorm.orm.metaModel.MetaColumn

Packages that use MetaColumn
org.ujorm.orm The ORM support. 
org.ujorm.orm.ao   
org.ujorm.orm.dialect   
org.ujorm.orm.impl   
org.ujorm.orm.metaModel   
org.ujorm.orm.template   
 

Uses of MetaColumn in org.ujorm.orm
 

Methods in org.ujorm.orm that return MetaColumn
 MetaColumn CriterionDecoder.getColumn(int i)
          Returns direct column or throw an exception
 MetaColumn ColumnWrapper.getModel()
          Returns an original meta-table model
 

Methods in org.ujorm.orm that return types with arguments of type MetaColumn
protected  List<MetaColumn> Session.getOrmColumns(Key... keys)
          Convert a key array to a column list.
 

Methods in org.ujorm.orm with parameters of type MetaColumn
 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.
 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
protected  String SqlDialect.getColumnType(MetaColumn column)
          Returns a database column type
 Class TypeService.getDbTypeClass(MetaColumn column)
          Return an converted Java type to database DDL statements by a generic test.
 Class<D> ITypeService.getDbTypeClass(MetaColumn column)
          Returns converted Java type to use in database DDL statements.
 String SqlNameProvider.getIndexName(MetaColumn... columns)
          Create an exact index name
static char TypeService.getTypeCode(MetaColumn column)
          The method returns a Java data type code.
 String SqlNameProvider.getUniqueConstraintName(MetaColumn... columns)
          getUniqueConstraintName
 Object TypeService.getValue(MetaColumn mColumn, CallableStatement rs, int c)
          GetValue from the stored precedure by position.
 J ITypeService.getValue(MetaColumn mColumn, CallableStatement rs, int c)
          GetValue from the stored precedure by position.
 Object TypeService.getValue(MetaColumn mColumn, ResultSet rs, int c)
          GetValue from the result set by position It must be the same implementation as #of(org.ujorm.orm.metaModel.MetaColumn, java.sql.CallableStatement, int).
 J ITypeService.getValue(MetaColumn mColumn, ResultSet rs, int c)
          GetValue from the result set by position It must be the same implementation as ITypeService.getValue(org.ujorm.orm.metaModel.MetaColumn, java.sql.CallableStatement, int).
protected  boolean SqlDialect.isColumnLengthAllowed(MetaColumn column)
          Is allowed a column length in a SQL phrase for creating column? The length example can be: NAME CHAR(10)
 Appendable SqlDialect.printAlterTableAddColumn(MetaColumn column, Appendable out)
          Print a SQL script to add a new column to the table
 Appendable SqlDialect.printAlterTableColumn(MetaColumn column, boolean add, Appendable out)
          Print a SQL script to add a new column to the table
 Appendable SqlDialect.printColumnDeclaration(MetaColumn column, String aName, Appendable out)
          Print a SQL to create column
 Appendable SqlDialect.printComment(MetaColumn column, Appendable out)
          Print a Comment to a database Column
protected  void SqlNameProvider.printConstraintName(MetaTable table, MetaColumn column, Appendable out)
          Print a constraint name
 Appendable SqlDialect.printDefaultConstraint(MetaColumn column, StringBuilder out)
          Print Default Constraint
 Appendable SqlDialect.printDefaultValue(MetaColumn column, Appendable out)
          Print a SQL phrase for the DEFAULT VALUE, for example: DEFAULT 777
 Appendable SqlDialect.printFKColumnsDeclaration(MetaColumn column, Appendable out)
          Print a SQL to create foreign keys.
 Appendable SqlDialect.printForeignKey(MetaColumn column, Appendable out)
          Print foreign key for the parameter column
 Appendable SqlDialectEx.printPrimaryKey(MetaColumn column, StringBuilder sql)
           
 Appendable SqlDialectEx.printUniqueConstraint(StringBuilder out, MetaColumn... columns)
          printUniqueConstraint
 void ITypeService.setValue(MetaColumn mColumn, PreparedStatement rs, J value, int c)
          GetValue from the result set by position.
 void TypeService.setValue(MetaColumn mColumn, PreparedStatement rs, Object value, int c)
          GetValue from the result set by position.
 

Method parameters in org.ujorm.orm with type arguments of type MetaColumn
 void JdbcStatement.assignValues(OrmUjo table, List<MetaColumn> columns)
          Assign values into the prepared statement
 String SqlNameProvider.buildPrimaryKeyName(MetaTable table, List<MetaColumn> columns)
          BuildPrimaryKeyName
 String SqlDialectEx.buildPrimaryKeyOverColumn(MetaTable table, List<MetaColumn> columns)
           
 String SqlNameProvider.getUniqueConstraintName(List<MetaColumn> columns)
           
protected  void SqlDialectEx.printPrimaryKeyConstraint(MetaTable table, List<MetaColumn> columns, Appendable out)
          Prints primary key constraint
 Appendable SqlDialectEx.printUniqueConstraint(List<MetaColumn> columns, StringBuilder out)
          Print Unique Constraint
 Appendable SqlDialect.printUpdate(List<MetaColumn> changedColumns, CriterionDecoder decoder, Appendable out)
          Print an SQL UPDATE statement.
 

Uses of MetaColumn in org.ujorm.orm.ao
 

Methods in org.ujorm.orm.ao with parameters of type MetaColumn
protected  void IndexModelOrderedBuilder.addIndex(String indexName, MetaColumn column, boolean unique)
          Add the column model to the column model from the IndexMap according the column name (case insensitive)
protected  void IndexModelBuilder.addIndex(String indexName, MetaColumn column, boolean unique)
          Add the column model to the index model from the IndexMap according the index name (case insensitive)
 Object UjoStatement.getDatabaseValue(MetaColumn column, Object value)
          Returns a any value in a JDBC friendly type.
 Object UjoStatement.getDefaultValue(MetaColumn column)
          Returns a default value in a JDBC friendly type.
 

Constructors in org.ujorm.orm.ao with parameters of type MetaColumn
IndexModelOrderedBuilder.OrderedColumn(String indexName, MetaColumn column, Integer order)
           
 

Uses of MetaColumn in org.ujorm.orm.dialect
 

Methods in org.ujorm.orm.dialect with parameters of type MetaColumn
protected  String MSSqlDialect.getColumnType(MetaColumn column)
           
protected  String OracleDialect.getColumnType(MetaColumn column)
          PostgreSql dialect uses a database type OID (instead of the BLBO).
protected  String PostgreSqlDialect.getColumnType(MetaColumn column)
          PostgreSql dialect uses a database type OID (instead of the BLBO).
protected  String MySqlDialect.getColumnType(MetaColumn column)
          MySQL dialect uses a database type DATETIME (instead of the TIMESTAMP) for the java.util.Date.
 Appendable MSSqlDialect.printAlterTableAddColumn(MetaColumn column, Appendable out)
          Print a SQL sript to add a new column to the table
 Appendable OracleDialect.printAlterTableAddColumn(MetaColumn column, Appendable out)
          Print a SQL sript to add a new column to the table
Sample: ALTER TABLE sa_myphone.ord_order ADD (NEW_COLUMN INT DEFAULT 777 NOT NULL);
 Appendable FirebirdDialect.printAlterTableAddColumn(MetaColumn column, Appendable out)
          Print a SQL sript to add a new column to the table
The DDL statement does not contains a word COLUMN.
 Appendable OracleDialect.printColumnDeclaration_2(MetaColumn column, String aName, Appendable out)
          Print a SQL to create column
 Appendable MSSqlDialect.printColumnDeclaration(MetaColumn column, String aName, Appendable out)
           
 Appendable MSSqlDialect.printColumnUnderAlias(MetaColumn column, Appendable out)
          Print a full SQL column alias name by sample: _
 Appendable DerbyDialect.printComment(MetaColumn table, Appendable out)
          COMMENT is not supported in HSQLDB database
 Appendable MSSqlDialect.printComment(MetaColumn column, Appendable out)
          Important note for MySQL: the change of column modifies all another column attributes so the comment update can revert some hand-made changes different from meta-model.
See the official MySQL documentation for more information.
 Appendable MySqlDialect.printComment(MetaColumn column, Appendable out)
          Important note for MySQL: the change of column modifies all another column attributes so the comment update can revert some hand-made changes different from meta-model.
See the official MySQL documentation for more information.
 Appendable HsqldbDialect.printComment(MetaColumn column, Appendable out)
          COMMENT is not supported in HSQLDB database
 Appendable MSSqlDialect.printDefaultConstraint(MetaColumn column, StringBuilder out)
           
 Appendable MSSqlDialect.printDefaultValue(MetaColumn column, Appendable out)
          Print a SQL phrase for the DEFAULT VALUE, for example: DEFAULT 777
 

Method parameters in org.ujorm.orm.dialect with type arguments of type MetaColumn
 Appendable MSSqlDialect.printUpdate(List<MetaColumn> changedColumns, CriterionDecoder decoder, Appendable out)
          Print an SQL UPDATE statement.
 Appendable MySqlDialect.printUpdate(List<MetaColumn> changedColumns, CriterionDecoder decoder, Appendable out)
           
 

Uses of MetaColumn in org.ujorm.orm.impl
 

Methods in org.ujorm.orm.impl that return MetaColumn
 MetaColumn ColumnWrapperImpl.getModel()
          Returns an original column model
 

Constructors in org.ujorm.orm.impl with parameters of type MetaColumn
ColumnWrapperImpl(MetaColumn column, Key key)
           
ColumnWrapperImpl(MetaColumn column, String tableAlias)
           
ColumnWrapperImpl(MetaColumn column, String tableAlias, Key key)
          Basic constructor
 

Uses of MetaColumn in org.ujorm.orm.metaModel
 

Fields in org.ujorm.orm.metaModel with type parameters of type MetaColumn
static ListKey<MetaIndex,MetaColumn> MetaIndex.COLUMNS
          Index Columns
static ListKey<MetaPKey,MetaColumn> MetaPKey.COLUMNS
          DB columns
static ListKey<MetaTable,MetaColumn> MetaTable.COLUMNS
          Table Columns (no relations)
static Key<MetaColumn,String> MetaColumn.COMMENT
          Comment of the database column
static Key<MetaColumn,String> MetaColumn.CONSTRAINT_NAME
          A name of the constraint for the case a foreign key
static Key<MetaColumn,Class<? extends ITypeService>> MetaColumn.CONVERTER
          Convert, save and read application data from/to the database
static Key<MetaColumn,DbType> MetaColumn.DB_TYPE
          Database Type
static Key<MetaColumn,String> MetaColumn.DEFAULT_VALUE
          DB Default value
static ListKey<MetaColumn,String> MetaColumn.INDEX
          A name of the non-unique database index for the column, where the same index can contain more columns.
static Key<MetaColumn,Boolean> MetaColumn.MANDATORY
          Column NOT-NULL
static Key<MetaColumn,Integer> MetaColumn.MAX_LENGTH
          Column value length
static ListKey<MetaProcedure,MetaColumn> MetaProcedure.PARAMETERS
          Procedure parameters
static Key<MetaColumn,Integer> MetaColumn.PRECISION
          Column value precision
static Key<MetaColumn,Boolean> MetaColumn.PRIMARY_KEY
          DB primary key
static ListKey<MetaColumn,String> MetaColumn.UNIQUE_INDEX
          A name of the unique database index for the column, where the same index can contain more columns.
 

Methods in org.ujorm.orm.metaModel that return MetaColumn
 MetaColumn MetaPKey.getColumn(int i)
          Returns column on the selected position.
 MetaColumn MetaPKey.getFirstColumn()
          Returns the first column.
 MetaColumn MetaTable.getFirstPK()
          Returns the first PK
 MetaColumn MetaColumn.getModel()
          Get link to a column meta-model
 

Methods in org.ujorm.orm.metaModel that return types with arguments of type MetaColumn
 List<MetaColumn> MetaIndex.getColumns()
          Index Columns
 List<MetaColumn> MetaColumn.getForeignColumns()
          Returns an original foreign columns in case a foreign column.
 List<MetaColumn> MetaTable.getForeignColumns()
          Get all foreign columns
 

Methods in org.ujorm.orm.metaModel with parameters of type MetaColumn
 void MetaDatabase.changeDbLength(MetaColumn column)
          Change DbType by a Java key
 void MetaDatabase.changeDbType(MetaColumn column)
          Change DbType by a Java key
 MetaIndex MetaDbServiceEx.createIndexForColumn(String idxName, MetaColumn column, MetaTable metaTable)
          Create an Index For the Column.
 String MetaDbServiceEx.createIndexNameForColumn(MetaColumn column, boolean uniqueIndex, MetaTable metaTable)
          Create an Index For the Column.
 boolean MetaProcedure.isInput(MetaColumn column)
          Is it an INPUT key ?
 boolean MetaProcedure.isOutput(MetaColumn column)
          Is it an OUTPUT key ?
 

Method parameters in org.ujorm.orm.metaModel with type arguments of type MetaColumn
 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.createForeignKey(List<MetaColumn> foreignColumns)
          6.
protected  void MetaDbService.createNewColumn(List<MetaColumn> newColumns, List<MetaColumn> foreignColumns)
          4.
protected  void MetaDbService.createNewColumn(List<MetaColumn> newColumns, List<MetaColumn> foreignColumns)
          4.
protected  void MetaDbService.createTable(List<MetaTable> tables, List<MetaColumn> foreignColumns)
          3.
protected  boolean MetaDbService.isModelChanged(Connection conn, List<MetaTable> newTables, List<MetaColumn> newColumns, List<MetaIndex> newIndexes)
          Find database table or columns to modify.
 Set<String> MetaDbServiceEx.listDBTableIndexes(MetaTable table, DatabaseMetaData dmd, List<MetaColumn> skippedPrimaryKeyColumns)
           
 

Constructors in org.ujorm.orm.metaModel with parameters of type MetaColumn
MetaColumn(MetaTable table, Key tableProperty, MetaColumn param)
           
 

Uses of MetaColumn in org.ujorm.orm.template
 

Methods in org.ujorm.orm.template that return MetaColumn
protected  MetaColumn AliasTable.findColumnModel(Key<UJO,?> key)
          Find Column Model or throw an IllegalArgumentException.
 

Methods in org.ujorm.orm.template with parameters of type MetaColumn
protected  StringBuilder AliasTable.printColumn(MetaColumn column, CharSequence columnAlias, StringBuilder out)
          Returns one column including an default special alias after the 'AS' phrase.
 



Copyright 2013, Pavel Ponec