biz.hammurapi.sql
Interface Relationship

All Known Implementing Classes:
SimpleRelationship

public interface Relationship

Author:
Pavel Vlasov

Method Summary
 void add(DatabaseObject item)
           
 java.lang.Class getItemType()
           
 boolean isLazy()
           
 boolean isModified()
           
 void load(SQLProcessor processor, java.util.Collection receiver)
           
 void remove(IDatabaseObject item)
           
 void setMaster(java.util.Collection master)
          Callback method to propagate updates
 void store(SQLProcessor processor)
           
 void update(SQLProcessor processor, IDatabaseObject subItem)
          Updates modified relationship items.
 

Method Detail

load

void load(SQLProcessor processor,
          java.util.Collection receiver)
          throws java.sql.SQLException
Throws:
java.sql.SQLException

store

void store(SQLProcessor processor)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

add

void add(DatabaseObject item)

remove

void remove(IDatabaseObject item)

isLazy

boolean isLazy()

isModified

boolean isModified()

update

void update(SQLProcessor processor,
            IDatabaseObject subItem)
            throws java.sql.SQLException
Updates modified relationship items.

Parameters:
processor -
subItem -
Throws:
java.sql.SQLException

getItemType

java.lang.Class getItemType()

setMaster

void setMaster(java.util.Collection master)
Callback method to propagate updates

Parameters:
master -


Copyright © 2003 Hammurapi Group. All Rights Reserved.