edu::tum::cs::srldb::Item Class Reference

Inheritance diagram for edu::tum::cs::srldb::Item:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addAttribsFromResultSet (ResultSet rs, boolean callNext) throws Exception
void addAttribute (String attribute, String value) throws DDException
void addAttributes (Map< String, String > attributes) throws DDException
Set< String > getAttributeNames ()
Map< String, String > getAttributes ()
String getAttributeValue (String attribName)
boolean getBoolean (String attribName)
Database getDatabase ()
double getDouble (String attrName)
int getGUID ()
int getInt (String attrName)
String getString (String attrName)
boolean hasAttribute (String attribName)
 Item (Database database)
void print ()

Protected Member Functions

void checkMutable () throws DDException

Protected Attributes

HashMap< String, String > attribs
Database database
int id
boolean immutable = false

Static Protected Attributes

static int GUID = 1

Detailed Description

Definition at line 18 of file Item.java.


Constructor & Destructor Documentation

edu::tum::cs::srldb::Item::Item ( Database  database  )  [inline]

Definition at line 26 of file Item.java.


Member Function Documentation

void edu::tum::cs::srldb::Item::addAttribsFromResultSet ( ResultSet  rs,
boolean  callNext 
) throws Exception [inline]

Definition at line 32 of file Item.java.

void edu::tum::cs::srldb::Item::addAttribute ( String  attribute,
String  value 
) throws DDException [inline]

adds an attribute to the object; if the attribute was previously defined, the old value is overwritten

Parameters:
attribute the name of the attribute
value the attribute value
Exceptions:
DDException 
DDException 

Definition at line 62 of file Item.java.

void edu::tum::cs::srldb::Item::addAttributes ( Map< String, String >  attributes  )  throws DDException [inline]

adds all the attributes given in the map

Parameters:
attributes a map of (key, value) pairs

Definition at line 77 of file Item.java.

void edu::tum::cs::srldb::Item::checkMutable (  )  throws DDException [inline, protected]

Definition at line 84 of file Item.java.

Set<String> edu::tum::cs::srldb::Item::getAttributeNames (  )  [inline]

Definition at line 121 of file Item.java.

Map<String,String> edu::tum::cs::srldb::Item::getAttributes (  )  [inline]

Definition at line 117 of file Item.java.

String edu::tum::cs::srldb::Item::getAttributeValue ( String  attribName  )  [inline]

Definition at line 125 of file Item.java.

boolean edu::tum::cs::srldb::Item::getBoolean ( String  attribName  )  [inline]

Definition at line 129 of file Item.java.

Database edu::tum::cs::srldb::Item::getDatabase (  )  [inline]

Definition at line 113 of file Item.java.

double edu::tum::cs::srldb::Item::getDouble ( String  attrName  )  [inline]

Definition at line 105 of file Item.java.

int edu::tum::cs::srldb::Item::getGUID (  )  [inline]

Definition at line 137 of file Item.java.

int edu::tum::cs::srldb::Item::getInt ( String  attrName  )  [inline]

Definition at line 101 of file Item.java.

String edu::tum::cs::srldb::Item::getString ( String  attrName  )  [inline]

Definition at line 109 of file Item.java.

boolean edu::tum::cs::srldb::Item::hasAttribute ( String  attribName  )  [inline]

Definition at line 133 of file Item.java.

void edu::tum::cs::srldb::Item::print (  )  [inline]

prints the item's attributes

Definition at line 92 of file Item.java.


Member Data Documentation

HashMap<String,String> edu::tum::cs::srldb::Item::attribs [protected]

Definition at line 19 of file Item.java.

Definition at line 22 of file Item.java.

int edu::tum::cs::srldb::Item::GUID = 1 [static, protected]

Definition at line 20 of file Item.java.

Definition at line 21 of file Item.java.

boolean edu::tum::cs::srldb::Item::immutable = false [protected]

whether this object is immutable (e.g. because it has been committed to a database)

Definition at line 24 of file Item.java.


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


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:46 2013