XML工具 Tools 05

public static void setMaxLength(int maxLength)
{
Tools.maxLength = maxLength;
}

public static int getMaxeachBatch()
{
return maxeachBatch;
}

public static void setMaxeachBatch(int maxeachBatch)
{
Tools.maxeachBatch = maxeachBatch;
}

public static String getDf()
{
return df;
}

public static void setDf(String df)
{
Tools.df = df;
}

public static long getTHREADSLEEP()
{
return THREADSLEEP;
}

public static void setTHREADSLEEP(long tHREADSLEEP)
{
THREADSLEEP = tHREADSLEEP;
}

public static String getENDPOINT()
{
return ENDPOINT;
}

public static void setENDPOINT(String eNDPOINT)
{
ENDPOINT = eNDPOINT;
}

public static String getENCRYPT_ALGO()
{
return ENCRYPT_ALGO;
}

public static void setENCRYPT_ALGO(String eNCRYPT_ALGO)
{
ENCRYPT_ALGO = eNCRYPT_ALGO;
}

public static DocumentBuilderFactory getFactory()
{
return factory;
}

public static void setFactory(DocumentBuilderFactory factory)
{
Tools.factory = factory;
}

public static String[] getSeq_array()
{
return seq_array;
}

public static void setSeq_array(String[] seq_array)
{
Tools.seq_array = seq_array;
}

public static String[] getTrancking_array()
{
return trancking_array;
}

public static void setTrancking_array(String[] trancking_array)
{
Tools.trancking_array = trancking_array;
}

public static String getInitproperties()
{
return INITPROPERTIES;
}

public static TableName_Field[] sqlList(Map<String, String> propertiesValue,
Map<String, List<EsbTableField>> esbmTablefield)
{
Iterator<Map.Entry<String, List<EsbTableField>>> iterator = esbmTablefield
.entrySet().iterator();
TableName_Field[] temp_tableName_Fields=new TableName_Field[esbmTablefield.size()];

TableName_Field tableName_Field=null;
Map.Entry<String, List<EsbTableField>>entry=null;
//實際的對像的長度
int index=0;
//迭代 CLE表
while(iterator.hasNext())
{
entry=iterator.next();
//將表的字段對應的值,定入到tableName_Field中
tableName_Field=setFieldValueMapping(entry, propertiesValue);
if(tableName_Field!=null)
{
temp_tableName_Fields[index++]=tableName_Field;
}
}
TableName_Field[] tableName_Fields = null;
// temp_tableName_Fields的大小等於初始化,不要重新拷貝
if (index == esbmTablefield.size())
{
tableName_Fields = temp_tableName_Fields;
}
else
{
tableName_Fields = new TableName_Field[index];
System.arraycopy(temp_tableName_Fields, 0, tableName_Fields, 0,
index);
}

return tableName_Fields;
}

}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章