de.unikassel.android.sdcframework.provider
Class AbstractContentProviderData

Package class diagram package AbstractContentProviderData
java.lang.Object
  extended by de.unikassel.android.sdcframework.provider.AbstractContentProviderData
All Implemented Interfaces:
BaseColumns, ContentProviderData
Direct Known Subclasses:
AudioProviderData, TagProviderData, TwitterProviderData

public abstract class AbstractContentProviderData
extends Object
implements ContentProviderData, BaseColumns

Abstract base class for content provider types


Field Summary
 
Fields inherited from interface de.unikassel.android.sdcframework.provider.facade.ContentProviderData
_ID, SYNCED, TIMESTAMP
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Constructor Summary
AbstractContentProviderData()
          Constructor
 
Method Summary
 String getAuthority()
          Getter for the authority ( the provider name )
protected  String getColumnDataType(String columnName)
          Getter for the database column type ( override this method to add additional columns of extending classes )
 String getContentItemType()
          Getter for the item content type
 String getContentType()
          Getter for the content type
 Uri getContentUri()
          Getter for the content URI
 String getCreateTableStatement()
          Getter for the create table statement
 String getDBName()
          Getter for the database name
 String getDBTableName()
          Getter for the database table name
 int getDBVersion()
          Getter for the database version
 HashMap<String,String> getProjectionMap()
          Getter for the projection map for table column identification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.unikassel.android.sdcframework.provider.facade.ContentProviderData
getContentTypeName
 

Constructor Detail

AbstractContentProviderData

public AbstractContentProviderData()
Constructor

Method Detail

getDBName

public final String getDBName()
Description copied from interface: ContentProviderData
Getter for the database name

Specified by:
getDBName in interface ContentProviderData
Returns:
the database name

getDBTableName

public final String getDBTableName()
Description copied from interface: ContentProviderData
Getter for the database table name

Specified by:
getDBTableName in interface ContentProviderData
Returns:
the database table name

getAuthority

public final String getAuthority()
Description copied from interface: ContentProviderData
Getter for the authority ( the provider name )

Specified by:
getAuthority in interface ContentProviderData
Returns:
the authority

getContentType

public final String getContentType()
Description copied from interface: ContentProviderData
Getter for the content type

Specified by:
getContentType in interface ContentProviderData
Returns:
the content type for the directory

getContentItemType

public final String getContentItemType()
Description copied from interface: ContentProviderData
Getter for the item content type

Specified by:
getContentItemType in interface ContentProviderData
Returns:
the content type for items

getContentUri

public final Uri getContentUri()
Description copied from interface: ContentProviderData
Getter for the content URI

Specified by:
getContentUri in interface ContentProviderData
Returns:
the content URI

getDBVersion

public final int getDBVersion()
Description copied from interface: ContentProviderData
Getter for the database version

Specified by:
getDBVersion in interface ContentProviderData
Returns:
the database version

getProjectionMap

public HashMap<String,String> getProjectionMap()
Description copied from interface: ContentProviderData
Getter for the projection map for table column identification

Specified by:
getProjectionMap in interface ContentProviderData
Returns:
the projection map

getCreateTableStatement

public final String getCreateTableStatement()
Description copied from interface: ContentProviderData
Getter for the create table statement

Specified by:
getCreateTableStatement in interface ContentProviderData
Returns:
the create table statement

getColumnDataType

protected String getColumnDataType(String columnName)
Getter for the database column type ( override this method to add additional columns of extending classes )

Parameters:
columnName - the row name ( as added as value to the projection map )
Returns:
the data type description as string ( valid for a create table statement )