|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.scooterframework.orm.activerecord.ActiveRecordClass
com.scooterframework.orm.activerecord.ActiveRecord
com.scooterframework.orm.activerecord.tag.Tag
public class Tag
Tag class
Constructor Summary | |
---|---|
Tag()
|
Method Summary | |
---|---|
java.lang.String |
getTableName()
Returns a full table name in the database. |
void |
registerRelations()
Subclass need to override this method by calling proper relationship setup methods: hasOne, belongsTo, hasMany, hasManyThrough, etc. |
void |
validatesRecord()
Subclass must override this method in order to provide a meaningful validation. |
Methods inherited from class com.scooterframework.orm.activerecord.ActiveRecordClass |
---|
average, average, calculate, columnNames, columns, connectionName, count, count, count, deleteAll, deleteAll, deleteAll, deleteById, deleteById, deleteByPK, deleteByPrimaryKeyMap, deleteBySQL, deleteBySQL, deleteBySQLKey, deleteBySQLKey, findAll, findAllBy, findAllBy, findAllBy, findAllBySQL, findAllBySQL, findAllBySQLKey, findAllBySQLKey, findById, findById, findByPK, findByRESTfulId, findFirst, findFirstBy, findLast, findLastBy, groupBy, having, homeInstance, includes, includes, includes, limit, maximum, maximum, minium, minium, newRecord, offset, orderBy, page, primaryKeyNames, readOnlyColumnNames, rowInfo, simpleTableName, sum, sum, tableName, updateAll, updateAll, updateAll, updateBySQL, updateBySQL, updateBySQLKey, updateBySQLKey, where, where, where |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tag()
Method Detail |
---|
public void registerRelations()
ActiveRecord
registerRelations
in class ActiveRecord
public void validatesRecord()
ActiveRecord
Subclass must override this method in order to provide a meaningful validation.
The default implementation of this method is empty.
validatesRecord
in class ActiveRecord
public java.lang.String getTableName()
ActiveRecord
Returns a full table name in the database. By default the table name is a short class name. Subclass may override this method to provide a more meaningful table name.
The default table name is a short version of current class name. Java class name starts with capital letter. If the class name has more than one capital letter, an underscore is added as part of the table name.
Examples: Class Name: Table Name: --------------------------------------------------- com.example.model.User users com.example.model.LineItem line_items com.example.model.UserAccount user_accounts com.example.model.UserURL user_urls
getTableName
in class ActiveRecord
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |