org.infolayer.connection.table
Class TableConnection
java.lang.Object
org.infolayer.model.Connection
org.infolayer.connection.table.TableConnection
- All Implemented Interfaces:
- ModificationListener
- public class TableConnection
- extends Connection
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableConnection
public TableConnection()
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