forked from fanruan/finekit
zjz1993
5 years ago
17 changed files with 206 additions and 4 deletions
@ -0,0 +1,16 @@
|
||||
package com.fanruan.api.data; |
||||
import com.fr.data.impl.Connection; |
||||
import com.fr.file.DatasourceManager; |
||||
|
||||
public class ConnectionKit { |
||||
/** |
||||
* 获取指定名字和指定类型的数据连接 |
||||
* @param name 数据连接的名字 |
||||
* @param type 类型 |
||||
* @return 数据连接 |
||||
* |
||||
*/ |
||||
public <T extends Connection> T getConnection(String name, Class<? extends Connection> type) { |
||||
return DatasourceManager.getInstance().getConnection(name, type); |
||||
} |
||||
} |
@ -0,0 +1,26 @@
|
||||
package com.fanruan.api.database; |
||||
import com.fr.data.core.DataCoreXmlUtils; |
||||
import com.fr.data.impl.Connection; |
||||
import com.fr.stable.xml.XMLPrintWriter; |
||||
import com.fr.stable.xml.XMLableReader; |
||||
import com.fr.file.DatasourceManager; |
||||
|
||||
public class DatabaseKit { |
||||
/** |
||||
* 读取connection对象 |
||||
* @param reader XMLableReader对象 |
||||
* @return Connection对象 |
||||
* |
||||
*/ |
||||
public static Connection readXMLConnectionMap(XMLableReader reader) { |
||||
return DataCoreXmlUtils.readXMLConnectionMap(reader); |
||||
} |
||||
/** |
||||
* 写connection对象 |
||||
* @param writer XMLPrintWriter对象 |
||||
* @param connection Connection对象 |
||||
*/ |
||||
public static void writeXMLConnection(XMLPrintWriter writer, Connection connection) { |
||||
DataCoreXmlUtils.writeXMLConnection(writer, connection); |
||||
} |
||||
} |
@ -0,0 +1,4 @@
|
||||
package com.fanruan.api.database.nameDatabase; |
||||
|
||||
public class NameDatabaseConnection extends com.fr.data.impl.NameDatabaseConnection{ |
||||
} |
@ -0,0 +1,4 @@
|
||||
package com.fanruan.api.design.ui.component; |
||||
|
||||
public class UIDescriptionTextArea extends com.fr.design.gui.itextarea.DescriptionTextArea{ |
||||
} |
@ -0,0 +1,17 @@
|
||||
package com.fanruan.api.design.ui.component; |
||||
|
||||
import com.fr.design.gui.itoolbar.UIToolBarUI; |
||||
|
||||
public class UIToolbar extends com.fr.design.gui.itoolbar.UIToolbar{ |
||||
public UIToolbar(){ |
||||
|
||||
} |
||||
|
||||
public UIToolbar(int align) { |
||||
super(align); |
||||
} |
||||
|
||||
public UIToolbar(int align, UIToolBarUI uiToolBarUI) { |
||||
super(align, uiToolBarUI); |
||||
} |
||||
} |
@ -0,0 +1,4 @@
|
||||
package com.fanruan.api.design.ui.container; |
||||
|
||||
public abstract class BasicBeanPane extends com.fr.design.beans.BasicBeanPane{ |
||||
} |
@ -0,0 +1,36 @@
|
||||
package com.fanruan.api.design.ui.container; |
||||
|
||||
import com.fanruan.api.design.ui.container.BasicPane; |
||||
|
||||
import java.awt.*; |
||||
|
||||
public class BasicDialog extends com.fr.design.dialog.BasicDialog{ |
||||
public BasicDialog(Dialog parent){ |
||||
super(parent); |
||||
} |
||||
|
||||
public BasicDialog(Dialog parent, BasicPane pane){ |
||||
super(parent, pane); |
||||
} |
||||
|
||||
public BasicDialog(Dialog parent, BasicPane pane, boolean isNeedButton){ |
||||
super(parent, pane, isNeedButton); |
||||
} |
||||
|
||||
public BasicDialog(Frame parent){ |
||||
super(parent); |
||||
} |
||||
|
||||
public BasicDialog(Frame parent, BasicPane pane){ |
||||
super(parent, pane); |
||||
} |
||||
|
||||
public BasicDialog(Frame parent, BasicPane pane, boolean isNedButtonPane){ |
||||
super(parent, pane, isNedButtonPane); |
||||
} |
||||
|
||||
@Override |
||||
public void checkValid(){ |
||||
|
||||
} |
||||
} |
@ -0,0 +1,9 @@
|
||||
package com.fanruan.api.design.ui.container; |
||||
|
||||
import com.fr.data.impl.Connection; |
||||
|
||||
public class ConnectionComboBoxPanel extends com.fr.design.data.datapane.connect.ConnectionComboBoxPanel{ |
||||
public ConnectionComboBoxPanel(Class<? extends Connection> cls) { |
||||
super(cls); |
||||
} |
||||
} |
@ -0,0 +1,7 @@
|
||||
package com.fanruan.api.design.ui.container; |
||||
|
||||
|
||||
import javax.swing.*; |
||||
public abstract class DatabaseConnectionPane extends com.fr.design.data.datapane.connect.DatabaseConnectionPane{ |
||||
|
||||
} |
@ -0,0 +1,8 @@
|
||||
package com.fanruan.api.design.ui.container; |
||||
import com.fr.design.layout.FRGUIPaneFactory; |
||||
|
||||
public class DialogActionAdapter extends com.fr.design.dialog.DialogActionAdapter{ |
||||
public DialogActionAdapter(){ |
||||
|
||||
} |
||||
} |
@ -0,0 +1,11 @@
|
||||
package com.fanruan.api.design.ui.container; |
||||
|
||||
public class SQLEditPane extends com.fr.design.data.datapane.sqlpane.SQLEditPane{ |
||||
public SQLEditPane(){ |
||||
|
||||
} |
||||
|
||||
public SQLEditPane(boolean requestDroptarget) { |
||||
super(requestDroptarget); |
||||
} |
||||
} |
@ -0,0 +1,5 @@
|
||||
package com.fanruan.api.design.ui.editor; |
||||
|
||||
public abstract class Editor extends com.fr.design.editor.editor.Editor{ |
||||
|
||||
} |
@ -0,0 +1,4 @@
|
||||
package com.fanruan.api.redis; |
||||
|
||||
public class RedisKit { |
||||
} |
@ -0,0 +1,4 @@
|
||||
package com.fanruan.api.redis.pool; |
||||
|
||||
public class JedisPool extends com.fr.third.redis.clients.jedis.JedisPool{ |
||||
} |
@ -0,0 +1,5 @@
|
||||
package com.fanruan.api.redis.pool; |
||||
import com.fr.ssh.jsch.Session; |
||||
|
||||
public class JedisPoolConfig extends com.fr.third.redis.clients.jedis.JedisPoolConfig{ |
||||
} |
Loading…
Reference in new issue