|
|
@ -5,6 +5,7 @@ import com.fr.base.TableData; |
|
|
|
import com.fr.base.TemplateUtils; |
|
|
|
import com.fr.base.TemplateUtils; |
|
|
|
import com.fr.config.holder.Conf; |
|
|
|
import com.fr.config.holder.Conf; |
|
|
|
import com.fr.config.holder.factory.Holders; |
|
|
|
import com.fr.config.holder.factory.Holders; |
|
|
|
|
|
|
|
import com.fr.config.holder.factory.XmlHolders; |
|
|
|
import com.fr.data.AbstractParameterTableData; |
|
|
|
import com.fr.data.AbstractParameterTableData; |
|
|
|
import com.fr.data.core.DataCoreXmlUtils; |
|
|
|
import com.fr.data.core.DataCoreXmlUtils; |
|
|
|
import com.fr.data.impl.Connection; |
|
|
|
import com.fr.data.impl.Connection; |
|
|
@ -32,7 +33,7 @@ import java.util.Map; |
|
|
|
public class RedisTableData extends AbstractParameterTableData { |
|
|
|
public class RedisTableData extends AbstractParameterTableData { |
|
|
|
|
|
|
|
|
|
|
|
private Conf<Connection> database = Holders.obj(null, Connection.class); |
|
|
|
private Conf<Connection> database = Holders.obj(null, Connection.class); |
|
|
|
private Conf<OrderValue> dbIndex = Holders.obj(new NumberOrderValue(0), OrderValue.class); |
|
|
|
private Conf<OrderValue> dbIndex = XmlHolders.obj(new NumberOrderValue(0), OrderValue.class); |
|
|
|
private Conf<String> query = Holders.simple(StringUtils.EMPTY); |
|
|
|
private Conf<String> query = Holders.simple(StringUtils.EMPTY); |
|
|
|
|
|
|
|
|
|
|
|
public void setDatabase(Connection c) { |
|
|
|
public void setDatabase(Connection c) { |
|
|
@ -147,7 +148,7 @@ public class RedisTableData extends AbstractParameterTableData { |
|
|
|
RedisTableData cloned = (RedisTableData) super.clone(); |
|
|
|
RedisTableData cloned = (RedisTableData) super.clone(); |
|
|
|
cloned.database = (Conf<Connection>) database.clone(); |
|
|
|
cloned.database = (Conf<Connection>) database.clone(); |
|
|
|
cloned.query = (Conf<String>) query.clone(); |
|
|
|
cloned.query = (Conf<String>) query.clone(); |
|
|
|
cloned.dbIndex = dbIndex; |
|
|
|
cloned.dbIndex = (Conf<OrderValue>) dbIndex.clone(); |
|
|
|
return cloned; |
|
|
|
return cloned; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |