org.cloudgraph.rdb.service
Class AliasMap

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

public class AliasMap
extends java.lang.Object

Simple collection managing SQL table aliases


Constructor Summary
AliasMap(org.plasma.sdo.PlasmaType root)
           
 
Method Summary
 java.lang.String addAlias(org.plasma.sdo.PlasmaType type)
          Adds and returns the table alias for the given type, or existing alias of already mapped
 java.lang.String getAlias(org.plasma.sdo.PlasmaType type)
          Returns the table alias for the given type
 java.util.Collection<java.lang.String> getAliases()
          Returs the alias names for this map
 java.util.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 java.lang.String getAlias(org.plasma.sdo.PlasmaType type)
Returns the table alias for the given type

Parameters:
type - the type
Returns:
the alias

getTypes

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

Returns:
the type keys

getAliases

public java.util.Collection<java.lang.String> getAliases()
Returs the alias names for this map

Returns:
the alias names

addAlias

public java.lang.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 © 2013. All Rights Reserved.