API

Concepts

The core of Casquatch is the object based API. Full documentation can be seen at CasquatchDao. The concept is that objects are generated from database metadata via the Code Generator then they can be passed generically to apis such as getById(class,object) or save(class,object)

Query Options

APIs are all overloaded to additionally take QueryOptions object to specify items such as consistency or limit. See Query Options for more information

Example

GetById

TableName object = db.getById(TableName.class, new TableName(1,2););

GetAllById

List<TableName> objectList = db.getAllById(TableName.class, new TableName(1););

Save

TableName object = new TableName(1,2);
db.save(TableName.class, object);

Delete

TableName object = new TableName(1,2);
db.delete(TableName.class, object);
Copyright 2018 T-Mobile US, Inc.
Code For Demonstration Purposes Only