Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (C) 2012 Clarion Media, LLC
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.clarionmedia.infinitum.orm.sqlite;

Facilitates the mapping of Java data types to columns in a SQLite database and vice versa.

Author(s):
Tyler Treat
Version:
1.0 03/17/12
public abstract class SqliteTypeAdapter<T> implements TypeAdapter<T> {
Creates a new SqliteTypeAdapter pertaining to the given com.clarionmedia.infinitum.orm.persistence.TypeResolutionPolicy.SqliteDataType.

Parameters:
dataType the SqliteDataType of the column this type maps to
	public SqliteTypeAdapter(SqliteDataType dataType) {
		 = dataType;
	}

Maps the given value to the given column.

Parameters:
value the value being mapped
column the column being mapped to
values the android.content.ContentValues containing the data mappings for the entire row
	public abstract void mapToColumn(T valueString columnContentValues values);

Maps the given java.lang.Object value to the given column.

Parameters:
value the value being mapped
column the column being mapped to
values the android.content.ContentValues containing the data mappings for the entire row
	public abstract void mapObjectToColumn(Object valueString columnContentValues values);

Sets the com.clarionmedia.infinitum.orm.persistence.TypeResolutionPolicy.SqliteDataType for this SqliteTypeAdapter. This value indicates the data type of the column being mapped to.

Parameters:
sqliteType the SqliteDataType of column
	public void setSqliteType(SqliteDataType sqliteType) {
		 = sqliteType;
	}

Returns the com.clarionmedia.infinitum.orm.persistence.TypeResolutionPolicy.SqliteDataType for this SqliteTypeAdapter. This value indicates the data type of the column being mapped to.

Returns:
SqliteDataType of column
		return ;
	}
New to GrepCode? Check out our FAQ X