Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

corelinux::SchemaStore Class Reference

SchemaStore is a controler for schema persist. More...

#include <SchemaStore.hpp>

Inheritance diagram for corelinux::SchemaStore:

corelinux::SchemaAbstractStore corelinux::Store corelinux::Aggregate corelinux::FrameworkEntity List of all members.

Public Methods

virtual MetaTypeCptr getType ( void ) const
 get the type. More...

VoidPtr operator new (size_t aSize)
 redefine the operator new[]
  • aSize.
More...


void operator delete (VoidPtr aVoidPtr)
 redefine the operator delete[]
  • aVoidPtr the pointer to delete.


 SchemaStore ( void )
 Default constructor not allowed.

 SchemaStore ( SchemaStoreCref )
 Copy constructor.

virtual ~SchemaStore ( void )
 Virtual Destructor.

bool operator== ( SchemaStoreCref ) const
 Equality operator.

SchemaStoreRef operator= ( SchemaStoreCref )
 Assignment operator.

SchemaDataDescriptor serialize ( void ) const
 Serializes description.

FrameworkStringCref getName ( void ) const
 Retrieves the schema name.

FrameworkStringCref getLocation ( void ) const
 Retrieves the schema location.

FrameworkStringCref getCollectionType ( void ) const
 Retrieve the collection used for schema.

UniversalIdentifierCref getSchemaClassId ( void ) const
 Retrieve the class used to instantiate the schema.

UniversalIdentifierCref getSchemaUid ( void ) const
 Retrieve the schema unique identifier.

SchemaPtr getSchema ( void )
 Retrieves the schema.

void initialize ( SchemaDataDescriptorCref )
 Initialize from DB.

void setName ( FrameworkStringCref )
 Sets the name.

void setLocation ( FrameworkStringCref )
 Set the location for schema.

void setCollectionType ( FrameworkStringCref )
 Sets the collection type name.

void setSchemaClassId ( UniversalIdentifierCref )
 Set the class id to use in factory.

void setSchemaUid ( UniversalIdentifierCref )
 Set the uid for the schema during create.

virtual void open ( CollectionPtr )
 open the store, using the arguments in collection. More...

virtual void close ( void )
 close the store.

virtual CollectionPtr read ( CollectionPtr )
 Read one or more objects from a store. More...

virtual void returnReadCollection ( CollectionPtr )
 Returns a collection created by virtue of calling a read operation. More...

virtual void write ( CollectionPtr )
 Write one or more objects to a store. More...

virtual void remove ( CollectionPtr )
 Remove one or more object from a store. More...


Static Public Methods

MetaTypeCptr getTypeDescriptor ( void )
 get the type descriptor. More...

 SchemaStorePtr ( void )
 1 a new instance of SchemaStore. More...

 void ( SchemaStorePtr aPointer )
 1 a point of SchemaStore


Protected Methods

virtual void writeProperties ( void )
virtual void writeConceptProperties ( CollectionPtr )
virtual void writeAttribute ( FrameworkEntityPtr )
virtual void writeEntity ( FrameworkEntityPtr )
virtual SchemaPtr createSchema ( void )
virtual void readProperties ( SchemaPtr, CounterCref )
virtual AttributePtr readConcept ( ConceptPtr, CollectionPtr, CounterCref )
virtual void readAttribute ( AttributePtr )
virtual FrameworkEntityPtr readEntity ( UniversalIdentifierCref, UniversalIdentifierCref )

Detailed Description

SchemaStore is a controler for schema persist.


Constructor & Destructor Documentation

corelinux::SchemaStore::SchemaStore ( void )
 

Default constructor not allowed.

corelinux::SchemaStore::SchemaStore ( SchemaStoreCref aType )
 

Copy constructor.

corelinux::SchemaStore::~SchemaStore ( void ) [virtual]
 

Virtual Destructor.


Member Function Documentation

corelinux::SchemaStore::SchemaStorePtr ( void ) [static]
 

1 a new instance of SchemaStore.

Returns:
a pointer to SchemaStore

void corelinux::SchemaStore::close ( void ) [virtual]
 

close the store.

Reimplemented from corelinux::Store.

SchemaPtr corelinux::SchemaStore::createSchema ( void ) [protected, virtual]
 

FrameworkStringCref corelinux::SchemaStore::getCollectionType ( void ) const
 

Retrieve the collection used for schema.

FrameworkStringCref corelinux::SchemaStore::getLocation ( void ) const
 

Retrieves the schema location.

FrameworkStringCref corelinux::SchemaStore::getName ( void ) const
 

Retrieves the schema name.

SchemaPtr corelinux::SchemaStore::getSchema ( void )
 

Retrieves the schema.

UniversalIdentifierCref corelinux::SchemaStore::getSchemaClassId ( void ) const
 

Retrieve the class used to instantiate the schema.

UniversalIdentifierCref corelinux::SchemaStore::getSchemaUid ( void ) const
 

Retrieve the schema unique identifier.

MetaTypeCptr corelinux::SchemaStore::getType ( void ) const [virtual]
 

get the type.

Returns:
a const pointer to the MetaType

Reimplemented from corelinux::SchemaAbstractStore.

MetaTypeCptr corelinux::SchemaStore::getTypeDescriptor ( void ) [static]
 

get the type descriptor.

Returns:
a const pointer to the MetaType

Reimplemented from corelinux::SchemaAbstractStore.

void corelinux::SchemaStore::initialize ( SchemaDataDescriptorCref aData )
 

Initialize from DB.

void corelinux::SchemaStore::open ( CollectionPtr aPtr ) [virtual]
 

open the store, using the arguments in collection.

Parameters:
Collection   of corelinux::Attributes, with required key/value pairs as: "Name" - Name of Store "Location" - Specific location details "Mode" - "Read | Write | ReadWrite"

Reimplemented from corelinux::Store.

void corelinux::SchemaStore::operator delete ( VoidPtr aVoidPtr )
 

redefine the operator delete[]

  • aVoidPtr the pointer to delete.

Reimplemented from corelinux::SchemaAbstractStore.

VoidPtr corelinux::SchemaStore::operator new ( size_t aSize )
 

redefine the operator new[]

  • aSize.

Returns:
a VoidPtr

Reimplemented from corelinux::SchemaAbstractStore.

SchemaStoreRef corelinux::SchemaStore::operator= ( SchemaStoreCref )
 

Assignment operator.

Reimplemented from corelinux::SchemaAbstractStore.

bool corelinux::SchemaStore::operator== ( SchemaStoreCref aSchemaStore ) const
 

Equality operator.

CollectionPtr corelinux::SchemaStore::read ( CollectionPtr aPtr ) [virtual]
 

Read one or more objects from a store.

Parameters:
Collection   pointer to identifications
Returns:
Collection of resolutions

Reimplemented from corelinux::Store.

void corelinux::SchemaStore::readAttribute ( AttributePtr aAtt ) [protected, virtual]
 

AttributePtr corelinux::SchemaStore::readConcept ( ConceptPtr aConcept,
CollectionPtr aCollection,
CounterCref aSize ) [protected, virtual]
 

FrameworkEntityPtr corelinux::SchemaStore::readEntity ( UniversalIdentifierCref aOid,
UniversalIdentifierCref aClassOid ) [protected, virtual]
 

void corelinux::SchemaStore::readProperties ( SchemaPtr aScm,
CounterCref aSize ) [protected, virtual]
 

void corelinux::SchemaStore::remove ( CollectionPtr aCollection ) [virtual]
 

Remove one or more object from a store.

Parameters:
Collection   pointer to identifications and objects

Reimplemented from corelinux::Store.

void corelinux::SchemaStore::returnReadCollection ( CollectionPtr aPtr ) [virtual]
 

Returns a collection created by virtue of calling a read operation.

Parameters:
Collection   pointer from Store::read

Reimplemented from corelinux::Store.

SchemaDataDescriptor corelinux::SchemaStore::serialize ( void ) const
 

Serializes description.

void corelinux::SchemaStore::setCollectionType ( FrameworkStringCref aRef )
 

Sets the collection type name.

void corelinux::SchemaStore::setLocation ( FrameworkStringCref aRef )
 

Set the location for schema.

void corelinux::SchemaStore::setName ( FrameworkStringCref aRef )
 

Sets the name.

void corelinux::SchemaStore::setSchemaClassId ( UniversalIdentifierCref aRef )
 

Set the class id to use in factory.

void corelinux::SchemaStore::setSchemaUid ( UniversalIdentifierCref aRef )
 

Set the uid for the schema during create.

corelinux::SchemaStore::void ( SchemaStorePtr aPointer ) [static]
 

1 a point of SchemaStore

void corelinux::SchemaStore::write ( CollectionPtr aCollection ) [virtual]
 

Write one or more objects to a store.

Parameters:
Collection   pointer to identifications and objects

Reimplemented from corelinux::Store.

void corelinux::SchemaStore::writeAttribute ( FrameworkEntityPtr aPtr ) [protected, virtual]
 

void corelinux::SchemaStore::writeConceptProperties ( CollectionPtr aPtr ) [protected, virtual]
 

void corelinux::SchemaStore::writeEntity ( FrameworkEntityPtr aPtr ) [protected, virtual]
 

void corelinux::SchemaStore::writeProperties ( void ) [protected, virtual]
 


The documentation for this class was generated from the following files:
This is the CoreLinux++ Framework reference manual
Provided by The CoreLinux Consortium