de.uni_bremen.st.rcf.persistence
Class AbstractRelationBinding

java.lang.Object
  extended by de.uni_bremen.st.rcf.persistence.AbstractRelationBinding
Direct Known Subclasses:
RelationBinding, RelationBinding

public abstract class AbstractRelationBinding
extends Object


Constructor Summary
AbstractRelationBinding(AbstractRCFBinding rcf, String name)
           
 
Method Summary
abstract  AbstractAttributeBinding addAttribute(String name, AttributeType type, boolean isList, boolean isEnum, AbstractRelationBinding referencedRelation, String... enumValues)
           
abstract  AbstractEntryBinding createEntry()
          Creates a new entry at the end of the relation with all attribute values unset.
abstract  void deleteEntry(int id)
          Deletes the entry with the id id.
abstract  AbstractAttributeBinding getAttribute(String name)
           
abstract  List<AbstractAttributeBinding> getAttributes()
           
abstract  AbstractEntryBinding getEntry(int id)
          Get the binding for the entry with the given id
 String getName()
           
 AbstractRCFBinding getRcf()
           
abstract  boolean hasAttribute(String name)
           
abstract  AbstractRelationIteratorBinding iterator()
           
abstract  int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRelationBinding

public AbstractRelationBinding(AbstractRCFBinding rcf,
                               String name)
Method Detail

getName

public String getName()

getEntry

public abstract AbstractEntryBinding getEntry(int id)
Get the binding for the entry with the given id

Parameters:
id - the id of the entry
Returns:
the binding for the entry

createEntry

public abstract AbstractEntryBinding createEntry()
Creates a new entry at the end of the relation with all attribute values unset. Returns the unique id of the new entry.

Returns:
the id of the entry created

deleteEntry

public abstract void deleteEntry(int id)
Deletes the entry with the id id.

Parameters:
id - the id of the entry that will be deleted

getAttribute

public abstract AbstractAttributeBinding getAttribute(String name)

getAttributes

public abstract List<AbstractAttributeBinding> getAttributes()

hasAttribute

public abstract boolean hasAttribute(String name)

addAttribute

public abstract AbstractAttributeBinding addAttribute(String name,
                                                      AttributeType type,
                                                      boolean isList,
                                                      boolean isEnum,
                                                      AbstractRelationBinding referencedRelation,
                                                      String... enumValues)

size

public abstract int size()

getRcf

public AbstractRCFBinding getRcf()

iterator

public abstract AbstractRelationIteratorBinding iterator()


Copyright © 2011. All Rights Reserved.