com.scooterframework.orm.activerecord.tag
Class Tag

java.lang.Object
  extended by com.scooterframework.orm.activerecord.ActiveRecordClass
      extended by com.scooterframework.orm.activerecord.ActiveRecord
          extended by com.scooterframework.orm.activerecord.tag.Tag
All Implemented Interfaces:
RESTified, java.io.Serializable

public class Tag
extends ActiveRecord

Tag class

See Also:
Serialized Form

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.ActiveRecord
actAsInCategory, actAsInCategory, actAsInCategory, afterCreate, afterDelete, afterFind, afterSave, afterSetData, afterSetData, afterSetData, afterUpdate, allAssociated, allAssociated, allAssociated, allAssociated, allAssociated, allAssociated, allAssociated, allAssociated, allAssociatedInCategory, allAssociatedInCategory, allAssociatedInCategory, allAssociatedInCategory, associated, associated, associated, associated, associated, associated, associated, associated, associatedInCategory, associatedInCategory, beforeCreate, beforeDelete, beforeFind, beforeSave, beforeSetData, beforeUpdate, belongsTo, belongsTo, belongsTo, belongsTo, belongsToCategory, belongsToCategory, clearAndSetData, clearAndSetData, containsPrimaryKey, create, create, data, declaresExtraFields, declaresProtectedFields, decrementCounter, decrementCounter, decrementCounter, decrementCounter, delete, details, freeze, getCalculator, getConnectionName, getDeleteSQL, getField, getField, getFields, getFields, getModifiedFields, getPK, getPrimaryKeyDataMap, getPrimaryKeyNames, getPrimaryKeyRules, getRecordRelation, getRestfulId, getRestfulIdMap, getRestfulIdNames, getRowInfo, getSimpleTableName, getValidationResults, hasMany, hasMany, hasMany, hasMany, hasManyInCategoryThrough, hasManyInCategoryThrough, hasManyThrough, hasManyThrough, hasManyThrough, hasManyThrough, hasManyThrough, hasManyThrough, hasOne, hasOne, hasOne, hasOne, hasPrimaryKey, incrementCounter, incrementCounter, incrementCounter, incrementCounter, internal_create, isChildOf, isColumnField, isDependentOf, isDirty, isExtraField, isFieldChanged, isFreezed, isHomeInstance, isLegalField, isNewRecord, isPKDependentOf, isReadOnlyColumn, isRequiredColumn, isValid, processAutoAuditCreate, processAutoAuditUpdate, reload, save, save, saveAndReload, setData, setData, setData, setData, setExtraFields, setPrimaryKey, setProtectedFields, setReadOnlyColumn, setReadOnlyColumns, setRecordRelation, setRestfulId, toJSON, toMap, toString, toXML, update, update, updateCounters, updateField, updateFields, validatesRecordBeforeCreate, validatesRecordBeforeDelete, validatesRecordBeforeSave, validatesRecordBeforeUpdate, validators, verifyExistenceOfField
 
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

Tag

public Tag()
Method Detail

registerRelations

public void registerRelations()
Description copied from class: ActiveRecord
Subclass need to override this method by calling proper relationship setup methods: hasOne, belongsTo, hasMany, hasManyThrough, etc.

Overrides:
registerRelations in class ActiveRecord

validatesRecord

public void validatesRecord()
Description copied from class: ActiveRecord

Subclass must override this method in order to provide a meaningful validation.

The default implementation of this method is empty.

Overrides:
validatesRecord in class ActiveRecord

getTableName

public java.lang.String getTableName()
Description copied from class: 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
 

Overrides:
getTableName in class ActiveRecord
Returns:
String table name