de.uni_bremen.st.rcf.persistence.derby
Class RelationBinding

java.lang.Object
  extended by de.uni_bremen.st.rcf.persistence.AbstractRelationBinding
      extended by de.uni_bremen.st.rcf.persistence.derby.RelationBinding

public class RelationBinding
extends AbstractRelationBinding


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

Constructor Detail

RelationBinding

public RelationBinding(AbstractRCFBinding rcf,
                       String name)
Method Detail

getRCF

public RCFBinding getRCF()

createEntry

public AbstractEntryBinding createEntry()
Description copied from class: AbstractRelationBinding
Creates a new entry at the end of the relation with all attribute values unset. Returns the unique id of the new entry.

Specified by:
createEntry in class AbstractRelationBinding
Returns:
the id of the entry created

deleteEntry

public void deleteEntry(int id)
Description copied from class: AbstractRelationBinding
Deletes the entry with the id id.

Specified by:
deleteEntry in class AbstractRelationBinding
Parameters:
id - the id of the entry that will be deleted

getAttribute

public AbstractAttributeBinding getAttribute(String name)
Specified by:
getAttribute in class AbstractRelationBinding

addAttribute

public AbstractAttributeBinding addAttribute(String name,
                                             AttributeType type,
                                             boolean isList,
                                             boolean isEnum,
                                             AbstractRelationBinding referencedRelation,
                                             String... enumValues)
Specified by:
addAttribute in class AbstractRelationBinding

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getNameById

public static String getNameById(RCFBinding rcf,
                                 int id)

getAttributes

public List<AbstractAttributeBinding> getAttributes()
Specified by:
getAttributes in class AbstractRelationBinding

hasAttribute

public boolean hasAttribute(String name)
Specified by:
hasAttribute in class AbstractRelationBinding

size

public int size()
Specified by:
size in class AbstractRelationBinding

iterator

public AbstractRelationIteratorBinding iterator()
Specified by:
iterator in class AbstractRelationBinding

getEntry

public AbstractEntryBinding getEntry(int id)
Description copied from class: AbstractRelationBinding
Get the binding for the entry with the given id

Specified by:
getEntry in class AbstractRelationBinding
Parameters:
id - the id of the entry
Returns:
the binding for the entry


Copyright © 2011. All Rights Reserved.