2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.database
.types
;
12 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
20 public class SybaseDatabaseType
extends DatabaseTypeBase
{
23 protected String typeName
= "Sybase";
25 protected String classString
= "com.sybase.jdbc2.jdbc.SybDriver";
27 protected String urlString
= "jdbc:sybase:Tds:";
29 private int defaultPort
= 4100;
31 private String hibernateDialect
= "SybaseDialect";
35 public String
getConnectionString(ICdmDataSource ds
, int port
){
36 return urlString
+ ds
.getServer()+ ":" + port
+ "/" + ds
.getDatabase();
39 public SybaseDatabaseType() {
40 init (typeName
, classString
, urlString
, defaultPort
, hibernateDialect
);