Cal. Penal Code § 296
(a) The following persons shall provide buccal swab samples, right thumbprints, and a full palm print impression of each hand, and any blood specimens or other biological samples required pursuant to this chapter for law enforcement identification analysis:
(2) Any adult person who is arrested for or charged with any of the following felony offenses:
(c) The provisions of this chapter and its requirements for submission of specimens, samples, and print impressions as soon as administratively practicable by qualified persons as described in subdivision (a) shall apply regardless of placement or confinement in any mental hospital or other public or private treatment facility, and shall include, but not be limited to, the following persons, including juveniles:
(f) Prior to final disposition or sentencing in the case the court shall inquire and verify that the specimens, samples, and print impressions required by this chapter have been obtained and that this fact is included in the abstract of judgment or dispositional order in the case of a juvenile. The abstract of judgment issued by the court shall indicate that the court has ordered the person to comply with the requirements of this chapter and that the person shall be included in the state’s DNA and Forensic Identification Data Base and Data Bank program and be subject to this chapter.
However, failure by the court to verify specimen, sample, and print impression collection or enter these facts in the abstract of judgment or dispositional order in the case of a juvenile shall not invalidate an arrest, plea, conviction, or disposition, or otherwise relieve a person from the requirements of this chapter.