/** * Creates a new class name with the primary key. Does not add the class name to the database. * * @param classNameId the primary key for the new class name * @return the new class name */ public static com.liferay.portal.kernel.model.ClassName createClassName( long classNameId) { return getService().createClassName(classNameId); }
@Override public DDMStructure getDDMStructure() { return DDMStructureLocalServiceUtil.fetchStructure( PortalUtil.getSiteGroupId(getGroupId()), ClassNameLocalServiceUtil.getClassNameId(JournalArticle.class), getDDMStructureKey(), true); }
@Override public DDMTemplate getDDMTemplate() { return DDMTemplateLocalServiceUtil.fetchTemplate( PortalUtil.getSiteGroupId(getGroupId()), ClassNameLocalServiceUtil.getClassNameId(JournalArticle.class), getDDMTemplateKey(), true); }
/** * Returns the class name with the primary key. * * @param classNameId the primary key of the class name * @return the class name * @throws PortalException if a class name with the primary key could not be found */ public static com.liferay.portal.kernel.model.ClassName getClassName( long classNameId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getClassName(classNameId); }
long classNameId = ClassNameLocalServiceUtil.getClassNameId( ExportImportClassedModelUtil.getClassName(stagedModel));
public static com.liferay.portal.kernel.model.ClassName fetchClassName( long classNameId) { return getService().fetchClassName(classNameId); }
/** * Deletes the class name from the database. Also notifies the appropriate model listeners. * * @param className the class name * @return the class name that was removed */ public static com.liferay.portal.kernel.model.ClassName deleteClassName( com.liferay.portal.kernel.model.ClassName className) { return getService().deleteClassName(className); }
/** * @throws PortalException */ public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel( com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException { return getService().deletePersistedModel(persistedModel); }
/** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return getService().dynamicQueryCount(dynamicQuery); }
/** * Returns the number of rows matching the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows matching the dynamic query */ public static long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) { return getService().dynamicQueryCount(dynamicQuery, projection); }
/** * Returns the OSGi service identifier. * * @return the OSGi service identifier */ public static String getOSGiServiceIdentifier() { return getService().getOSGiServiceIdentifier(); }
/** * Deletes the class name with the primary key from the database. Also notifies the appropriate model listeners. * * @param classNameId the primary key of the class name * @return the class name that was removed * @throws PortalException if a class name with the primary key could not be found */ public static com.liferay.portal.kernel.model.ClassName deleteClassName( long classNameId) throws com.liferay.portal.kernel.exception.PortalException { return getService().deleteClassName(classNameId); }
/** * Returns the number of class names. * * @return the number of class names */ public static int getClassNamesCount() { return getService().getClassNamesCount(); }
public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel( java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException { return getService().getPersistedModel(primaryKeyObj); }
public static com.liferay.portal.kernel.model.ClassName fetchClassName( String value) { return getService().fetchClassName(value); }
public static com.liferay.portal.kernel.model.ClassName getClassName( String value) { return getService().getClassName(value); }
/** * Adds the class name to the database. Also notifies the appropriate model listeners. * * @param className the class name * @return the class name that was added */ public static com.liferay.portal.kernel.model.ClassName addClassName( com.liferay.portal.kernel.model.ClassName className) { return getService().addClassName(className); }
/** * Performs a dynamic query on the database and returns the matching rows. * * @param dynamicQuery the dynamic query * @return the matching rows */ public static <T> java.util.List<T> dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) { return getService().dynamicQuery(dynamicQuery); }
/** * Updates the class name in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param className the class name * @return the class name that was updated */ public static com.liferay.portal.kernel.model.ClassName updateClassName( com.liferay.portal.kernel.model.ClassName className) { return getService().updateClassName(className); }
public static void checkClassNames() { getService().checkClassNames(); }