
org.jsimpledb.JCounterFieldInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsimpledb-main Show documentation
Show all versions of jsimpledb-main Show documentation
JSimpleDB classes that map Java model classes onto the core API.
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb;
import com.google.common.reflect.TypeToken;
import java.util.List;
import org.jsimpledb.core.Transaction;
class JCounterFieldInfo extends JFieldInfo {
JCounterFieldInfo(JCounterField jfield) {
super(jfield);
}
@Override
public TypeToken> getTypeToken(Class> context) {
return TypeToken.of(Counter.class);
}
@Override
void addChangeParameterTypes(List> types, Class targetType) {
throw new UnsupportedOperationException("counter fields do not support change notifications");
}
@Override
void registerChangeListener(Transaction tx, int[] path, Iterable types, AllChangesListener listener) {
throw new UnsupportedOperationException("counter fields do not support change notifications");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy