org.onemind.commons.relabean
Class RelationalBeanModelDescriptor

java.lang.Object
  extended byorg.onemind.commons.relabean.RelationalBeanModelDescriptor

public class RelationalBeanModelDescriptor
extends java.lang.Object

Describes a relational bean model as to what is primitive type and what is bean type and the name mapping for each bean class

Version:
$Id: RelationalBeanModelDescriptor.java,v 1.2 2004/08/26 16:28:58 thlee Exp $ $Name: $
Author:
TiongHiang Lee (thlee@onemindsoft.org)

Constructor Summary
RelationalBeanModelDescriptor(java.lang.String name)
          {@inheritDoc}
 
Method Summary
 void addPrimitiveTypes(java.lang.Class c)
          Add class c as primitive type
 java.lang.String getModelName()
          Returns the model name
 java.util.Collection getPrimitiveTypes()
          Whether a class is primitive types
 java.lang.Class getStopClass(java.lang.Class c)
          Get a stop class for particular class
 boolean isPrimitiveType(java.lang.Class c)
          return whether a class is primitive type
 void setModelName(java.lang.String modelName)
          set the model name
 void setStopClass(java.lang.Class c, java.lang.Class stopClass)
          Set the stop class for particular class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelationalBeanModelDescriptor

public RelationalBeanModelDescriptor(java.lang.String name)
{@inheritDoc}

Method Detail

getModelName

public java.lang.String getModelName()
Returns the model name

Returns:
the model name

setModelName

public void setModelName(java.lang.String modelName)
set the model name

Parameters:
modelName - the model name

isPrimitiveType

public boolean isPrimitiveType(java.lang.Class c)
return whether a class is primitive type

Parameters:
c - the class
Returns:
true if the class is primitive type

getPrimitiveTypes

public java.util.Collection getPrimitiveTypes()
Whether a class is primitive types

Returns:
the name mappings

addPrimitiveTypes

public void addPrimitiveTypes(java.lang.Class c)
Add class c as primitive type

Parameters:
c - the primitive type

getStopClass

public java.lang.Class getStopClass(java.lang.Class c)
Get a stop class for particular class

Parameters:
c - the class
Returns:
the stop class

setStopClass

public void setStopClass(java.lang.Class c,
                         java.lang.Class stopClass)
Set the stop class for particular class

Parameters:
c - the class
stopClass - the stop class


Copyright © 2004-2005 . All Rights Reserved.