SMACS

smacs.load.mapping
Interface DbMappingColumnFieldName

All Superinterfaces:
HasRecordFieldName
All Known Implementing Classes:
DbMappingColumnFieldNode

public interface DbMappingColumnFieldName
extends HasRecordFieldName

used for contraint fields.

The node is usually created with a reference to the field name from the input constraint definition and an object that represents the table reference, either by name or as a parent copy. These two allow us later to resolve the FieldName into a SchemaColumn from the database schema (after a freeze step of course).

useful methods: - public String getColumnName() { return getDbSchemaColumn().getColumnName(); } - public String getColumnType() { return getDbSchemaColumn().getColumnType(); } - public DbSchemaTable hasParentTable() { return getDbSchemaColumn().hasParentTable(); } - public String getTableName() { return getDbSchemaColumn().hasParentTable().getTableName(); } - public String getSchemaName() { return getDbSchemaColumn().hasParentTable().getSchemaName(); } - public list getColumnList() { return getDbSchemaColumn().hasParentTable().getColumnList(); }

Author:
Copyright (C) 2004, Guido Draheim. All rights reserved. Part of SMACS project.

Method Summary
 DbSchemaColumn getDbSchemaColumn()
          resolved field name in schema defininition into column declaration.
 
Methods inherited from interface smacs.util.schema.HasRecordFieldName
getRecordFieldName
 

Method Detail

getDbSchemaColumn

public DbSchemaColumn getDbSchemaColumn()
resolved field name in schema defininition into column declaration. use DbSchemaColumn.getColumnName() and DbSchemaColumn.getColumnType().


SMACS