Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: 添加对sysbase的支持 change: jdbc遇到未知数据库时,fallback为mysql实现
- Loading branch information
Showing
5 changed files
with
48 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,10 @@ public enum DB { | |
* | ||
*/ | ||
GBASE, | ||
/** | ||
* | ||
*/ | ||
SYBASE, | ||
/** | ||
* 其他数据库 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.nutz.dao.impl.jdbc.sybase; | ||
|
||
import org.nutz.dao.DB; | ||
import org.nutz.dao.Dao; | ||
import org.nutz.dao.entity.Entity; | ||
import org.nutz.dao.impl.jdbc.AbstractJdbcExpert; | ||
import org.nutz.dao.jdbc.JdbcExpertConfigFile; | ||
import org.nutz.dao.sql.Pojo; | ||
import org.nutz.lang.Lang; | ||
|
||
public class SybaseIQJdbcExpert extends AbstractJdbcExpert { | ||
|
||
public SybaseIQJdbcExpert(JdbcExpertConfigFile conf) { | ||
super(conf); | ||
} | ||
|
||
public String getDatabaseType() { | ||
return DB.SYBASE.name(); | ||
} | ||
|
||
public boolean createEntity(Dao dao, Entity<?> en) { | ||
throw Lang.noImplement(); | ||
} | ||
|
||
public void formatQuery(Pojo pojo) { | ||
throw Lang.noImplement(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters