| |
|
| java.lang.Object helma.objectmodel.db.DbSource
DbSource | public class DbSource (Code) | | This class describes a releational data source (URL, driver, user and password).
|
equals | public boolean equals(Object obj)(Code) | | Indicates whether some other object is "equal to" this one.
|
getDbMapping | protected DbMapping getDbMapping(String tablename)(Code) | | Look up a DbMapping instance for the given table name.
Parameters: tablename - the table name the matching DbMapping instance |
getDriverName | public String getDriverName()(Code) | | Return the class name of the JDBC driver
the class name of the JDBC driver |
getName | public String getName()(Code) | | Return the name of the db dource
the name of the db dource |
hashCode | public int hashCode()(Code) | | Returns a hash code value for the object.
|
isH2 | public boolean isH2()(Code) | | Check if this DbSource represents a H2 database
true if we're using a H2 JDBC driver |
isMySQL | public boolean isMySQL()(Code) | | Check if this DbSource represents a MySQL database
true if we're using a MySQL JDBC driver |
isOracle | public boolean isOracle()(Code) | | Check if this DbSource represents an Oracle database
true if we're using an oracle JDBC driver |
isPostgreSQL | public boolean isPostgreSQL()(Code) | | Check if this DbSource represents a PostgreSQL database
true if we're using a PostgreSQL JDBC driver |
registerDbMapping | protected void registerDbMapping(DbMapping dbmap)(Code) | | Register a dbmapping by its table name.
Parameters: dbmap - the DbMapping instance to register |
setDefaultProps | public static void setDefaultProps(ResourceProperties props)(Code) | | Set the default (server-wide) properties
Parameters: props - server default db.properties |
|
|
|