de.innovationgate.wga.common
public class DbType extends java.lang.Object implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
static int |
GENTYPE_CONTENT
General type representing content databases
|
static int |
GENTYPE_LOG
General type representing application logs
|
static int |
GENTYPE_PERSO
General type representing personalisation databases
|
Constructor and Description |
---|
DbType(int genType,
java.lang.String implClass,
java.lang.String title)
Constructor
|
DbType(int genType,
java.lang.String implClass,
java.lang.String title,
boolean authConfigurable,
boolean fullContentStore)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object arg0) |
static void |
feedSwingCombo(int genType,
javax.swing.JComboBox cbo)
Feeds a swing combo box with all database types of a general type
|
static void |
feedSwingList(int genType,
javax.swing.JList list)
Feeds a swing list with all database types of a general type
|
static java.util.List |
getAllTypes(int genType)
Returns all registered database types for a given general type
|
static DbType |
getByImplClass(int genType,
java.lang.String implClass)
Returns the db type that matches an implementation class
|
int |
getGeneralType()
Returns the type of database as constant GENTYPE_....
|
java.lang.String |
getImplClass()
Returns the implClass.
|
java.lang.String |
getTitle()
Returns the title.
|
boolean |
isAuthConfigurable()
Returns if the authentication of this database type is configurable
|
boolean |
isFullContentStore()
Returns if the database is a full featured content store
|
java.lang.String |
toString() |
public static final int GENTYPE_CONTENT
public static final int GENTYPE_PERSO
public static final int GENTYPE_LOG
public DbType(int genType, java.lang.String implClass, java.lang.String title, boolean authConfigurable, boolean fullContentStore)
genType
- The general type, a constant GENTYPE_...implClass
- The implementation classtitle
- The titleauthConfigurable
- true if the authentication on this type is configurablefullContentStore
- true if the type is a full featured content storepublic DbType(int genType, java.lang.String implClass, java.lang.String title)
genType
- The general type, a constant GENTYPE_...implClass
- The implementation classtitle
- The titlepublic static DbType getByImplClass(int genType, java.lang.String implClass)
genType
- The general type, a constant GENTYPE_...implClass
- The implementation classpublic static void feedSwingList(int genType, javax.swing.JList list)
genType
- The general type, a constant GENTYPE_...list
- The list to fillpublic static void feedSwingCombo(int genType, javax.swing.JComboBox cbo)
genType
- The general type, a constant GENTYPE_...cbo
- The combo box to fillpublic static java.util.List getAllTypes(int genType)
genType
- The general type, a constant GENTYPE_...public java.lang.String getImplClass()
public java.lang.String getTitle()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean isAuthConfigurable()
public int getGeneralType()
public boolean isFullContentStore()
public int compareTo(java.lang.Object arg0)
compareTo
in interface java.lang.Comparable