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

java.lang.Object
  extended by de.uni_bremen.st.rcf.persistence.AbstractRCFBinding
      extended by de.uni_bremen.st.rcf.persistence.derby.RCFBinding

public class RCFBinding
extends AbstractRCFBinding


Constructor Summary
RCFBinding(Connection connection, File rcfFile)
           
 
Method Summary
 AbstractRelationBinding addRelation(String name)
           
 void close()
           
 Connection getConnection()
           
 File getFile()
          Get the RCF file.
 File getRcfFile()
           
 AbstractRelationBinding getRelation(String name)
           
 List<AbstractRelationBinding> getRelations()
           
 boolean hasRelation(String name)
           
 void save()
           
 void saveAs(File f)
           
 void saveAs(File directory, boolean replace)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCFBinding

public RCFBinding(Connection connection,
                  File rcfFile)
Method Detail

save

public void save()
Specified by:
save in class AbstractRCFBinding

getRcfFile

public File getRcfFile()

saveAs

public void saveAs(File directory,
                   boolean replace)
Parameters:
directory -
replace - if true and directory exists it will be replaced. If false and directory exists, an Exception will be thrown.

getRelation

public AbstractRelationBinding getRelation(String name)
Specified by:
getRelation in class AbstractRCFBinding

getRelations

public List<AbstractRelationBinding> getRelations()
Specified by:
getRelations in class AbstractRCFBinding

getConnection

public Connection getConnection()

addRelation

public AbstractRelationBinding addRelation(String name)
Specified by:
addRelation in class AbstractRCFBinding

hasRelation

public boolean hasRelation(String name)
Specified by:
hasRelation in class AbstractRCFBinding

saveAs

public void saveAs(File f)
Specified by:
saveAs in class AbstractRCFBinding

close

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

getFile

public File getFile()
Description copied from class: AbstractRCFBinding
Get the RCF file.

Specified by:
getFile in class AbstractRCFBinding
Returns:
the file


Copyright © 2011. All Rights Reserved.