TurtleDB
A mini distributed database system
ca.uqac.dim.turtledb.Schema Class Reference
Inheritance diagram for ca.uqac.dim.turtledb.Schema:
Collaboration diagram for ca.uqac.dim.turtledb.Schema:

List of all members.

Public Member Functions

 Schema ()
 Schema (String s)
 Schema (Schema s)
 Schema (String tableName, String s)
void setTableName (String name)

Protected Member Functions

void createFromString (String s)

Detailed Description

A schema is an ordered list of attributes.

Author:
sylvain

Definition at line 27 of file Schema.java.


Constructor & Destructor Documentation

Empty constructor

Definition at line 38 of file Schema.java.

Constructor from a comma-separated string.

Parameters:
sThe schema

Definition at line 47 of file Schema.java.

Constructor by copy

Parameters:
sThe schema

Definition at line 63 of file Schema.java.

ca.uqac.dim.turtledb.Schema.Schema ( String  tableName,
String  s 
)

Constructor from a comma-separated string.

Parameters:
tableNameThe table's name
sThe schema

Definition at line 77 of file Schema.java.


Member Function Documentation

void ca.uqac.dim.turtledb.Schema.createFromString ( String  s) [protected]

Creates a schema from a comma-separated list of attributes. Each attribute must be formatted as [tablename.]attributename

Parameters:
sThe string containing the list

Definition at line 95 of file Schema.java.

Assigns a table name to the tuples in the schema

Parameters:
nameThe table's name

Definition at line 110 of file Schema.java.


The documentation for this class was generated from the following file: