db4o 7.4

com.db4o.config
Class TypeAlias

java.lang.Object
  extended by com.db4o.config.TypeAlias
All Implemented Interfaces:
Alias

public class TypeAlias
extends java.lang.Object
implements Alias

a simple Alias for a single Class or Type, using #equals() on the names in the resolve method.

See Alias for concrete examples.


Constructor Summary
TypeAlias(java.lang.String storedType, java.lang.String runtimeType)
          pass the stored name as the first parameter and the desired runtime name as the second parameter.
 
Method Summary
 java.lang.String resolveRuntimeName(java.lang.String runtimeTypeName)
          returns the stored type name if the alias was written for the passed runtime type name
 java.lang.String resolveStoredName(java.lang.String storedTypeName)
          returns the runtime type name if the alias was written for the passed stored type name
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeAlias

public TypeAlias(java.lang.String storedType,
                 java.lang.String runtimeType)
pass the stored name as the first parameter and the desired runtime name as the second parameter.

Method Detail

resolveRuntimeName

public java.lang.String resolveRuntimeName(java.lang.String runtimeTypeName)
returns the stored type name if the alias was written for the passed runtime type name

Specified by:
resolveRuntimeName in interface Alias

resolveStoredName

public java.lang.String resolveStoredName(java.lang.String storedTypeName)
returns the runtime type name if the alias was written for the passed stored type name

Specified by:
resolveStoredName in interface Alias

db4o 7.4

Copyright 2007 db4objects Inc. All rights reserved.