org.cloudgraph.rdb.service
Class AliasMap

java.lang.Object
  extended by org.cloudgraph.rdb.service.AliasMap

public class AliasMap
extends Object

Simple collection managing SQL table aliases


Constructor Summary
AliasMap(org.plasma.sdo.PlasmaType root)
           
 
Method Summary
 String addAlias(org.plasma.sdo.PlasmaType type)
          Adds and returns the table alias for the given type, or existing alias of already mapped
 String getAlias(org.plasma.sdo.PlasmaType type)
          Returns the table alias for the given type
 Collection<String> getAliases()
          Returs the alias names for this map
 Iterator<org.plasma.sdo.PlasmaType> getTypes()
          Return the types which are keys for this map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasMap

public AliasMap(org.plasma.sdo.PlasmaType root)
Method Detail

getAlias

public String getAlias(org.plasma.sdo.PlasmaType type)
Returns the table alias for the given type

Parameters:
type - the type
Returns:
the alias

getTypes

public Iterator<org.plasma.sdo.PlasmaType> getTypes()
Return the types which are keys for this map.

Returns:
the type keys

getAliases

public Collection<String> getAliases()
Returs the alias names for this map

Returns:
the alias names

addAlias

public String addAlias(org.plasma.sdo.PlasmaType type)
Adds and returns the table alias for the given type, or existing alias of already mapped

Parameters:
type - the type
Returns:
the new alias or existing alias of already mapped


Copyright © 2014. All rights reserved.