use of jp.ossc.nimbus.beans.NoSuchPropertyException in project nimbus by nimbus-org.
the class DefaultPersistentManagerService method setResultSetProperties.
private void setResultSetProperties(ResultSet rs, Map resultSetProps) throws PersistentException {
if (resultSetProps == null || resultSetProps.size() == 0) {
return;
}
try {
Iterator entries = resultSetProps.entrySet().iterator();
while (entries.hasNext()) {
Map.Entry entry = (Map.Entry) entries.next();
propertyAccess.set(rs, (String) entry.getKey(), entry.getValue());
}
} catch (NoSuchPropertyException e) {
throw new PersistentException("ResultSet property set error.", e);
} catch (InvocationTargetException e) {
throw new PersistentException("ResultSet property set error.", e.getTargetException());
}
}
use of jp.ossc.nimbus.beans.NoSuchPropertyException in project nimbus by nimbus-org.
the class MappedPropertyTest method testParse3.
public void testParse3() throws Exception {
MappedProperty prop = new MappedProperty();
prop.parse("mapped2(fuga)");
Test test = new Test();
try {
prop.getProperty(test);
fail();
} catch (NoSuchPropertyException e) {
}
}
use of jp.ossc.nimbus.beans.NoSuchPropertyException in project nimbus by nimbus-org.
the class NestedPropertyTest method testParse3.
public void testParse3() throws Exception {
NestedProperty prop = new NestedProperty();
prop.parse("test2.simple");
Test test = new Test(new Test());
try {
prop.getProperty(test);
fail();
} catch (NoSuchPropertyException e) {
}
}
use of jp.ossc.nimbus.beans.NoSuchPropertyException in project nimbus by nimbus-org.
the class NestedPropertyTest method testParse2.
public void testParse2() throws Exception {
NestedProperty prop = new NestedProperty();
prop.parse("test.simple2");
Test test = new Test(new Test());
try {
prop.setProperty(test, "hoge");
fail();
} catch (NoSuchPropertyException e) {
}
}
use of jp.ossc.nimbus.beans.NoSuchPropertyException in project nimbus by nimbus-org.
the class SimplePropertyTest method testParse2.
public void testParse2() throws Exception {
SimpleProperty prop = new SimpleProperty();
prop.parse("simple2");
Test test = new Test();
try {
prop.setProperty(test, "hoge");
fail();
} catch (NoSuchPropertyException e) {
}
}
Aggregations