com.rapidminer.repository.db
Class DBConnectionConverterFolder

java.lang.Object
  extended by com.rapidminer.repository.db.DBConnectionConverterFolder
All Implemented Interfaces:
Entry, Folder

public class DBConnectionConverterFolder
extends java.lang.Object
implements Folder

Represents all tables in a single ConnectionEntry converted to IOObjects using a particular DBConnectionToIOObjectConverter.

Author:
Simon Fischer

Field Summary
 
Fields inherited from interface com.rapidminer.repository.Folder
TYPE_NAME
 
Constructor Summary
DBConnectionConverterFolder(DBRepository dbRepository, DBConnectionFolder parent, ConnectionEntry dbConEntry, DBConnectionToIOObjectConverter converter, java.util.Map<java.lang.String,java.util.List<ColumnIdentifier>> allTableMetaData)
           
 
Method Summary
 boolean containsEntry(java.lang.String name)
           
 BlobEntry createBlobEntry(java.lang.String name)
           
 Folder createFolder(java.lang.String name)
           
 IOObjectEntry createIOObjectEntry(java.lang.String name, IOObject ioobject, Operator callingOperator, ProgressListener progressListener)
           
 ProcessEntry createProcessEntry(java.lang.String name, java.lang.String processXML)
           
 void delete()
          Deletes the entry and its contents from the repository.
protected  ConnectionEntry getConnectionEntry()
           
 Folder getContainingFolder()
          Returns the folder containing this entry.
 java.util.Collection<javax.swing.Action> getCustomActions()
          Returns custom actions to be displayed in this entry's popup menu.
 java.util.List<DataEntry> getDataEntries()
           
 java.lang.String getDescription()
          Returns a human readable description.
 RepositoryLocation getLocation()
          A location, that can be used, e.g. as a parameter in the RepositorySource or which can be used to locate the entry using RepositoryManager#resolve(String).
 java.lang.String getName()
          Returns the name, the last part of the location.
 java.lang.String getOwner()
          Returns the user name of the owner.
 java.util.List<Folder> getSubfolders()
           
 java.lang.String getType()
          Returns a string describing the type: "folder", "data", "blob", or "process".
 boolean isReadOnly()
          Returns true if this entry cannot be written to.
 boolean move(Folder newParent)
          Needs to be implemented only for folders in the same repository.
 void refresh()
           
 boolean rename(java.lang.String newName)
          Changes the name of the entry.
 boolean willBlock()
          Subclasses can use this method to signal whether getting information from this entry will block the current thread, e.g. because information must be fetched over the network.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBConnectionConverterFolder

public DBConnectionConverterFolder(DBRepository dbRepository,
                                   DBConnectionFolder parent,
                                   ConnectionEntry dbConEntry,
                                   DBConnectionToIOObjectConverter converter,
                                   java.util.Map<java.lang.String,java.util.List<ColumnIdentifier>> allTableMetaData)
                            throws RepositoryException
Throws:
RepositoryException
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Entry
Returns the name, the last part of the location.

Specified by:
getName in interface Entry

getType

public java.lang.String getType()
Description copied from interface: Entry
Returns a string describing the type: "folder", "data", "blob", or "process".

Specified by:
getType in interface Entry

getOwner

public java.lang.String getOwner()
Description copied from interface: Entry
Returns the user name of the owner.

Specified by:
getOwner in interface Entry

getDescription

public java.lang.String getDescription()
Description copied from interface: Entry
Returns a human readable description.

Specified by:
getDescription in interface Entry

isReadOnly

public boolean isReadOnly()
Description copied from interface: Entry
Returns true if this entry cannot be written to.

Specified by:
isReadOnly in interface Entry

rename

public boolean rename(java.lang.String newName)
               throws RepositoryException
Description copied from interface: Entry
Changes the name of the entry. The entry stays in the same folder.

Specified by:
rename in interface Entry
Throws:
RepositoryException

move

public boolean move(Folder newParent)
             throws RepositoryException
Description copied from interface: Entry
Needs to be implemented only for folders in the same repository. Moving between different repositories is implemented by RepositoryManager.move(RepositoryLocation, Folder, com.rapidminer.tools.ProgressListener) using a sequence of copy and delete.

Specified by:
move in interface Entry
Throws:
RepositoryException

getContainingFolder

public Folder getContainingFolder()
Description copied from interface: Entry
Returns the folder containing this entry.

Specified by:
getContainingFolder in interface Entry

willBlock

public boolean willBlock()
Description copied from interface: Entry
Subclasses can use this method to signal whether getting information from this entry will block the current thread, e.g. because information must be fetched over the network.

Specified by:
willBlock in interface Entry

getLocation

public RepositoryLocation getLocation()
Description copied from interface: Entry
A location, that can be used, e.g. as a parameter in the RepositorySource or which can be used to locate the entry using RepositoryManager#resolve(String).

Specified by:
getLocation in interface Entry

delete

public void delete()
            throws RepositoryException
Description copied from interface: Entry
Deletes the entry and its contents from the repository.

Specified by:
delete in interface Entry
Throws:
RepositoryException

getCustomActions

public java.util.Collection<javax.swing.Action> getCustomActions()
Description copied from interface: Entry
Returns custom actions to be displayed in this entry's popup menu.

Specified by:
getCustomActions in interface Entry

getDataEntries

public java.util.List<DataEntry> getDataEntries()
                                         throws RepositoryException
Specified by:
getDataEntries in interface Folder
Throws:
RepositoryException

getSubfolders

public java.util.List<Folder> getSubfolders()
                                     throws RepositoryException
Specified by:
getSubfolders in interface Folder
Throws:
RepositoryException

refresh

public void refresh()
             throws RepositoryException
Specified by:
refresh in interface Folder
Throws:
RepositoryException

containsEntry

public boolean containsEntry(java.lang.String name)
                      throws RepositoryException
Specified by:
containsEntry in interface Folder
Throws:
RepositoryException

createFolder

public Folder createFolder(java.lang.String name)
                    throws RepositoryException
Specified by:
createFolder in interface Folder
Throws:
RepositoryException

createIOObjectEntry

public IOObjectEntry createIOObjectEntry(java.lang.String name,
                                         IOObject ioobject,
                                         Operator callingOperator,
                                         ProgressListener progressListener)
                                  throws RepositoryException
Specified by:
createIOObjectEntry in interface Folder
Throws:
RepositoryException

createProcessEntry

public ProcessEntry createProcessEntry(java.lang.String name,
                                       java.lang.String processXML)
                                throws RepositoryException
Specified by:
createProcessEntry in interface Folder
Throws:
RepositoryException

createBlobEntry

public BlobEntry createBlobEntry(java.lang.String name)
                          throws RepositoryException
Specified by:
createBlobEntry in interface Folder
Throws:
RepositoryException

getConnectionEntry

protected ConnectionEntry getConnectionEntry()


Copyright © 2001-2009 by Rapid-I