-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude redundant PutResolver and GetResolver when initialize DefaultStorIOContentResolver #888
Comments
Hi, @nikiJava ! public class NoOpPutResolver<T> extends DefaultPutResolver<T> {
@Override
protected InsertQuery mapToInsertQuery(T object) {
throw new IllegalStateException("Put operation could not be called for object: " + object);
}
@Override
protected UpdateQuery mapToUpdateQuery(T object) {
throw new IllegalStateException("Put operation could not be called for object: " + object);
}
@Override
protected ContentValues mapToContentValues(T object) {
throw new IllegalStateException("Put operation could not be called for object: " + object);
}
} |
Closing, feel free to comment or reopen ;) |
Hi! |
import com.pushtorefresh.storio3.contentresolver.annotations.StorIOContentResolverColumn; @StorIOSQLiteType(table = EventContract.Event.TABLE_NAME)
} Gradle Plugin:
|
You should specify type of resolver: |
@nikitin-da thanks it's worked now . :) yeah sure |
Hello, guys!
Is there any way to not create PutResolver and GetResolver for my model?
I'm not going to use Put/Update and Get operations, only Delete operation, bun when I create DefaultStorIOContentResolver and add type mapping for my model I have to specify PutResolver, then GetResolver and afterwards DeleteResolver. How can I specify DeleteResolver only?
The text was updated successfully, but these errors were encountered: