org.devaki.nextobjects.workspace.models
Class BaseModel

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.BaseModel
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConceptualModel, PhysicalModel

public abstract class BaseModel
extends java.lang.Object
implements java.io.Serializable

This is the parent class for most of the models objects

Author:
Emmanuel Florent
See Also:
http://maven.apache.org/reference/project-descriptor.html, http://db.apache.org/torque/generator/schema-reference.html, http://db.apache.org/torque/generator/database.dtd.txt, Serialized Form

Constructor Summary
BaseModel(java.lang.String pName)
          Construct a standard NOModel
 
Method Summary
 java.lang.String getAlternateProjectId()
          Get the alternate project id
 java.lang.String getAuthorEmail()
          Get the email of the author of the model
 java.lang.String getBaseClass()
          Get the name of the base class (Object-Model)
 java.lang.String getBasePeer()
          Get the name of the base peer (Object-Model)
abstract  java.lang.String getBestFilename()
          Return the best possible filename for save
 org.apache.maven.project.Build getBuild()
          Get the build
 java.lang.String getBuildDatabaseUrl()
          Get The URL that will be used to access your database.
 java.util.Vector getClasses()
          Return the classes of the model
 java.lang.String getCompany()
          Get the company to which the project depends on
 java.util.Vector getContributors()
          Get the contributors
static int getCountInstance()
          Get a serial number
 java.lang.String getCreateDatabaseUrl()
          Get the URL that Torque can use to create and drop databases
 java.lang.String getCurrentVersion()
          Get th the current version
 java.lang.String getDatabaseDriver()
          Get the DatabseDriver to Test Connect
 java.lang.String getDatabaseHost()
          Get the hostname or IP address of your database server
 java.lang.String getDatabasePassword()
          Get the administrative password for the supplied username
 java.lang.String getDatabaseUser()
          Get the administrative username that has sufficient privileges to create and drop databases and tables
 int getDbType()
          Get the database type
 java.lang.String getDefaultIdMethod()
          Get how will the primary keys be created
 java.lang.String getDefaultJavaNamingMethod()
          Get the default java naming method
 java.lang.String getDefaultJavaType()
          Default type of columns in the database
 java.util.Vector getDependencies()
          Get the dependencies
 java.lang.String getDescription()
          Get the description
 java.util.Vector getDevelopers()
          Return a reference to all the developers
 java.lang.String getDistributionDirectory()
          Get the distribution directory
 CustomTreeNode getDynamicTreeNode()
          Get the associated node
 java.lang.String getFileForSave()
          Get the file path to save
 java.lang.String getGroupId()
          Get the group id
 boolean getHeavyIndexing()
          Heavy indexing
 java.lang.String getId()
          Get the code of the model
 java.lang.String getInceptionYear()
          get the inception year
 InheritanceLink getInheritanceLinkAt(int i)
          Return an inheritance links of the model
 java.util.Vector getInheritanceLinks()
          Return the inheritance links of the model
 java.lang.String getIssueTrackingUrl()
          Get the issue tracking url
 java.util.Vector getLabels()
          Return the labels of the model
 java.util.Vector getLicenses()
          Get the licenses
 java.util.Vector getLinks()
          Return the inheritance links, constraints, halfAssociations of the model
 java.lang.String getLocalDirectory()
          Get the local directory
 java.lang.String getLogo()
          Get the logo
 java.util.Vector getMailingLists()
          Get the mailing list
abstract  BaseObject[] getModelObjects()
          return the objects of the model
abstract  BaseModelView getModelView()
          Get the model view
 java.lang.String getName()
          Get the name of the model
 java.lang.String getNotes()
          Get the notes of the model
 java.lang.String getOrganizationLogo()
          Get the organization logo
 java.lang.String getOrganizationName()
          Get the organization name
 java.lang.String getOrganizationUrl()
          Get the organization url
 java.lang.String getPackageName()
          Get the name of the java package (Object-Model)
 javax.swing.JPanel getPanel()
          Get the panel associated
 java.lang.String getParentProject()
          Get the parent project
 java.util.Vector getProjectProperties()
          Get the project properties
 java.lang.String getProjectURL()
          Get the project url
 java.util.Vector getProperties()
          Get the properties
 NORedoLog getRedoLog()
          Get the redolog stack
 java.lang.String getRepositoryConnection()
          Get the Repository Connection
 java.lang.String getRepositoryUrl()
          Get the repository url
 java.lang.String getSchema()
          Get the schema that Torque can use to create and drop databases
 java.lang.String getShortDescription()
          Get the short description
 java.lang.String getSiteAddress()
          Get the site adress
 java.lang.String getSiteAdress()
          Get the site adress
 java.lang.String getSiteDirectory()
          Get the site directory
 boolean isSaved()
          The model is saved
 boolean isVerified()
          The model is verified
 void setAlternateProjectId(java.lang.String string)
          Set the alternate project id
 void setBaseClass(java.lang.String pBaseClass)
          Set the name of the base class (Object-Model)
 void setBasePeer(java.lang.String pBasePeer)
          Set the name of the base peer (Object-Model)
 void setBuild(org.apache.maven.project.Build pBuild)
          Set the build
 void setBuildDatabaseUrl(java.lang.String pBuildDatabaseUrl)
          Set The URL that will be used to access your database.
 void setCompany(java.lang.String pCompany)
          Set the company to which the project depends on
 void setContributors(java.util.Vector vector)
          Set the contributors
 void setCreateDatabaseUrl(java.lang.String pCreateDatabaseUrl)
          Set the URL that Torque can use to create and drop databases
 void setCurrentVersion(java.lang.String string)
          Set the current version
 void setDatabaseDriver(java.lang.String pDatabaseDriver)
          Set the JDBC Driver to use for Test Connect
 void setDatabaseHost(java.lang.String pDatabaseHost)
          Set the hostname or IP address of your database server
 void setDatabasePassword(java.lang.String pDatabasePassword)
          Set the administrative password for the supplied username
 void setDatabaseUser(java.lang.String pDatabaseUser)
          Set the administrative username that has sufficient privileges to create and drop databases and tables
 void setDbType(int pDbType)
          Set the database type
 void setDefaultIdMethod(java.lang.String pDefaultIdMethod)
          Set how will the primary keys be created
 void setDefaultJavaNamingMethod(java.lang.String pMethod)
          Determines how table or column names, from the name attribute of the table or column element, are converted to a Java class or method name respectively when creating the OM Java objects
 void setDefaultJavaType(java.lang.String pDefaultJavaType)
          Default type of columns in the database
 void setDependencies(java.util.Vector vector)
          Set a reference to a dependencies vector
 void setDescription(java.lang.String pDescription)
          Set a description
 void setDevelopers(java.util.Vector vector)
          Set the developers
 void setDistributionDirectory(java.lang.String string)
          Set the distribution directory
 void setDynamicTreeNode(CustomTreeNode pNode)
          Set the node associated
 void setFileForSave(java.lang.String pFileForSave)
          Set the file path to save
 void setGroupId(java.lang.String string)
          Set the group id
 void setHeavyIndexing(boolean pHeavyIndexing)
          -
 void setId(java.lang.String pCode)
          Set the code of the model
 void setInceptionYear(java.lang.String string)
          Set the inception year
 void setIssueTrackingUrl(java.lang.String string)
          set the issue tracking url
 void setLicenses(java.util.Vector vector)
          Set the licenses
 void setLocalDirectory(java.lang.String string)
          Set the local directory
 void setLogo(java.lang.String string)
          Set the logo
 void setMailingLists(java.util.Vector vector)
          Set the mailing lists
 void setName(java.lang.String pName)
          Set the name of the model
 void setNotes(java.lang.String pNotes)
          Set the notes of the project
 void setOrganizationLogo(java.lang.String string)
          The organization logo
 void setOrganizationName(java.lang.String string)
          Set the organization name
 void setOrganizationUrl(java.lang.String string)
          Set the organization name
 void setPackageName(java.lang.String pPackageName)
          Set the name of the java package (Object-Model)
 void setPanel(javax.swing.JPanel pPanel)
          Set the panel associated
 void setParentProject(java.lang.String string)
          Set the parent project id
 void setProjectProperties(java.util.Vector vector)
          Set( the project properties
 void setProjectURL(java.lang.String pProjectURL)
          Set the HTTP address of the project
 void setProperties(java.util.Vector vector)
          Set the properties
 void setRepositoryConnection(java.lang.String string)
          Set the repository connection
 void setRepositoryUrl(java.lang.String string)
          Set the repository url
 void setSaved(boolean b)
          The model is saved
 void setSchema(java.lang.String pSchema)
          Set The schema that will be used to access your database.
 void setShortDescription(java.lang.String string)
          Set the short description
 void setSiteAddress(java.lang.String string)
          Set the site adress
 void setSiteDirectory(java.lang.String string)
          Set the site directory
 void setVerified(boolean b)
          The model is verified
 java.lang.String toString()
          Returns a String representation of the NOModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseModel

public BaseModel(java.lang.String pName)
Construct a standard NOModel

Parameters:
pName - the model name
Method Detail

getModelObjects

public abstract BaseObject[] getModelObjects()
return the objects of the model

Returns:
array of BaseObject

getBestFilename

public abstract java.lang.String getBestFilename()
Return the best possible filename for save

Returns:
the best filename

getModelView

public abstract BaseModelView getModelView()
Get the model view

Returns:
model view

toString

public final java.lang.String toString()
Returns a String representation of the NOModel

Returns:
the model name

setDynamicTreeNode

public final void setDynamicTreeNode(CustomTreeNode pNode)
Set the node associated

Parameters:
pNode - the node

setPanel

public final void setPanel(javax.swing.JPanel pPanel)
Set the panel associated

Parameters:
pPanel - the panel

setId

public final void setId(java.lang.String pCode)
Set the code of the model

Parameters:
pCode - the new code

setNotes

public final void setNotes(java.lang.String pNotes)
Set the notes of the project

Parameters:
pNotes - some notes on the project

setCompany

public final void setCompany(java.lang.String pCompany)
Set the company to which the project depends on

Parameters:
pCompany - the author company

setProjectURL

public final void setProjectURL(java.lang.String pProjectURL)
Set the HTTP address of the project

Parameters:
pProjectURL - the project url

setPackageName

public final void setPackageName(java.lang.String pPackageName)
Set the name of the java package (Object-Model)

Parameters:
pPackageName - the package name

setBaseClass

public final void setBaseClass(java.lang.String pBaseClass)
Set the name of the base class (Object-Model)

Parameters:
pBaseClass - the base class

setBasePeer

public final void setBasePeer(java.lang.String pBasePeer)
Set the name of the base peer (Object-Model)

Parameters:
pBasePeer - the basePeer

setDefaultJavaNamingMethod

public final void setDefaultJavaNamingMethod(java.lang.String pMethod)
Determines how table or column names, from the name attribute of the table or column element, are converted to a Java class or method name respectively when creating the OM Java objects

Parameters:
pMethod - the default java naming method

setDefaultJavaType

public final void setDefaultJavaType(java.lang.String pDefaultJavaType)
Default type of columns in the database

Parameters:
pDefaultJavaType - the default java type

setFileForSave

public final void setFileForSave(java.lang.String pFileForSave)
Set the file path to save

Parameters:
pFileForSave - the file for save

setDbType

public final void setDbType(int pDbType)
Set the database type

Parameters:
pDbType - the db type

setCreateDatabaseUrl

public final void setCreateDatabaseUrl(java.lang.String pCreateDatabaseUrl)
Set the URL that Torque can use to create and drop databases

Parameters:
pCreateDatabaseUrl - the create database url

setBuildDatabaseUrl

public final void setBuildDatabaseUrl(java.lang.String pBuildDatabaseUrl)
Set The URL that will be used to access your database. Torque can use this to create your tables

Parameters:
pBuildDatabaseUrl - the build database url

setSchema

public final void setSchema(java.lang.String pSchema)
Set The schema that will be used to access your database.

Parameters:
pSchema - the schema

setDatabaseUser

public final void setDatabaseUser(java.lang.String pDatabaseUser)
Set the administrative username that has sufficient privileges to create and drop databases and tables

Parameters:
pDatabaseUser - the database user

setDatabasePassword

public final void setDatabasePassword(java.lang.String pDatabasePassword)
Set the administrative password for the supplied username

Parameters:
pDatabasePassword - the database password

setDatabaseDriver

public final void setDatabaseDriver(java.lang.String pDatabaseDriver)
Set the JDBC Driver to use for Test Connect

Parameters:
pDatabaseDriver - the database driver

setDatabaseHost

public final void setDatabaseHost(java.lang.String pDatabaseHost)
Set the hostname or IP address of your database server

Parameters:
pDatabaseHost - the database host

setDefaultIdMethod

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

Parameters:
pDefaultIdMethod - the default id method

setHeavyIndexing

public final void setHeavyIndexing(boolean pHeavyIndexing)
-

Parameters:
pHeavyIndexing - heavyindexing

setDescription

public final void setDescription(java.lang.String pDescription)
Set a description

Parameters:
pDescription - the description

setName

public final void setName(java.lang.String pName)
Set the name of the model

Parameters:
pName - the new name

getDynamicTreeNode

public final CustomTreeNode getDynamicTreeNode()
Get the associated node

Returns:
the node

getPanel

public final javax.swing.JPanel getPanel()
Get the panel associated

Returns:
the panel

getId

public final java.lang.String getId()
Get the code of the model

Returns:
the code

getNotes

public final java.lang.String getNotes()
Get the notes of the model

Returns:
the notes

getAuthorEmail

public final java.lang.String getAuthorEmail()
Get the email of the author of the model

Returns:
the author email

getCompany

public final java.lang.String getCompany()
Get the company to which the project depends on

Returns:
the company name

getProjectURL

public final java.lang.String getProjectURL()
Get the project url

Returns:
the project url

getPackageName

public final java.lang.String getPackageName()
Get the name of the java package (Object-Model)

Returns:
the package name

getBaseClass

public final java.lang.String getBaseClass()
Get the name of the base class (Object-Model)

Returns:
the base class

getBasePeer

public final java.lang.String getBasePeer()
Get the name of the base peer (Object-Model)

Returns:
the base peer

getDefaultJavaNamingMethod

public final java.lang.String getDefaultJavaNamingMethod()
Get the default java naming method

Returns:
the default java naming method

getDefaultJavaType

public final java.lang.String getDefaultJavaType()
Default type of columns in the database

Returns:
the default java type

getFileForSave

public final java.lang.String getFileForSave()
Get the file path to save

Returns:
the file for save

getDbType

public final int getDbType()
Get the database type

Returns:
db type

getCreateDatabaseUrl

public final java.lang.String getCreateDatabaseUrl()
Get the URL that Torque can use to create and drop databases

Returns:
the url

getBuildDatabaseUrl

public final java.lang.String getBuildDatabaseUrl()
Get The URL that will be used to access your database. Torque can use this to create your tables

Returns:
the url

getSchema

public final java.lang.String getSchema()
Get the schema that Torque can use to create and drop databases

Returns:
the database schema

getDatabaseUser

public final java.lang.String getDatabaseUser()
Get the administrative username that has sufficient privileges to create and drop databases and tables

Returns:
the database user

getDatabasePassword

public final java.lang.String getDatabasePassword()
Get the administrative password for the supplied username

Returns:
the database password

getDatabaseDriver

public final java.lang.String getDatabaseDriver()
Get the DatabseDriver to Test Connect

Returns:
the database driver

getDatabaseHost

public final java.lang.String getDatabaseHost()
Get the hostname or IP address of your database server

Returns:
the database host

getDefaultIdMethod

public final java.lang.String getDefaultIdMethod()
Get how will the primary keys be created

Returns:
the default id method

getHeavyIndexing

public final boolean getHeavyIndexing()
Heavy indexing

Returns:
use it

getDescription

public final java.lang.String getDescription()
Get the description

Returns:
the description

getName

public final java.lang.String getName()
Get the name of the model

Returns:
the name

getInheritanceLinks

public final java.util.Vector getInheritanceLinks()
Return the inheritance links of the model

Returns:
the links

getInheritanceLinkAt

public final InheritanceLink getInheritanceLinkAt(int i)
Return an inheritance links of the model

Parameters:
i - index
Returns:
the link

getClasses

public final java.util.Vector getClasses()
Return the classes of the model

Returns:
the classes

getLinks

public final java.util.Vector getLinks()
Return the inheritance links, constraints, halfAssociations of the model

Returns:
the links

getLabels

public final java.util.Vector getLabels()
Return the labels of the model

Returns:
the classes

isSaved

public final boolean isSaved()
The model is saved

Returns:
is saved

isVerified

public final boolean isVerified()
The model is verified

Returns:
is verified

setSaved

public final void setSaved(boolean b)
The model is saved

Parameters:
b - is saved

setVerified

public final void setVerified(boolean b)
The model is verified

Parameters:
b - is verified

getDevelopers

public final java.util.Vector getDevelopers()
Return a reference to all the developers

Returns:
the developers

setDependencies

public final void setDependencies(java.util.Vector vector)
Set a reference to a dependencies vector

Parameters:
vector - the dependencies

getRepositoryConnection

public final java.lang.String getRepositoryConnection()
Get the Repository Connection

Returns:
the repository connection

setRepositoryConnection

public final void setRepositoryConnection(java.lang.String string)
Set the repository connection

Parameters:
string - the repository connection

getIssueTrackingUrl

public final java.lang.String getIssueTrackingUrl()
Get the issue tracking url

Returns:
the issue tracking url

getRepositoryUrl

public final java.lang.String getRepositoryUrl()
Get the repository url

Returns:
the repository url

getSiteAdress

public final java.lang.String getSiteAdress()
Get the site adress

Returns:
the site adress

getSiteDirectory

public final java.lang.String getSiteDirectory()
Get the site directory

Returns:
the site directory

setIssueTrackingUrl

public final void setIssueTrackingUrl(java.lang.String string)
set the issue tracking url

Parameters:
string - the issue tracking url

setRepositoryUrl

public final void setRepositoryUrl(java.lang.String string)
Set the repository url

Parameters:
string - the repository url

setSiteAddress

public final void setSiteAddress(java.lang.String string)
Set the site adress

Parameters:
string - the site adress

setSiteDirectory

public final void setSiteDirectory(java.lang.String string)
Set the site directory

Parameters:
string - the site directory

getCurrentVersion

public final java.lang.String getCurrentVersion()
Get th the current version

Returns:
the current version

getDependencies

public final java.util.Vector getDependencies()
Get the dependencies

Returns:
the dependencies

getDistributionDirectory

public final java.lang.String getDistributionDirectory()
Get the distribution directory

Returns:
the distribution directory

getGroupId

public final java.lang.String getGroupId()
Get the group id

Returns:
the group id

setCurrentVersion

public final void setCurrentVersion(java.lang.String string)
Set the current version

Parameters:
string - the current version

setDistributionDirectory

public final void setDistributionDirectory(java.lang.String string)
Set the distribution directory

Parameters:
string - the distribution directory

setGroupId

public final void setGroupId(java.lang.String string)
Set the group id

Parameters:
string - the group id

getOrganizationLogo

public final java.lang.String getOrganizationLogo()
Get the organization logo

Returns:
the organization logo

getOrganizationName

public final java.lang.String getOrganizationName()
Get the organization name

Returns:
the organization name

getOrganizationUrl

public final java.lang.String getOrganizationUrl()
Get the organization url

Returns:
the organization url

setOrganizationLogo

public final void setOrganizationLogo(java.lang.String string)
The organization logo

Parameters:
string - the organization logo

setOrganizationName

public final void setOrganizationName(java.lang.String string)
Set the organization name

Parameters:
string - the organization name

setOrganizationUrl

public final void setOrganizationUrl(java.lang.String string)
Set the organization name

Parameters:
string - the organization name

getInceptionYear

public final java.lang.String getInceptionYear()
get the inception year

Returns:
the inception year

setInceptionYear

public final void setInceptionYear(java.lang.String string)
Set the inception year

Parameters:
string - the inception year

getLogo

public final java.lang.String getLogo()
Get the logo

Returns:
the logo

setLogo

public final void setLogo(java.lang.String string)
Set the logo

Parameters:
string - the logo

getLocalDirectory

public final java.lang.String getLocalDirectory()
Get the local directory

Returns:
the local directory

setLocalDirectory

public final void setLocalDirectory(java.lang.String string)
Set the local directory

Parameters:
string - the local direcory

getAlternateProjectId

public final java.lang.String getAlternateProjectId()
Get the alternate project id

Returns:
the alternate project id

getParentProject

public final java.lang.String getParentProject()
Get the parent project

Returns:
the parent project name

setAlternateProjectId

public final void setAlternateProjectId(java.lang.String string)
Set the alternate project id

Parameters:
string - alternate project id

setParentProject

public final void setParentProject(java.lang.String string)
Set the parent project id

Parameters:
string - the parent project id

getProjectProperties

public final java.util.Vector getProjectProperties()
Get the project properties

Returns:
the project properties

setProjectProperties

public final void setProjectProperties(java.util.Vector vector)
Set( the project properties

Parameters:
vector - the project properties

getShortDescription

public final java.lang.String getShortDescription()
Get the short description

Returns:
the short description

setShortDescription

public final void setShortDescription(java.lang.String string)
Set the short description

Parameters:
string - the short description

getBuild

public final org.apache.maven.project.Build getBuild()
Get the build

Returns:
the maven's build

setBuild

public final void setBuild(org.apache.maven.project.Build pBuild)
Set the build

Parameters:
pBuild - the build

getLicenses

public final java.util.Vector getLicenses()
Get the licenses

Returns:
the licenses

setLicenses

public final void setLicenses(java.util.Vector vector)
Set the licenses

Parameters:
vector - the licenses

getContributors

public final java.util.Vector getContributors()
Get the contributors

Returns:
the contributors

getMailingLists

public final java.util.Vector getMailingLists()
Get the mailing list

Returns:
the mailing lists

getSiteAddress

public final java.lang.String getSiteAddress()
Get the site adress

Returns:
the site adress

setContributors

public final void setContributors(java.util.Vector vector)
Set the contributors

Parameters:
vector - the contributors

setMailingLists

public final void setMailingLists(java.util.Vector vector)
Set the mailing lists

Parameters:
vector - the mailing lists

setDevelopers

public final void setDevelopers(java.util.Vector vector)
Set the developers

Parameters:
vector - the developers

getProperties

public final java.util.Vector getProperties()
Get the properties

Returns:
the properties

setProperties

public final void setProperties(java.util.Vector vector)
Set the properties

Parameters:
vector - the properties

getCountInstance

public static int getCountInstance()
Get a serial number

Returns:
instance count

getRedoLog

public final NORedoLog getRedoLog()
Get the redolog stack

Returns:
the redo log


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