/** Returns the table element (TableElement) used by this mapping * table. This method should only be used by the runtime. * @return the table element for this mapping table */ public TableElement getTableObject () { if (_tableObject == null) { String absoluteTableName = NameUtil.getAbsoluteTableName( getDeclaringClass().getDatabaseRoot(), _table); _tableObject = TableElement.forName(absoluteTableName); } return _tableObject; }
/** Returns the table element (TableElement) used by this mapping * table. This method should only be used by the runtime. * @return the table element for this mapping table */ public TableElement getTableObject () { if (_tableObject == null) { String absoluteTableName = NameUtil.getAbsoluteTableName( getDeclaringClass().getDatabaseRoot(), _table); _tableObject = TableElement.forName(absoluteTableName); } return _tableObject; }
/** Returns the list of columns (ColumnElements) in the primary key for * this mapping table. This method should only be used by the runtime. * @return the column elements in the primary key for this mapping table */ public ArrayList getKeyObjects () { if (_keyObjects == null) { //@olsen: calculate the key objects based on // the key names as stored in _key //_keyObjects = new ArrayList(); _keyObjects = MappingClassElementImpl.toColumnObjects( getDeclaringClass().getDatabaseRoot(), getKey()); } return _keyObjects; }
/** Returns the list of columns (ColumnElements) in the primary key for * this mapping table. This method should only be used by the runtime. * @return the column elements in the primary key for this mapping table */ public ArrayList getKeyObjects () { if (_keyObjects == null) { //@olsen: calculate the key objects based on // the key names as stored in _key //_keyObjects = new ArrayList(); _keyObjects = MappingClassElementImpl.toColumnObjects( getDeclaringClass().getDatabaseRoot(), getKey()); } return _keyObjects; }