org.infolayer.connection.table
Class TableConnection

java.lang.Object
  extended byorg.infolayer.model.Connection
      extended byorg.infolayer.connection.table.TableConnection
All Implemented Interfaces:
ModificationListener

public class TableConnection
extends Connection


Constructor Summary
TableConnection()
           
 
Method Summary
 void close()
           
 void createInstance(UmlObject object)
          Please note: Currently, it is assumed that the table creates an ID automatically!
 Column getColumn(UmlProperty part)
           
 UmlObject getInstance(java.lang.String id)
           
 UmlProperty getProperty(Column column)
           
 void init(UmlClass base, java.lang.String connector)
          This method is called automatically from the static create method
 OclCollection instances(UmlClass umlClass, boolean recurse)
           
 void loadInstance(UmlObject object, UmlProperty part)
           
 void modified(UmlObject umlObject)
          Mark the given instance as modified, so it will be written back to the underlying persistent storage
 void open()
          Opens a connection that has been created before.
 
Methods inherited from class org.infolayer.model.Connection
create, createUmlObject, generateId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableConnection

public TableConnection()
Method Detail

getColumn

public Column getColumn(UmlProperty part)

getProperty

public UmlProperty getProperty(Column column)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

init

public void init(UmlClass base,
                 java.lang.String connector)
Description copied from class: Connection
This method is called automatically from the static create method

Specified by:
init in class Connection

open

public void open()
Description copied from class: Connection
Opens a connection that has been created before. Separation of creation and open allows the holder to store a reference before the connection is actually accessed since the access may result in further indirect access to the connection

Specified by:
open in class Connection

createInstance

public void createInstance(UmlObject object)
Please note: Currently, it is assumed that the table creates an ID automatically!


getInstance

public UmlObject getInstance(java.lang.String id)

instances

public OclCollection instances(UmlClass umlClass,
                               boolean recurse)

modified

public void modified(UmlObject umlObject)
Description copied from interface: ModificationListener
Mark the given instance as modified, so it will be written back to the underlying persistent storage


loadInstance

public void loadInstance(UmlObject object,
                         UmlProperty part)

close

public void close()
Specified by:
close in class Connection