public abstract class BaseModel extends Object implements Serializable, android.provider.BaseColumns
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseModel.ErrorType |
| Modifier and Type | Field and Description |
|---|---|
protected PropertyChangeSupport |
changeSupport |
static com.google.common.base.Function<BaseModel,String> |
GET_ID_FUNCTION |
protected String |
id |
protected boolean |
modified |
| Constructor and Description |
|---|
BaseModel() |
BaseModel(android.database.Cursor cursor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
addPropertyChangeListener(String property,
PropertyChangeListener listener) |
com.google.common.collect.Multimap<BaseModel.ErrorType,String> |
checkValidity()
Check if the model is valid
|
android.content.ContentValues |
convertIntoContentValues() |
boolean |
equals(Object o) |
void |
firePropertyChange(String property,
Object oldValue,
Object newValue) |
String |
getId() |
Set<Set<String>> |
getOneRequiredFields() |
Set<String> |
getRequiredFields() |
abstract String |
getTableName() |
int |
hashCode() |
boolean |
isModified() |
boolean |
isNew() |
protected void |
putValue(android.content.ContentValues values,
String column,
Float value) |
protected void |
putValue(android.content.ContentValues values,
String column,
Integer value) |
protected void |
putValue(android.content.ContentValues values,
String column,
Long value) |
protected void |
putValue(android.content.ContentValues values,
String column,
String value) |
void |
setId(String id) |
void |
setModified(boolean modified) |
String |
toString(android.content.Context context) |
public static final com.google.common.base.Function<BaseModel,String> GET_ID_FUNCTION
protected PropertyChangeSupport changeSupport
protected String id
protected boolean modified
public BaseModel()
public BaseModel(android.database.Cursor cursor)
public String getId()
public void setId(String id)
public boolean isNew()
public boolean isModified()
public void setModified(boolean modified)
public abstract String getTableName()
public String toString(android.content.Context context)
public android.content.ContentValues convertIntoContentValues()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String property, PropertyChangeListener listener)
public void firePropertyChange(String property, Object oldValue, Object newValue)
public Set<Set<String>> getOneRequiredFields()
public com.google.common.collect.Multimap<BaseModel.ErrorType,String> checkValidity()
protected void putValue(android.content.ContentValues values,
String column,
Integer value)
Copyright © 2013–2014 CodeLutin. All rights reserved.