1
0
mirror of https://github.com/Rogiel/l2jserver2 synced 2025-12-06 07:32:46 +00:00

Implements database structure automatic generation

This commit is contained in:
2011-12-25 14:34:14 -02:00
parent 3fc66cecdc
commit b2e84280ed
77 changed files with 44063 additions and 42113 deletions

View File

@@ -247,16 +247,17 @@ public class XMLConfigurationService extends AbstractService implements
* the output type
* @return the untransformed value
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
private Object untransform(String value, Class<?> type) {
if (value == null)
return null;
if (type == String.class)
return value;
final Transformer<?> transformer = TransformerFactory
final Transformer transformer = TransformerFactory
.getTransfromer(type);
if (transformer == null)
return null;
return transformer.untransform(value);
return transformer.untransform(type, value);
}
/**
@@ -278,7 +279,7 @@ public class XMLConfigurationService extends AbstractService implements
.getTransfromer(type);
if (transformer == null)
return null;
return transformer.transform(value);
return transformer.transform(type, value);
}
/**