org.devaki.nextobjects.workspace.models.objects
Class BaseClass

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.objects.BaseObject
      extended byorg.devaki.nextobjects.workspace.models.objects.BaseClass
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Association, Entity, Label, ModelTitle, Table

public abstract class BaseClass
extends BaseObject
implements java.io.Serializable

Object of type "class"

Author:
Emmanuel Florent
See Also:
http://db.apache.org/torque/schema-reference.html, Serialized Form

Constructor Summary
BaseClass()
          Construct a standard BaseClass
BaseClass(BaseClass pObject)
          Construct a nextGraphicsObject by copying another nextGraphicsObject
BaseClass(BaseModel pModel)
          Construct a nextGraphicsObject with a pre-defined NOModel
 
Method Summary
 boolean getAbstractClass()
          Get whether or not to generate the class as Abstract or not
 java.lang.String getAlias()
          Get the table alias
 java.lang.String getBaseClass()
          Used for OM Peer generation
 java.lang.String getBasePeer()
          Used for OM Peer generation
 Column getColumnForId(java.lang.String pString)
          Get Column for the given code
 boolean getHeavyIndexing()
          Set the heavyIndexibg Toque's flaf
 java.lang.String getIdMethod()
          Set how will the primary keys be created
 java.util.Vector getIndexes()
          Return all the indexes of that table.
 java.lang.String getJavaName()
          Get how this table will be referenced in Java
 java.lang.String getJavaNamingMethod()
          Specifies how the name attribute is converted to the Java class name of the corresponding OM object
abstract  ObjectView getObjectView()
          get the object view
 boolean getSkipSql()
          Get zhether or not to skip SQL generation
 java.util.Vector getUniques()
          Return all the unique constraint of that table.
 void setAbstractClass(boolean pAbstractClass)
          Set whether or not to generate the class as Abstract or not
 void setAlias(java.lang.String pAlias)
          Set the table alias
 void setBaseClass(java.lang.String pBaseClass)
          Used for OM Peer generation
 void setBasePeer(java.lang.String pBasePeer)
          Used for OM Peer generation
 void setData(java.util.Vector pColumns)
          Initializes the list of fields with the Vector given as parameter
 void setHeavyIndexing(boolean pHeavyIndexing)
          ?
 void setIdMethod(java.lang.String pIdMethod)
          Set how will the primary keys be created
 void setIndexes(java.util.Vector vector)
          Set the indexes of a database.
 void setJavaName(java.lang.String pJavaName)
          Set how this table will be referenced in Java
 void setJavaNamingMethod(java.lang.String pJavaNamingMethod)
          Specifies how the name attribute is converted to the Java class name of the corresponding OM object
 void setSkipSql(boolean pSkipSql)
          Set whether or not to skip SQL generation
 void setUniques(java.util.Vector vector)
          Set the uniques constraint of a database
 
Methods inherited from class org.devaki.nextobjects.workspace.models.objects.BaseObject
getCode, getColumns, getData, getDataChanged, getDescription, getDynamicTreeNode, getMyModel, getName, getNotes, resetModelStatus, setCode, setColumns, setDataChanged, setDescription, setDynamicTreeNode, setMyModel, setName, setNotes, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseClass

public BaseClass()
Construct a standard BaseClass


BaseClass

public BaseClass(BaseModel pModel)
Construct a nextGraphicsObject with a pre-defined NOModel

Parameters:
pModel - the base model

BaseClass

public BaseClass(BaseClass pObject)
Construct a nextGraphicsObject by copying another nextGraphicsObject

Parameters:
pObject - the class to clone
Method Detail

getObjectView

public abstract ObjectView getObjectView()
get the object view

Specified by:
getObjectView in class BaseObject
Returns:
object view

setHeavyIndexing

public final void setHeavyIndexing(boolean pHeavyIndexing)
?

Parameters:
pHeavyIndexing - heavy indexing

setJavaNamingMethod

public final void setJavaNamingMethod(java.lang.String pJavaNamingMethod)
Specifies how the name attribute is converted to the Java class name of the corresponding OM object

Parameters:
pJavaNamingMethod - java naming method

setAlias

public final void setAlias(java.lang.String pAlias)
Set the table alias

Parameters:
pAlias - alias

setBasePeer

public final void setBasePeer(java.lang.String pBasePeer)
Used for OM Peer generation

Parameters:
pBasePeer - basepeer

setBaseClass

public final void setBaseClass(java.lang.String pBaseClass)
Used for OM Peer generation

Parameters:
pBaseClass - base class

setAbstractClass

public final void setAbstractClass(boolean pAbstractClass)
Set whether or not to generate the class as Abstract or not

Parameters:
pAbstractClass - is abstract

setSkipSql

public final void setSkipSql(boolean pSkipSql)
Set whether or not to skip SQL generation

Parameters:
pSkipSql - skip sql

setIdMethod

public final void setIdMethod(java.lang.String pIdMethod)
Set how will the primary keys be created

Parameters:
pIdMethod - id method

setJavaName

public final void setJavaName(java.lang.String pJavaName)
Set how this table will be referenced in Java

Parameters:
pJavaName - javaname

setData

public final void setData(java.util.Vector pColumns)
Initializes the list of fields with the Vector given as parameter

Parameters:
pColumns - columns

getHeavyIndexing

public final boolean getHeavyIndexing()
Set the heavyIndexibg Toque's flaf

Returns:
heavy indexing

getJavaNamingMethod

public final java.lang.String getJavaNamingMethod()
Specifies how the name attribute is converted to the Java class name of the corresponding OM object

Returns:
javanaming method

getAlias

public final java.lang.String getAlias()
Get the table alias

Returns:
alias

getBaseClass

public final java.lang.String getBaseClass()
Used for OM Peer generation

Returns:
the base class

getBasePeer

public final java.lang.String getBasePeer()
Used for OM Peer generation

Returns:
the base peer

getAbstractClass

public final boolean getAbstractClass()
Get whether or not to generate the class as Abstract or not

Returns:
is abstract

getSkipSql

public final boolean getSkipSql()
Get zhether or not to skip SQL generation

Returns:
skip sql

getIdMethod

public final java.lang.String getIdMethod()
Set how will the primary keys be created

Returns:
id-method

getJavaName

public final java.lang.String getJavaName()
Get how this table will be referenced in Java

Returns:
javaname

getIndexes

public final java.util.Vector getIndexes()
Return all the indexes of that table.

Returns:
indexes

getUniques

public final java.util.Vector getUniques()
Return all the unique constraint of that table.

Returns:
unicity constraints

setIndexes

public final void setIndexes(java.util.Vector vector)
Set the indexes of a database.

Parameters:
vector - indexes

setUniques

public final void setUniques(java.util.Vector vector)
Set the uniques constraint of a database

Parameters:
vector - uniques

getColumnForId

public final Column getColumnForId(java.lang.String pString)
Get Column for the given code

Parameters:
pString - the column code
Returns:
the column


Copyright © 2002-2004 devaki.org. All Rights Reserved.