public class Constraint extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Constraint.OnConflict |
| Modifier and Type | Field and Description |
|---|---|
String |
conflictClause |
static String |
NOT_NULL
A NOT NULL constraint may only be attached to a column definition, not specified as a table constraint.
|
String |
targetColumn |
String |
type |
static String |
UNIQUE
A UNIQUE constraint is similar to a PRIMARY KEY constraint, except that a single table may have any number of UNIQUE constraints.
|
| Constructor and Description |
|---|
Constraint(String targetColumn,
String type,
String onConflict) |
public static final String UNIQUE
public static final String NOT_NULL
public String type
public String targetColumn
public String conflictClause
Copyright © 2012–2014. All rights reserved.