}
((SpeedoClass) mo).identity = ident;
return ident;
}
private Object treatFieldNode(Node node, Object mo) throws SpeedoException {
SpeedoField f = new SpeedoField();
Node n = null;
//attribut name (compulsory)
n = node.getAttributes().getNamedItem("name");
if (n == null)
throw new SpeedoXMLError("Attribute name for tag field requested.");
String name = n.getNodeValue();
if(name.indexOf(".") != -1){
}
f.name = n.getNodeValue();
//attribute persistence-modifier
n = node.getAttributes().getNamedItem("persistence-modifier");
if (n != null)
f.persistenceStatus = SpeedoField.parsePersistenceStatus(n.getNodeValue());
//attribute primary-key
n = node.getAttributes().getNamedItem("primary-key");
if (n != null)
f.primaryKey = Boolean.valueOf(n.getNodeValue()).booleanValue();
//attribute null-value
n = node.getAttributes().getNamedItem("null-value");
if (n != null) {
f.nullValue = SpeedoNullValue.toByte(n.getNodeValue());
}
//attribute default-fetch-group
n = node.getAttributes().getNamedItem("default-fetch-group");
if (n != null)
f.defaultFetchGroup = Boolean.valueOf(n.getNodeValue()).booleanValue();
//attribute fetch-group
n = node.getAttributes().getNamedItem("fetch-group");
if (n != null)
f.fetchGroup = n.getNodeValue();
//attribute depth
n = node.getAttributes().getNamedItem("depth");
if (n != null)
f.depth = Integer.valueOf(n.getNodeValue()).intValue();
//attribute embbedded
n = node.getAttributes().getNamedItem("embedded");
if (n != null)
f.embedded = Boolean.valueOf(n.getNodeValue()).booleanValue();
//attribute value-strategy
n = node.getAttributes().getNamedItem("value-strategy");
if (n != null)
f.valueStrategy = n.getNodeValue();
//attribute sequence
n = node.getAttributes().getNamedItem("sequence");
if (n != null)
f.sequence = n.getNodeValue();
//attribute column
n = node.getAttributes().getNamedItem("table");
SpeedoTable st = null;
if (n != null) {
st = new SpeedoTable();
}
//attribute column
n = node.getAttributes().getNamedItem("column");
if (n != null) {
SpeedoColumn sc = new SpeedoColumn();
sc.name = n.getNodeValue();
if (st != null) {
sc.table = st;
}
f.addColumn(sc);
logger.log(BasicLevel.DEBUG, "specify column " + sc.name
+ " to the field " + f.name + ": " + f.columns);
}
if (debug) {
logger.log(BasicLevel.DEBUG, "New field: "