You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.2 KiB
67 lines
1.2 KiB
package de.memtext.db.dataexchange; |
|
|
|
/** |
|
* Insert the type's description here. |
|
* Creation date: (29.11.2002 16:53:06) |
|
* @author: |
|
*/ |
|
public class MyRequest implements java.io.Serializable { |
|
static final long serialVersionUID = -2L; |
|
|
|
static final int NORMAL = 1; |
|
|
|
static final int EXPECT_ONE_UPDATE = 2; |
|
|
|
private String sql; |
|
|
|
private String name; |
|
|
|
private Object[] params; |
|
|
|
private int type; |
|
|
|
public MyRequest(String name, String sql, Object[] params) { |
|
this(name, sql, params, NORMAL); |
|
} |
|
|
|
public MyRequest(String name, String sql, Object[] params, int type) { |
|
setName(name); |
|
setSql(sql); |
|
setParams(params); |
|
setType(type); |
|
} |
|
|
|
public int getType() { |
|
return type; |
|
} |
|
|
|
public void setType(int type) { |
|
this.type = type; |
|
} |
|
|
|
public String getName() { |
|
return name; |
|
} |
|
|
|
public void setName(String name) { |
|
this.name = name; |
|
} |
|
|
|
public Object[] getParams() { |
|
return params; |
|
} |
|
|
|
public void setParams(Object[] params) { |
|
this.params = params; |
|
} |
|
|
|
public String getSql() { |
|
return sql; |
|
} |
|
|
|
public void setSql(String sql) { |
|
this.sql = sql; |
|
} |
|
|
|
} |
|
|
|
|