|
|
@ -30,6 +30,7 @@ import com.fr.stable.core.PropertyChangeAdapter; |
|
|
|
import com.fr.transaction.Configurations; |
|
|
|
import com.fr.transaction.Configurations; |
|
|
|
import com.fr.transaction.WorkerFacade; |
|
|
|
import com.fr.transaction.WorkerFacade; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
import com.fr.workspace.server.database.DataBaseTypeOperator; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.Window; |
|
|
|
import java.awt.Window; |
|
|
|
import java.sql.SQLException; |
|
|
|
import java.sql.SQLException; |
|
|
@ -132,8 +133,8 @@ public class ConnectionListPane extends JListControlPane implements ConnectionSh |
|
|
|
DatabaseConnectionPane.JNDI.class |
|
|
|
DatabaseConnectionPane.JNDI.class |
|
|
|
); |
|
|
|
); |
|
|
|
NameableCreator[] creators; |
|
|
|
NameableCreator[] creators; |
|
|
|
if (FRCoreContext.getLicense().limitDatabaseType()) { |
|
|
|
if (WorkContext.getCurrent().get(DataBaseTypeOperator.class).limitDatabaseType()) { |
|
|
|
// 不支持JDNI,屏蔽接口
|
|
|
|
// 不支持JNDI,屏蔽接口
|
|
|
|
creators = new NameableCreator[]{jdbc}; |
|
|
|
creators = new NameableCreator[]{jdbc}; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
creators = new NameableCreator[]{jdbc, jndi}; |
|
|
|
creators = new NameableCreator[]{jdbc, jndi}; |
|
|
|