MetaDone
metadone.repository.kernel.Project Interface Reference
Inheritance diagram for metadone.repository.kernel.Project:
Collaboration diagram for metadone.repository.kernel.Project:

List of all members.

Public Member Functions

void bootstrap () throws BadFacet, BadPreCondition
String getName ()
void setName (String name) throws BadPreCondition
K_TypeInteger getTypeInteger ()
K_TypeFloat getTypeFloat ()
K_TypeString getTypeString ()
K_TypeBoolean getTypeBoolean ()
K_TypeChar getTypeChar ()
K_TypeOmega getTypeOmega ()
K_PropertyTypePi getPropertyTypePi ()
long getHighestOIDConsumedSoFar ()
abstract K_ObjectType getTypeType ()
boolean isPrimitiveType (K_ObjectType type)
void dispose ()
DataObject createDataProject () throws BadPreCondition
NN_subtype createSubtype (K_ObjectType sub, K_ObjectType sup) throws BadPreCondition
NN_typeof createTypeof (K_Object instance, K_ObjectType type) throws BadPreCondition
void deleteDataObject (DataObject o) throws BadPreCondition
void deleteSubtype (NN_subtype nn) throws BadPreCondition
void deleteTypeof (NN_typeof nn) throws BadPreCondition
void save ()
DataObject getDataObject (long id)
Iterator<?extends DataObjectgetDataObjects () throws UnsupportedOperationException
void delete ()
boolean checkConsistency ()

Static Public Attributes

static final String PROPERTY_PI = "#PropertyPi#"
static final String ELEMENTARY_TYPE = "#ElementaryType#"
static final String TYPE_OMEGA = "#TypeOmega#"
static final String TYPE_FLOAT = "#TypeFloat#"
static final String TYPE_STRING = "#TypeString#"
static final String TYPE_CHAR = "#TypeChar#"
static final String TYPE_BOOLEAN = "#TypeBoolean#"
static final String TYPE_INTEGER = "#TypeInteger#"

Detailed Description

The Project denotes a set of related dataobject. Two projects are disjoined. Every project is managed by a factory. The project acts as a proxy.

Author:
ven

Member Function Documentation

void metadone.repository.kernel.Project.bootstrap ( ) throws BadFacet, BadPreCondition

This method bootstrap the project: it initializes the seminal objects and properties to endows the project with the right semantics.

Implemented in metadone.repository.kernel.AbstractProject.

Referenced by metadone_bundle_metabusiness.TheBusinessManager.createWorkspace().

boolean metadone.repository.kernel.Project.checkConsistency ( )
Returns:
true iff the repository is concistent. Since all the objects are checked, this operation can be time consuming.

Implemented in metadone.repository.kernel.jpa2.ProjectJPA2.

DataObject metadone.repository.kernel.Project.createDataProject ( ) throws BadPreCondition
NN_typeof metadone.repository.kernel.Project.createTypeof ( K_Object  instance,
K_ObjectType  type 
) throws BadPreCondition
Parameters:
instance
type
Returns:
TODO: we could check the identifier.
Exceptions:
BadPreCondition

Implements metadone.repository.kernel.FactoryData.

Implemented in metadone.repository.kernel.jpa2.ProjectJPA2.

Referenced by metadone.repository.kernel.AbstractProject.bootstrap(), and metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel().

void metadone.repository.kernel.Project.delete ( )

This operaton deletes definitively the project. the project is no more usable afterwards.

Implemented in metadone.repository.kernel.jpa2.ProjectJPA2.

void metadone.repository.kernel.Project.deleteDataObject ( DataObject  o) throws BadPreCondition
void metadone.repository.kernel.Project.deleteSubtype ( NN_subtype  nn) throws BadPreCondition
void metadone.repository.kernel.Project.deleteTypeof ( NN_typeof  nn) throws BadPreCondition
void metadone.repository.kernel.Project.dispose ( )
Iterator<? extends DataObject> metadone.repository.kernel.Project.getDataObjects ( ) throws UnsupportedOperationException
Returns:
An iterable on the dataobjects stored in the project
Exceptions:
UnsupportedOperationException

Implemented in metadone.repository.kernel.jpa2.ProjectJPA2.

Referenced by metadone.client.actions.GenerateDotAction.test_projectiterator2().

long metadone.repository.kernel.Project.getHighestOIDConsumedSoFar ( )
Returns:
the highest OID that has been consumed in this project so far.

Implemented in metadone.repository.kernel.jpa2.ProjectJPA2.

String metadone.repository.kernel.Project.getName ( )
K_PropertyTypePi metadone.repository.kernel.Project.getPropertyTypePi ( )
abstract K_ObjectType metadone.repository.kernel.Project.getTypeType ( ) [pure virtual]
Returns:
The common supertype of all the elementary types.

Implemented in metadone.repository.kernel.jpa2.ProjectJPA2.

Referenced by metadone.metabusiness.impl.Workspace_impl.bootstrap_metametamodel().

boolean metadone.repository.kernel.Project.isPrimitiveType ( K_ObjectType  type)
Parameters:
typedenotes any object type
Returns:
true iff type is not null and denotes an elementary type (integer, string, etc).

Implemented in metadone.repository.kernel.AbstractProject.

Referenced by metadone.metabusiness.impl.MetaObject_impl.createMetaProperty().

void metadone.repository.kernel.Project.save ( )

This operation is equivalent to some commit-transaction;begin-transaction operations. This can causes a dump for a memory repository, to a commit for a database oriented repository, etc. The Project is still usable afterwards.

Implemented in metadone.repository.kernel.jpa2.ProjectJPA2.

Referenced by metadone.metabusiness.impl.Workspace_impl.save().

void metadone.repository.kernel.Project.setName ( String  name) throws BadPreCondition

Member Data Documentation


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations