public class TableDescriptorImpl extends Object implements TableDescriptor
Constructor and Description |
---|
TableDescriptorImpl(Context context,
Class<?> cls) |
Modifier and Type | Method and Description |
---|---|
Map<String,ColumnDescriptor> |
getColumn()
Table's column by name
|
ColumnDescriptor[] |
getColumns()
All table's columns in array
|
String |
getName()
Database table name
|
ColumnDescriptor[] |
getPrimaryKeys()
Table's primaty keys
|
String |
getSchema()
Database schema name
|
ColumnDescriptor |
getSinglePrimaryKey()
Table's primaty key - use this if one
|
public String getSchema()
TableDescriptor
getSchema
in interface TableDescriptor
public String getName()
TableDescriptor
getName
in interface TableDescriptor
public Map<String,ColumnDescriptor> getColumn()
TableDescriptor
getColumn
in interface TableDescriptor
public ColumnDescriptor[] getColumns()
TableDescriptor
getColumns
in interface TableDescriptor
public ColumnDescriptor[] getPrimaryKeys()
TableDescriptor
getPrimaryKeys
in interface TableDescriptor
TableDescriptor.getSinglePrimaryKey()
public ColumnDescriptor getSinglePrimaryKey()
TableDescriptor
getSinglePrimaryKey
in interface TableDescriptor
Copyright © 2014. All Rights Reserved.