com.rapidminer.tools.jdbc.connection
Class ConnectionEntry

java.lang.Object
  extended by com.rapidminer.tools.jdbc.connection.ConnectionEntry
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
AccessConnectionEntry, FieldConnectionEntry

public abstract class ConnectionEntry
extends java.lang.Object
implements java.lang.Comparable

A database connection, offered by the DatabaseConnectionService. Each entry stores the needed informations like data base type, it's sql properties, as well as user name and password.

Author:
Tobias Malbrecht, Sebastian Land

Field Summary
static java.util.Comparator<ConnectionEntry> COMPARATOR
           
protected  java.lang.String name
           
protected  char[] password
           
protected  JDBCProperties properties
           
protected  java.lang.String user
           
 
Constructor Summary
ConnectionEntry()
           
ConnectionEntry(java.lang.String name, JDBCProperties properties)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String getName()
           
 char[] getPassword()
           
 JDBCProperties getProperties()
           
abstract  java.lang.String getURL()
           
 java.lang.String getUser()
           
 boolean isDynamic()
          This method returns if this entry has been generated by program code and must not be stored in file on program termination.
 boolean isReadOnly()
          This method returns if the connection entry is changeable by user.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPARATOR

public static java.util.Comparator<ConnectionEntry> COMPARATOR

name

protected java.lang.String name

properties

protected JDBCProperties properties

user

protected java.lang.String user

password

protected char[] password
Constructor Detail

ConnectionEntry

public ConnectionEntry()

ConnectionEntry

public ConnectionEntry(java.lang.String name,
                       JDBCProperties properties)
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

getName

public java.lang.String getName()

getProperties

public JDBCProperties getProperties()

getUser

public java.lang.String getUser()

getPassword

public char[] getPassword()

getURL

public abstract java.lang.String getURL()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isReadOnly

public boolean isReadOnly()
This method returns if the connection entry is changeable by user.


isDynamic

public boolean isDynamic()
This method returns if this entry has been generated by program code and must not be stored in file on program termination. The code will readd it on next program start.



Copyright © 2001-2009 by Rapid-I