public T newInstance(SqlSession sqlSession) { final MapperProxy<T> mapperProxy = newMapperProxy<T>(sqlSession, mapperInterface, methodCache); return newInstance(mapperProxy); }
publicPropertyTokenizer(String fullname) { intdelim= fullname.indexOf('.'); if (delim > -1) { name = fullname.substring(0, delim); children = fullname.substring(delim + 1); } else { name = fullname; children = null; } indexedName = name; delim = name.indexOf('['); if (delim > -1) { index = name.substring(delim + 1, name.length() - 1); name = name.substring(0, delim); } }
public String getName() { return name; }
public String getIndex() { return index; }
public String getIndexedName() { return indexedName; }
public String getChildren() { return children; }
@Override publicbooleanhasNext() { return children != null; }
@Override public PropertyTokenizer next() { returnnewPropertyTokenizer(children); }
@Override publicvoidremove() { thrownewUnsupportedOperationException("Remove is not supported, as it has no meaning in the context of properties."); } }