public class Document extends Object
Modifier and Type | Field and Description |
---|---|
Document |
_parent |
String |
associationEmbeddedName |
protected Map<String,Association> |
associations |
protected Map<String,AssociationEmbedded> |
associationsEmbedded |
protected Map |
attributes |
protected Map<Callbacks.Callback,List<WowMethod>> |
callbacks |
static MongoMongo |
mongoMongo |
protected boolean |
new_record |
protected static Map<String,String> |
parent$_alias_names |
protected static Map<String,Association> |
parent$_associations |
protected static Map<String,AssociationEmbedded> |
parent$_associations_embedded |
protected static com.mongodb.DBCollection |
parent$_collection |
protected static String |
parent$_collectionName |
protected static boolean |
parent$_embedded |
protected static List<String> |
parent$_fields |
protected static Map |
parent$_primaryKey |
protected static Map |
parent$_validate_info |
static List |
validateParses |
List<ValidateResult> |
validateResults |
Constructor and Description |
---|
Document() |
Modifier and Type | Method and Description |
---|---|
Document |
_root() |
protected static void |
alias(String originalName,
String aliasName) |
Map<String,AssociationEmbedded> |
associationEmbedded() |
Map<String,Association> |
associations() |
static Map<String,AssociationEmbedded> |
associationsEmbeddedMetaData() |
static Map<String,Association> |
associationsMetaData() |
<T> T |
attr(String key,
Class<T> clzz) |
Document |
attr(String key,
Object obj) |
Map |
attributes() |
static BelongsToAssociation |
belongsTo(String name,
Options options) |
static BelongsToAssociationEmbedded |
belongsToEmbedded(String name,
Options options) |
protected void |
collectCallback() |
static com.mongodb.DBCollection |
collection() |
static String |
collectionName() |
void |
copyAllAttributesToPojoFields() |
void |
copyPojoFieldsToAllAttributes() |
static int |
count() |
static <T extends Document> |
create(Map map) |
static <T extends Document> |
create9(Map map) |
static boolean |
embedded() |
static boolean |
embedded(boolean isEmbedded) |
static List |
fields() |
Document |
fields(String... names) |
static <T> List<T> |
find(List list) |
static <T> List<T> |
findAll() |
static <T> T |
findById(Object id) |
static HasManyAssociation |
hasMany(String name,
Options options) |
static HasManyAssociationEmbedded |
hasManyEmbedded(String name,
Options options) |
static HasOneAssociation |
hasOne(String name,
Options options) |
static HasOneAssociationEmbedded |
hasOneEmbedded(String name,
Options options) |
Object |
id() |
Object |
id(Object id) |
static Criteria |
in(Map in) |
protected static void |
index(Map keys,
Map indexOptions) |
boolean |
insert() |
boolean |
insert(boolean validate) |
static Criteria |
limit(int limit) |
boolean |
merge(Map item) |
static Criteria |
nativeQuery(String tableName) |
boolean |
newRecord(boolean saved) |
static Criteria |
not(Map not) |
static Criteria |
notIn(Map notIn) |
static Criteria |
order(Map orderBy) |
Map |
reload() |
void |
remove() |
void |
remove(Document child) |
void |
runCallbacks(Callbacks.Callback callback,
Object... params) |
boolean |
save() |
boolean |
save(boolean validate) |
static Criteria |
select(List fieldNames) |
static Criteria |
skip(int skip) |
protected static com.mongodb.DBCollection |
storeIn(String name) |
String |
toString() |
static String |
translateFromAlias(String key) |
static Map |
translateKeyForParams(Map params) |
static com.mongodb.DBObject |
translateMapToDBObject(Map map) |
static String |
translateToAlias(String key) |
boolean |
update() |
boolean |
update(boolean validate) |
boolean |
valid() |
protected static Map |
validate_info() |
protected static void |
validate(String fieldName,
Map validate) |
static Criteria |
where(Map conditions) |
protected Map attributes
protected boolean new_record
protected Map<String,Association> associations
protected Map<String,AssociationEmbedded> associationsEmbedded
public Document _parent
public String associationEmbeddedName
protected static Map parent$_primaryKey
protected static boolean parent$_embedded
protected static com.mongodb.DBCollection parent$_collection
protected static String parent$_collectionName
protected static Map<String,Association> parent$_associations
protected static Map<String,AssociationEmbedded> parent$_associations_embedded
public static MongoMongo mongoMongo
protected static Map parent$_validate_info
public final List<ValidateResult> validateResults
public static final List validateParses
protected Map<Callbacks.Callback,List<WowMethod>> callbacks
public static String collectionName()
public static boolean embedded()
public static boolean embedded(boolean isEmbedded)
public static com.mongodb.DBCollection collection()
public static Map<String,Association> associationsMetaData()
public static Map<String,AssociationEmbedded> associationsEmbeddedMetaData()
public static List fields()
public boolean merge(Map item)
protected static com.mongodb.DBCollection storeIn(String name)
protected static Map validate_info()
public static com.mongodb.DBObject translateMapToDBObject(Map map)
public boolean save()
public boolean save(boolean validate)
public boolean insert()
public boolean insert(boolean validate)
public boolean update()
public boolean update(boolean validate)
public boolean valid()
public void remove()
public void remove(Document child)
public void copyPojoFieldsToAllAttributes()
public void copyAllAttributesToPojoFields()
public Object id()
public Map<String,Association> associations()
public Map<String,AssociationEmbedded> associationEmbedded()
public Map reload()
public Map attributes()
public static HasManyAssociationEmbedded hasManyEmbedded(String name, Options options)
public static BelongsToAssociationEmbedded belongsToEmbedded(String name, Options options)
public static HasOneAssociationEmbedded hasOneEmbedded(String name, Options options)
public static HasManyAssociation hasMany(String name, Options options)
public static HasOneAssociation hasOne(String name, Options options)
public static BelongsToAssociation belongsTo(String name, Options options)
public Document _root()
public boolean newRecord(boolean saved)
public static Criteria skip(int skip)
public static Criteria limit(int limit)
public static int count()
public static <T> T findById(Object id)
public static <T> List<T> findAll()
protected void collectCallback()
public void runCallbacks(Callbacks.Callback callback, Object... params)
Copyright © 2018. All Rights Reserved.