Package mil.nga.geopackage.user
Class UserRow<TColumn extends UserColumn,TTable extends UserTable<TColumn>>
java.lang.Object
mil.nga.geopackage.user.UserCoreRow<TColumn,TTable>
mil.nga.geopackage.user.UserRow<TColumn,TTable>
- Type Parameters:
TColumn- column typeTTable- table type
- Direct Known Subclasses:
AttributesRow,FeatureRow,TileRow,UserCustomRow
public abstract class UserRow<TColumn extends UserColumn,TTable extends UserTable<TColumn>>
extends UserCoreRow<TColumn,TTable>
User Row containing the values from a single cursor row
-
Field Summary
Fields inherited from class mil.nga.geopackage.user.UserCoreRow
columns, columnTypes, table, values -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcolumnToContentValue(android.content.ContentValues contentValues, TColumn column, Object value) Map the column to the content valuesbooleanisValid()Check if the row is validvoidsetValid(boolean valid) Set the row valid stateandroid.content.ContentValuesConvert the row to content valuesandroid.content.ContentValuestoContentValues(boolean includeNulls) Convert the row to content valuesMethods inherited from class mil.nga.geopackage.user.UserCoreRow
columnCount, copyValue, getAsMap, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getColumns, getId, getPkColumn, getPkColumnIndex, getRowColumnType, getRowColumnType, getRowColumnTypes, getTable, getValue, getValue, getValues, getValueString, getValueString, hasColumn, hasId, hasIdColumn, resetId, setId, setValue, setValue, validateValue
-
Constructor Details
-
UserRow
Constructor- Parameters:
table- tablecolumns- columnscolumnTypes- column typesvalues- values- Since:
- 3.5.0
-
UserRow
Constructor to create an empty row- Parameters:
table- table
-
UserRow
Copy Constructor- Parameters:
userRow- user row to copy
-
-
Method Details
-
toContentValues
public android.content.ContentValues toContentValues()Convert the row to content values- Returns:
- content values
-
toContentValues
public android.content.ContentValues toContentValues(boolean includeNulls) Convert the row to content values- Parameters:
includeNulls- include null values- Returns:
- content values
-
columnToContentValue
protected void columnToContentValue(android.content.ContentValues contentValues, TColumn column, Object value) Map the column to the content values- Parameters:
contentValues- content valuescolumn- columnvalue- value
-
setValid
public void setValid(boolean valid) Set the row valid state- Parameters:
valid- true if valid- Since:
- 2.0.0
-
isValid
public boolean isValid()Check if the row is valid- Returns:
- true if valid
- Since:
- 2.0.0
-