org.apache.oodt.xmlps.mapping
Class Mapping

java.lang.Object
  extended by org.apache.oodt.xmlps.mapping.Mapping

public class Mapping
extends Object

An Mapping is a List of MappingFields that define the translation of common ontological queries into queries against a local site's DBMS

.


Constructor Summary
Mapping()
           
Mapping(Map<String,MappingField> fields, DatabaseTableGroup tables, String id, String name)
           
 
Method Summary
 void addField(String fldName, MappingField field)
           
 void addTable(String tblName, DatabaseTable tbl)
           
 boolean constantField(String localName)
           
 String getDefaultTable()
           
 MappingField getFieldByLocalName(String localName)
           
 MappingField getFieldByName(String name)
           
 List<String> getFieldNames()
           
 String getId()
           
 String getName()
           
 int getNumFields()
           
 int getNumTables()
           
 DatabaseTable getTableByName(String name)
           
 List<String> getTableNames()
           
 void setDefaultTable(String defaultTable)
           
 void setId(String id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mapping

public Mapping()

Mapping

public Mapping(Map<String,MappingField> fields,
               DatabaseTableGroup tables,
               String id,
               String name)
Method Detail

addField

public void addField(String fldName,
                     MappingField field)

getFieldByLocalName

public MappingField getFieldByLocalName(String localName)

getFieldByName

public MappingField getFieldByName(String name)

constantField

public boolean constantField(String localName)

getNumFields

public int getNumFields()

addTable

public void addTable(String tblName,
                     DatabaseTable tbl)

getTableByName

public DatabaseTable getTableByName(String name)

getNumTables

public int getNumTables()

getTableNames

public List<String> getTableNames()

getFieldNames

public List<String> getFieldNames()

getId

public String getId()
Returns:
the id

setId

public void setId(String id)
Parameters:
id - the id to set

getName

public String getName()
Returns:
the name

setName

public void setName(String name)
Parameters:
name - the name to set

getDefaultTable

public String getDefaultTable()
Returns:
the defaultTable

setDefaultTable

public void setDefaultTable(String defaultTable)
Parameters:
defaultTable - the defaultTable to set


Copyright © 1999-2013
Apache OODT. All Rights Reserved.